Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Sep 2007
    Posts
    47
    Plugin Contributions
    0

    Default Shipping USPS international?

    How can I set up the USPS shipping module to allow shipping to Canada? I have Priority International and First Class International listed as checked options, and have no zone defined for USPS. However when I try try to get a shipping quote during checkout it doesn't show USPS for Canadian addresses.

    What and where do I need to change settings to make this work?


    I'm running 1.3.9g


    ETA: I'd also like to add a higher handling fee soley for international customers. I have a $0.75 fee in USPS, is there a way to set up a different fee for int'l customers?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Shipping USPS international?

    Check post #26 and make sure that you are using the current USPS January 2, 2011 C version of USPS and have followed the steps:
    http://www.zen-cart.com/forum/showth...S+January+2011
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Sep 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: Shipping USPS international?

    That worked, thank you!!

    Is there a way to define the handling fee for domestic vs international orders? We'd like to have it $0.75 for domestic orders and $2 handling fee for international. Possible?

  4. #4
    Join Date
    Sep 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: Shipping USPS international?

    One last shipping question, sorry! In addition to the question above... Is there a way to change the default fo the selected method during checkout? We offer a free shipping option for our foster homes which is always the default since it's cheapest. Is there a way to set it for USPS to be default?

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Shipping USPS international?

    Quote Originally Posted by grace83 View Post
    That worked, thank you!!

    Is there a way to define the handling fee for domestic vs international orders? We'd like to have it $0.75 for domestic orders and $2 handling fee for international. Possible?
    The Handling is managed in the code:
    Code:
              $methods[] = array('id' => $type,
                                 'title' => $title,
                                 'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) );
    Where you see the MODULE_SHIPPING_USPS_HANDLING you would want to change that based on if the shipping is for National or International ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Shipping USPS international?

    Quote Originally Posted by grace83 View Post
    One last shipping question, sorry! In addition to the question above... Is there a way to change the default fo the selected method during checkout? We offer a free shipping option for our foster homes which is always the default since it's cheapest. Is there a way to set it for USPS to be default?
    What are you using now for the Foster Homes to provide the Free Shipping?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Sep 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: Shipping USPS international?

    Right now I have the flat rate module edited to show as a free shipping option saying it's for foster homes. www.mainelyratrescue.org/store If you go to checkout and input Maine it should show up for you. We have it set to show for most New England states, I'd just like it so it's not showing as default/bolded when they go to checkout. I'd like USPS cheapest option to be defaulted for "best price".


    I'm only slightly familiar with reading code, what would I need it to say? Have that section repeated twice?

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Shipping USPS international?

    You would need to customize the shipping class where the code sets the default cheapest method:
    Code:
          $cheapest = false;
          $size = sizeof($rates);
          for ($i=0; $i<$size; $i++) {
            if (is_array($cheapest)) {
              // never quote storepickup as lowest - needs to be configured in shipping module
              if ($rates[$i]['cost'] < $cheapest['cost'] and $rates[$i]['module'] != 'storepickup') {
                $cheapest = $rates[$i];
              }
            } else {
              if ($rates[$i]['module'] != 'storepickup') {
                $cheapest = $rates[$i];
              }
            }
          }
    You will see how it excludes Store Pickup from being a default ...

    NOTE: when testing the default results, you should logout between tests as once set, the selected shipping module can overrule the default based on cheapest ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Sep 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: Shipping USPS international?

    Thank you! I wasn't sure what code to change it to but found an old post of yours writing it. You rock!


    I'm still not sure how to fix the handling fee. Would this change work for what I need? http://www.zen-cart.com/forum/showpo...45&postcount=2

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Shipping USPS international?

    This line needs to be adjusted:
    Code:
              if ($order->delivery['country_id'] != STORE_COUNTRY) {
    to include the test for US Territories and Islands ...
    Code:
            if ($order->delivery['country']['id'] == '223' || $this->usps_countries == 'US') {
    But try testing it where Puerto Rico is a State of the US and where Puerto Rico is a Country to make sure that works ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 16
    Last Post: 31 May 2012, 07:08 PM
  2. USPS International Shipping Issue
    By christymreed in forum Addon Shipping Modules
    Replies: 10
    Last Post: 31 Dec 2011, 07:34 PM
  3. USPS International Shipping
    By serge111 in forum Built-in Shipping and Payment Modules
    Replies: 19
    Last Post: 26 Sep 2011, 10:37 PM
  4. USPS International Shipping
    By grabnsnap in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 20 Dec 2010, 08:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg