Results 1 to 10 of 13

Hybrid View

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

    Default Re: Handling fee for USPS International ONLY?

    What is the Zone ID that you have defined for the contiguous US ...
    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!

  2. #2
    Join Date
    Jan 2006
    Location
    Portland, Oregon
    Posts
    276
    Plugin Contributions
    0

    Default Re: Handling fee for USPS International ONLY?

    Quote Originally Posted by Ajeh View Post
    What is the Zone ID that you have defined for the contiguous US ...
    Well, that's one of my problems. I don't see where I would enter an ID for the zone that I build. And there's nowhere to enter the specific states only countries.
    And I've read the faq/tutorials but they don't seem to correlate with the settings under the zone rates. This has really got me confused.

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

    Default Re: Handling fee for USPS International ONLY?

    In the code I posted you will see this line:
    Code:
          $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . 21 . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");
    where 21 is the Zone Definition used ...

    If you go to the Locations / Taxes ... Zones Definitions ... and click on EDIT on the Zone Definition for your Zone Definition of the US Contiguous States ... what is the zID in the URL?

    If you have not built a Zone Definition for the US Contiguous States you need to do this first, so it can be used for this customization to work ...
    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!

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

    Default Re: Handling fee for USPS International ONLY?

    NOTE: if you have not built the Zone yet for the create the Zone for the Lower 48 States plus DC post #8 will help you:
    http://www.zen-cart.com/forum/showth...ight=geo_zones
    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!

  5. #5
    Join Date
    Jan 2006
    Location
    Portland, Oregon
    Posts
    276
    Plugin Contributions
    0

    Default Re: Handling fee for USPS International ONLY?

    This is where the confusion came in. Whenever I looked up zones for shipping I was always directed to the shipping module not the zones and zone definitions options under "locations/taxes".
    I kept trying to figure out what the hell I was missing. The directions for zones in the faq is very vague if not altogether missing.
    I'll look over this with a fresh outlook now that someone has pointed me in the right direction. Thanks Linda.

  6. #6
    Join Date
    Aug 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Handling fee for USPS International ONLY?

    Dear Linda,

    This above posting is similar to what I would like to do. I would like to add a handling fee either percentage or dollar amount to international orders (particularly Canada). I see I can add a handling fee for UPS that effects US and all other countries. I just want the fee to be for Canada and leave all others alone. Any help would be appreciated.http://www.zen-cart.com/forum/images...s/big_grin.gif

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

    Default Re: Handling fee for USPS International ONLY?

    In the quote of the shipping module that you need it for, you can use:
    Code:
    // bof: add additional charge for zone_id 23
              global $db;
              $extra_charge = 0.00;
              $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . 23 . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");
              while (!$check->EOF) {
                if ($check->fields['zone_id'] < 1) {
                  $check_flag = true;
                  break;
                } elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) {
                  $check_flag = true;
                  break;
                }
                $check->MoveNext();
              }
              if ($check_flag) {
                $extra_charge = 7000.00;
              }
              // add $extra_charge to cost below
    // eof: add additional charge for zone_id 23
    Then find where the cost is build and add in the $extra_charge to that ... this will only add the charge if the shipping address matches Zone Definition you built where 23 is the Zone definition built for who gets the extra charge ...
    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!

 

 

Similar Threads

  1. How do I charge a Handling Fee for International Orders Only?
    By danielosko in forum Addon Shipping Modules
    Replies: 1
    Last Post: 12 Jun 2015, 12:02 AM
  2. v139h Handling fee for USPS is not being added during checkout
    By canemasters in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 11 Mar 2012, 03:29 PM
  3. Handling Fee for Armed Forces USPS Priority
    By mafiasam in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 7 Dec 2010, 02:13 AM
  4. is there a way to apply handling fee only to international orders?
    By humbll in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 4 Feb 2007, 06:38 PM
  5. USPS Ship - add second handling fee for international orders
    By jmcdog in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 5 Jun 2006, 10:09 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