What is the Zone ID that you have defined for the contiguous US ...
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!
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.
In the code I posted you will see this line:
where 21 is the Zone Definition used ...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");
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!
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!
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.
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
In the quote of the shipping module that you need it for, you can use:
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 ...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
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!