This is the support thread for the multiple zones mod I have just added having had lots of questions about how to do it.
Any questions ask here and I'll do my best to answer.
Printable View
This is the support thread for the multiple zones mod I have just added having had lots of questions about how to do it.
Any questions ask here and I'll do my best to answer.
File has been uploaded to the ZenCart Add On files but meanwhile its available on here for anyone that wants it.
Enjoy!
You may wish to check the code ...
Line 147 of each file needs to be changed to:
with the exception of zones_2.php as it is already set to this ...Code:$dest_country = $order->delivery['country']['iso_code_2'];
NOTE: because of how these are written ...
If you install the standard Zone Rates zones shipping module and then install all of these ... then later REMOVE the Zone Rates zones shipping module ... ALL of these Zone Rates modules will be removed ... :eek:
An option to avoid this would be to have used:
zones2 vs zones_2
ZONES2 vs ZONES_2
Thanks totalsam for the files and everyone else who contributed, I got my zone rates to work with these files!
Cheers
Oops thought I had checked for stray _2 but missed one! Also completely forgot about the whole _# file structure. I was trying to make it simpler to create more zones if needed rather than having to replace zones# and ZONES# but I can't see a sensible way round that at the moment. Maybe if I think about it I may have a better solution but for now I have reverted to removing the _.
Here is an updated set of files, I'll put these into the Free add-ons once the original is up.
Thanks Ajeh!
You forgot to rename the filenames in:
/includes/modules/shipping
to exclude the _ as well ... example:
zones_2.php to zones2.php
zones_3.php to zones3.php
etc. etc. etc. ... :smile:
:oops:
corrected now
Ain't it fun writing contributions?! :lamo:
How do I make the "Zone Rate" Multiply by the "Product Quantity" to calculate the Total Price ...
Its seems so simple, but I can't really find anything in "Admin Panel" to accomplish this.... ?
I have already specified 2 Zone Rates (US and Non-US) under Shipping Module. Right now, the zone rates are not multiplying to the Prod. Qty.
Any advise is very appreciated. Thanks
I am basically trying to set up this pricing
http://i37.tinypic.com/4jpdzq.gif
They don't ... Zone Rates and Table Rate do not multiply based on quantity ... they are not designed for this ...
Perhaps you could start a new thread on your shipping needs and we can figure out what might work for you ...
Be sure to include details on what you are trying to do on shipping prices based on per Product per quantity ...
It sounds to me like Per Unit perweightunit might be something for you ...
How is this addon different from the ones already available? :huh:
Does not appear to be for international flat rate :(
Is it compatible with Google Base?
Hi, how can i change the shipping option name show to customer in shopping cart shipping estimator?
Thanks
Hi,
Sorry for the slow reply.
This module is no different from the zone rates module that comes with the standard ZenCart solution. All it does is allows for multiple zone rates to be used at the same time. Basically provides more than one zone rate shipping option for any one zone.
Useful if for example you want to offer the customer expedited processing or shipping but whereby the price still has to vary by zone.
Hope this clarifies things for you.
Sam
Hello,
If you want to change the name of the visible text you need to change the definitions in the language file.
To do this open includes/languages/english/modules/zones#.php and edit the following bits highlighted in red:
define('MODULE_SHIPPING_ZONES2_TEXT_TITLE', 'Zone Rates 2');
define('MODULE_SHIPPING_ZONES2_TEXT_DESCRIPTION', 'Zone Based Rates');
define('MODULE_SHIPPING_ZONES2_TEXT_WAY', 'Shipping to');
define('MODULE_SHIPPING_ZONES2_TEXT_UNITS', 'lb(s)');
define('MODULE_SHIPPING_ZONES2_INVALID_ZONE', 'No shipping available to the selected country');
define('MODULE_SHIPPING_ZONES2_UNDEFINED_RATE', 'The shipping rate cannot be determined at this time');
(Do NOT change anything in capitals else the coding won't find the definition and it will just display nothing! Also make sure you don't accidently delete the inverted comma or you will see some very strange results!)
Sam
It would be better that instead of using the:
/includes/languages/english/modules/zones2.php
that the templates and overrides file be used for:
/includes/languages/english/modules/your_templates_dir/zones2.php
Can someone tell me if I have this mod understood....
This mod allows you to set up multiple shipping zones and multiple shipping options for a particular zone?
I installed that zone table mod I don't know what the heck it does yet. I need to read through it. But here's what I'm looking for:
A way to customize shipping costs for EACH zones i ship to as well as offer them multiple...well 2 shipping options. USPS or DHL.
Would this mod get the job done? Thank you!
would you please check this out:
http://www.zen-cart.com/forum/showthread.php?t=167463
I am using 1.38
and I try to using this modules, is only able to process to checkout process 2 , and it always return back and can't process to total checkout page.
Please if anyone could help this issue?
and I have see other having this problem at 1.3.9.
at
http://www.zen-cart.com/forum/showthread.php?t=167463
Change the number to 50 then edit the module and see if it rebuilds the new Zones ...
This is built into the current version of Zone Rate zones but I cannot recall if that add on was built from the current version or an old version where you had to save all of your current Zone Rate settings to NotePad, REMOVE the Zone Rate zones shipping module, INSTALL the Zone Rate zones shipping module and re-configure it ...
Hi Sam, I have implemented the multiple zone modification, the display show all the zones, may i know whether there is any solution for only display (bold) available zone rates, then hid the others (highlight dark red)?
Shipping quotes are based on the address information you selected:
Kuala Lumpur Malaysia
Available Shipping Methods Rates
Flat Rate 1-8pcs Only - East Malaysia (FREE! for Order RM150.00 above) RM6.00
Store Pickup (Walk In) RM0.00
Zone 1 Shipping Rates (No shipping available in Zone 1)
Zone 2 Shipping Rates (No shipping available in Zone 2)
Zone 3 Shipping Rates (No shipping available in Zone 3)
Zone 4 Shipping Rates (No shipping available in Zone 4)
Zone 5 Shipping Rates (No shipping available in Zone 5)
AND
Shipping quotes are based on the address information you selected:
Brunei Darussalam
Available Shipping Methods Rates
Zone 1 Shipping Rates (Shipping To Brunei Darussalam) RM19.70
Zone 2 Shipping Rates (No shipping available in Zone 2)
Zone 3 Shipping Rates (No shipping available in Zone 3)
Zone 4 Shipping Rates (No shipping available in Zone 4)
Zone 5 Shipping Rates (No shipping available in Zone 5)
Look in the directory:
/cache
and see what debug logs are generated when you hit the blank page ...
Hi Ajeh,
Do you mean Error log in my Host Server? I found the following Error Log Message..
[Tue Apr 12 09:50:38 2011] [error] [client 175.136.216.21] File does not exist: /home/lovelyki/public_html/404.shtml
[Tue Apr 12 09:50:38 2011] [error] [client 175.136.216.21] File does not exist: /home/lovelyki/public_html/favicon.ico
[Tue Apr 12 03:28:57 2011] [error] [client 66.249.68.4] File does not exist: /home/lovelyki/public_html/404.shtml
[Tue Apr 12 03:28:57 2011] [error] [client 66.249.68.4] File does not exist: /home/lovelyki/public_html/robots.txt
Hi Ajeh,
I found the following message from public _html/cache
[12-Apr-2011 10:20:59] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/lovelyki/public_html/includes/languages/english/modules/shipping/flatone.php:26) in /home/lovelyki/public_html/includes/functions/functions_general.php on line 45
Please advice.
Thank you. Regard JL
Check you language file and see if you have blank line(s) or space(s) after the closing php bracket ?> at the bottom of the file ...
Hi Linda,
i have another question, after I click "Confirm The Order" at Final Step.
Window show either message following:
Email Error: SMTP Error: Could not connect to SMTP host.
or Email Error: The following From address failed: [email protected]
or Email Error: SMTP Error: Data not accepted.
thank's bro for the mod, but how it works in my country that have 33 province and every province had many city in different tariff? http://www.aufaline.com
I have installed this add-on.
I done the:
1. Open the file includes/languages/english/modules/shipping/zones_#.php
2. Edit
define('MODULE_SHIPPING_ZONES_#_TEXT_TITLE', 'Zone Rates #');
Replacing Zone Rates # with the text you wish to display instead.
3. Save and upload.
This one is for USA postage only so I have configured the module in the Admin section as follows:
Zone Based Rates
Enable Zones Method
True
Calculation Method
Item
Tax Class
--none--
Tax Basis
Billing
Sort Order
0
Skip Countries, use a comma separated list of the two character ISO country codes
AF,AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BA, BW, BV, BR, IO, BN, BG, BF, BI, KH, CM, CA, CV, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, EC, CD,DC ,CR, HR,CU,CY,CZ,DJ,DM,DO,EG,SV,EE,ET,FK,FO,FI,FR,GF,GM,GE,DE,GH,GI,GR,GL,GD,GP,GU,GT ,GN,GW,GY,HT,HM,HA,HN,HK,IS,IN,ID,IR,IE,IL,IT,JM,JP,JO,KZ,KE,KI,KP,KW,KG,LA,LB,L S,LR,LY,LT,LU,MO,MK,MY,MV,ML,MT,EC, MH,MR,MU,NO, YT,MX,FM, MN,ME,MS,MA,MZ,MM,NA,NR,NP,NL,AN,NE,NG,NU,NF,N OM,PK,PW,PS,PG,P PE,PH,PN,PL,PT,PR,RE,RO,RU,SH,SM,SSC,RS,SL,SK,SI,SB,ZA,GS,ES,LK,SD,SR,SJ,SZ,SE,C H,SY,TW, TJ,TZ,TH,TG,TK,TO,TT,TN,TR,TM,TC,TV,UG,UA,AE,GB,UM,UY,UZ,VU,VE,VN,VG,VI,WF,EH,YE , ZM, ZW
Zone 1 Countries
US
Zone 1 Shipping Table
1:4.59,
Zone 1 Handling Fee
0
Handling Per Order or Per Box Zone 1 (when by weight)
Order
Zone 2 Countries
Zone 2 Shipping Table
Zone 2 Handling Fee
0
Handling Per Order or Per Box Zone 2 (when by weight)
Order
Zone 3 Countries
Zone 3 Shipping Table
Zone 3 Handling Fee
0
Handling Per Order or Per Box Zone 3 (when by weight)
Order
When I try to checkout it looks perfect, shows up fine but clicking the 'Continue Checkout' button on step 1 of 3 nothing happens.
:oops:
Did I mess something up? Does the file in includes/modules/shipping need any modifications?
I am using v.1.3.9h on linux.
Help please.
You have this setup for:
1:4.59,
That means if there is 1 item it is $4.59 ... beyond that you will see:
1 the comma does not belong on the endQuote:
The shipping rate cannot be determined at this time
2 you need to define more prices or change the define
If all you want is $4.59 charged to the US ... Flat Rate flat would be a better choice ...
Make a Zone Definition for the US and add the Details for what your US is ... then set the amount to 4.59 ...
If you want to charge $4.59 per Item, then use the Item Rate item shipping module ... again build your Zone Definition and Details and set the amount to 4.59 ...
Thanks for the response.
I removed the comma, still having the issue.
I don't just want $4.59 to the US, I need 2 US options (6-9 days and 3-4 days) and 3 worldwide options.
I went with Flat Rate to start with but I could not change the name, I tried to clone it to a new option but that did not work. Then I saw this add-on and it seemed just right. If there is a better option to use then please suggest it, I have only sold download products up till now.
Still not sure why it is not going through. :frusty:
My eyeballs are absolutely hanging out on springs after hours of reading through the forums trying to find out why this module isn't working for me. It would get stuck on the shipping page at checkout, just the same page over and over, using zones_2.
I kind of assumed that since the Oba-san had kindly pointed out the problem, and the writer had corrected it, that the corrected version would be available in the downloads, especially after all this time. It isn't.
Lesson: Always check, never assume.
(pops eyeballs back in)
So for anyone else still struggling with it, use the updated version available here, not the one you get in the downloads.
If you want the current Zone Rate zones shipping module ... download the current version of Zen Cart ...
NOTE: you should really look to upgrade to the current version of Zen Cart as older versions are insecure, buggy etc.
Hi guys,
I'm trying to mod the zone rate module but I can't find the right thread so I'm posting here.
"Quick question regarding the zone.php"
I changed my server and I uploaded the backed up file.
then for some reason, the shipping module page on admin side isn't showing the zone rate module and it's not showing the shipping module page correctly. (it doesn't have the side tab)
Anyway, I was wondering if there is a file structure graph for zen cart 1.3.9h.
I think I'm missing a few files for the shipping module to work and I would like to know which files I am missing.
Thanks for the mod. Please upload the latest files- 1.0.1- to the Add-On page. I downloaded the zip from there- 1.0.0- and wasted an hour trying to figure out why it wasn't working before reading these posts and seeing a newer version.
R
Please could you tell me if this mod works with V1.5.1? I just installed it then I worried that the listing didn't mention 1.5 compatibility. I already have UK Postcode mod by Z3NN3D installed as I need to be able to charge different rates to people in different parts of the UK by postcode.
I would like to offer standard and next day delivery options to various specified countries based on the total weight of their order (item quantity x item weight + item quantity x item weight etc.).
Also I need to be able to use my zone definitions to determine shipping rates (so that the rate for US is only available to people in the 48states+DC I already added via the SQL download).
It would be great if anyone could tell me the best way to achieve the shipping set-up I need (without any commercial modules ideally) as I am rather a noob.
Hello,
I'm sorry I wrote this mod quickly about 2 years ago and haven't yet had time to upgrade to 1.5.1 as I have about 60 mods on my cart and I've not looked too far into compatibility. I shouldn't see too much problem though, from what I remember the mod was essential a duplicate of the standard zones module that was already installed just with the definitions updated so there were different types.
Put simply if the zones shipping wasn't modified in the 1.5.1 upgrade from 1.4 then there is definitely no problem, if it has been modified then there is a potential conflict here. Sorry I can't help more, I'd look into it but at this time of year we are too busy!
Thank you very much for your quick reply - I understand that client work has to come first! Could anyone else shed any light on whether the zones shipping was modified in the 1.5.1 upgrade from 1.4? I have found a list of the changes made in the 1.5 beta which looked ok, but there may have been later alterations, or something I've missed as I am so new to this!
Hello!
I am using 1.53 and "picaflor-azul's template.
Installed this module,and defined some PHP files.
On the admin area or "Estimate Shipping"area,it runs without any problem.
but, added newly zone rate is NOT refrect total price.
ON SHOPPING CART...
STEP1:OK! I can select newly zone rate!(ZONE_2-ZONE_5)
STEP2:OOPS! The method that I chose in STEP1 is not reflected! "Your Total" is not changed.
On the other area this module runs without ANY problem.
How can I solve this?
Please advice.
Changed PHP files are "includes/languages/english/modules/shipping/zones_#.php".(to rename.)
Hello!
I am using 1.3.9.h (yes I ought to upgrade to 1.5, but that's too much work, so I haven't so far)
I just installed this mod, estimated shipping works, and during check-out, the different rates are showing.
But if I opt for another shipping rate (zone 2, 3 or 4) it keeps the rate of zone 1 when I check-out.
Anyone else having this issue?
Have you a link to the specific module that you have installed?
Have you made any changes to it?
I first installed the original module (the one where the iso_code_2 is messed up)
then the modification found on page 1 of this thread
Multiple Zones Modification v1.0.1.zip (32.6 KB, 346 views)
finally, the "zone rates clone" found on this thread http://www.zen-cart.com/showthread.p...ethod-Choosing
and more specifically here http://www.zen-cart.com/downloads.php?do=file&id=977
I changed the language files (the title and so on, not the code), and I changed the number of zones on the last one (un-installed and re-installed through the admin panel after changing the number of zones from 3 to 6)
Now I have un-installed the zones2 etc, as they weren't added to the total when chosen during check-out.
How many clones of Zone Rate zones do you need?
This contains 5 clones of Zone Rate zones see if this works for you ...
Still the same problem.
During check-out, when I opt "zones2" it will switch back to "zones" and calculate those shipping costs.
Basically I can see all the possible shipping methods, I can opt them, but on the final page of check-out, it'll switch back to the default shipping. :(
Also I have COWOA installed on my website.
Maybe it interferes?
I know COWOA is not always working on chrome, which is a very annoying issue for me.
Must be something with your COWOA as this cannot be reproduced in any of the versions of Zen Cart that I have test ...