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

    Default Re: Shipping USPS international?

    Ok I think I changed it correctly, but it doesn't look like it's adding the handling fee. I put an item in the shopping cart and did a quote on the cart page before making changes. It showed $11.64. Made the changes and it's still quoting $11.64. Or does the handling fee only get calculated into shipping during checkout?

    Here is what I changed the code to:

    HTML Code:
         $cost = preg_replace('/[^0-9.]/', '',  $cost);
                     if ($order->delivery['country']['id'] == '223' || $this->usps_countries == 'US') {
                $extra_handling_int = 2.00;
              }
              $methods[] = array('id' => $type,
                                 'title' => $title,
                                 'cost' => ($cost * $shipping_num_boxes) + $extra_handling_int + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) );
    I have handling set to configure by order not by box, does that make a difference?

  2. #12
    Join Date
    Sep 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: Shipping USPS international?

    I changed it back from
    HTML Code:
    if ($order->delivery['country']['id'] == '223' || $this->usps_countries == 'US') {
    to
    HTML Code:
    if ($order->delivery['country_id'] != STORE_COUNTRY) {
    and it seems to be calculating both domestic and canada handling fees appropriately? Is there a reason I should not leave it that way?

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

    Default Re: Shipping USPS international?

    I miss read what you were trying to do ...

    You want it != 223 and not the US so try this and test Puerto Rico as a Country and as a State ... neither should get the charge:
    Code:
    if ($order->delivery['country']['id'] != '223' &&  $this->usps_countries != 'US') {
    That tests if the delivery address is the United States and if not, then the charge will be set ...
    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 2 of 2 FirstFirst 12

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