• Resolved captainswallow

    (@captainswallow)


    Trying to get this working, but testing only shows rates for US, if I input Canadian address, the dreaded “There are no shipping methods available” shows! Plugin enabled with correct postal code and default ID, First Class Package retail and ground the only options (tried with commercial rates checked/unchecked).

    array ( 'error' => NULL, 'rates' => array ( ), 'settings' => array ( 'props' => array ( 'sender' => '46501', 'commercialRates' => true, 'groupByWeight' => true, 'apiEndpoint' => 'https://secure.shippingapis.com/ShippingAPI.dll', 'apiUserId' => '891000005749', 'supports' => array ( 0 => 'settings', ), 'id' => 'usps_simple', 'method_title' => 'USPS Simple', 'method_description' => 'Shows live USPS domestic rates on checkout', 'enabled' => 'yes', 'title' => 'USPS Simple', 'rates' => array ( ), 'tax_status' => 'taxable', 'fee' => NULL, 'minimum_fee' => NULL, 'instance_id' => 0, 'instance_form_fields' => array ( ), 'instance_settings' => array ( ), 'availability' => NULL, 'countries' => array ( ), 'plugin_id' => 'woocommerce_', 'errors' => array ( ), 'data' => array ( ), ), 'settings' => array ( 'enabled' => 'yes', 'sender' => '46501', 'user_id' => '891000005749', 'commercial_rate' => 'yes', 'group_by_weight' => 'yes', 'express_mail' => '', 't_express_mail' => '', 'express_mail_3' => 'no', 'express_mail_2' => 'no', 'express_mail_23' => 'no', 'priority_mail' => '', 't_priority_mail' => '', 'priority_mail_1' => 'no', 'priority_mail_33' => 'no', 'priority_mail_18' => 'no', 'priority_mail_47' => 'no', 'priority_mail_48' => 'no', 'priority_mail_49' => 'no', 'priority_mail_50' => 'no', 'first_class' => '', 't_first_class' => 'First-Class Package', 'first_class_0A' => 'no', 'first_class_0B' => 'no', 'first_class_0C' => 'no', 'first_class_0D' => 'no', 'first_class_12' => 'no', 'first_class_15' => 'no', 'first_class_19' => 'no', 'first_class_0E' => 'yes', 'first_class_61' => 'no', 'first_class_53' => 'no', 'first_class_78' => 'no', 'standard_post' => '', 't_standard_post' => 'USPS Retail Ground', 'standard_post_4' => 'yes', 'media_mail' => '', 't_media_mail' => '', 'media_mail_6' => 'no', 'library_mail' => '', 't_library_mail' => '', 'library_mail_7' => 'no', ), ), 'package' => array ( 'contents' => array ( '642e92efb79421734881b53e1e1b18b6' => array ( 'key' => '642e92efb79421734881b53e1e1b18b6', 'product_id' => 48, 'variation_id' => 0, 'variation' => array ( ), 'quantity' => 1, 'data_hash' => 'b5c1d5ca8bae6d4896cf1807cdf763f0', 'line_tax_data' => array ( 'subtotal' => array ( 1 => 28.0, ), 'total' => array ( 1 => 28.0, ), ), 'line_subtotal' => 400.0, 'line_subtotal_tax' => 28.0, 'line_total' => 400.0, 'line_tax' => 28.0, 'product' => array ( 'name' => 'Bear Trap (Prop)', 'slug' => 'bear-trap-prop', 'price' => '400.00', 'regular_price' => '400.00', 'sale_price' => '', 'weight' => '10 lbs', 'weight_lbs' => 10.0, 'dimensions' => '26 x 14 x 18 in', 'dimensions_in' => '26 x 14 x 18', ), ), ), 'contents_cost' => 400.0, 'applied_coupons' => array ( ), 'user' => array ( 'ID' => 1, ), 'destination' => array ( 'country' => 'CA', 'state' => 'ON', 'postcode' => 'L3K2M4', 'city' => 'Port Colborne', 'address' => '300 Main St', 'address_1' => '300 Main St', 'address_2' => '', ), 'cart_subtotal' => '400', 'rates' => array ( ), ), 'requests' => NULL, 'request' => Dgm\UspsSimple\Calc\Request::__set_state(array( 'apiUserId' => '891000005749', 'package' => Dgm\UspsSimple\Calc\Package::__set_state(array( 'orig' => Dgm\UspsSimple\Calc\Area::__set_state(array( 'countryCode' => 'US', 'zipCode' => '46501', )), 'dest' => Dgm\UspsSimple\Calc\Area::__set_state(array( 'countryCode' => 'CA', 'zipCode' => 'L3K2M4', )), 'items' => array ( '642e92efb79421734881b53e1e1b18b6' => Dgm\UspsSimple\Calc\Item::__set_state(array( 'product' => Dgm\UspsSimple\Calc\Product::__set_state(array( 'weight' => 10.0, 'dim' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 26.0, 'width' => 18.0, 'height' => 14.0, )), )), 'quantity' => 1, )), ), )), 'services' => Dgm\UspsSimple\Calc\Services::__set_state(array( 'retailGroundEnabled' => true, 'serviceMatchersByCode' => array ( 0 => array ( 0 => Dgm\UspsSimple\Calc\MatchRegex::__set_state(array( 'service' => Dgm\UspsSimple\Calc\Service::__set_state(array( 'family' => Dgm\UspsSimple\Calc\ServiceFamily::__set_state(array( 'id' => 'first_class', 'title' => 'First-Class Package', 'sort' => 2, )), 'alwaysUseCommercialRate' => false, 'fitFn' => Dgm\UspsSimple\Calc\FitGirthLen::__set_state(array( 'max' => 108, )), )), 'regex' => '/Package Service(.*)Retail/', )), ), 4 => array ( 0 => Dgm\UspsSimple\Calc\MatchAny::__set_state(array( 'service' => Dgm\UspsSimple\Calc\Service::__set_state(array( 'family' => Dgm\UspsSimple\Calc\ServiceFamily::__set_state(array( 'id' => 'standard_post', 'title' => 'USPS Retail Ground', 'sort' => 3, )), 'alwaysUseCommercialRate' => false, 'fitFn' => NULL, )), )), ), ), )), 'groupByWeight' => true, 'commercialRates' => true, )), 'responses' => NULL, 'combinedResponse' => NULL, )

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only shows shipping rates for US’ is closed to new replies.