Forums / Addon Shipping Modules / Multiple Zone Rates Support Thread

Multiple Zone Rates Support Thread

Started by totalsam on 16 Aug 2010, 10:31 AM · Views: 15,032

Results 1 to 20 of 55
16 Aug 2010, 10:31 AM
#1
totalsam avatar

totalsam

Zen Follower

Join Date:
Jan 2009
Posts:
126
Plugin Contributions:
0

Multiple Zone Rates Support Thread

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.

16 Aug 2010, 11:02 AM
#2
totalsam avatar

totalsam

Zen Follower

Join Date:
Jan 2009
Posts:
126
Plugin Contributions:
0

Re: Multiple Zone Rates Support Thread

File has been uploaded to the ZenCart Add On files but meanwhile its available on here for anyone that wants it.

Enjoy!

16 Aug 2010, 4:44 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple Zone Rates Support Thread

You may wish to check the code ...

Line 147 of each file needs to be changed to:

      $dest_country = $order->delivery['country']['iso_code_2'];

with the exception of zones_2.php as it is already set to this ...

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!

16 Aug 2010, 6:06 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple Zone Rates Support Thread

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

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!

17 Aug 2010, 3:36 AM
#5
mehistaken avatar

mehistaken

New Zenner

Join Date:
Aug 2010
Posts:
1
Plugin Contributions:
0

Re: Multiple Zone Rates Support Thread

Thanks totalsam for the files and everyone else who contributed, I got my zone rates to work with these files!

Cheers

17 Aug 2010, 9:39 AM
#6
totalsam avatar

totalsam

Zen Follower

Join Date:
Jan 2009
Posts:
126
Plugin Contributions:
0

Re: Multiple Zone Rates Support Thread

Ajeh:

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

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!

17 Aug 2010, 1:42 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple Zone Rates Support Thread

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:

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!

17 Aug 2010, 4:20 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple Zone Rates Support Thread

Ain't it fun writing contributions?! :lamo:

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!

18 Aug 2010, 12:52 AM
#10
rony avatar

rony

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Multiple Zone Rates Support Thread

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

18 Aug 2010, 1:42 AM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple Zone Rates Support Thread

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 ...

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!

19 Aug 2010, 7:10 AM
#12
pinkleopard avatar

pinkleopard

Zen Follower

Join Date:
Jun 2009
Posts:
383
Plugin Contributions:
0

Re: Multiple Zone Rates Support Thread

How is this addon different from the ones already available? :huh:

19 Aug 2010, 7:18 AM
#13
pinkleopard avatar

pinkleopard

Zen Follower

Join Date:
Jun 2009
Posts:
383
Plugin Contributions:
0

Re: Multiple Zone Rates Support Thread

Does not appear to be for international flat rate :(

Is it compatible with Google Base?

26 Oct 2010, 5:31 PM
#14
kiyo avatar

kiyo

New Zenner

Join Date:
Dec 2009
Posts:
3
Plugin Contributions:
0

Re: Multiple Zone Rates Support Thread

Hi, how can i change the shipping option name show to customer in shopping cart shipping estimator?

Thanks

26 Oct 2010, 6:45 PM
#15
totalsam avatar

totalsam

Zen Follower

Join Date:
Jan 2009
Posts:
126
Plugin Contributions:
0

Re: Multiple Zone Rates Support Thread

PinkLeopard:

How is this addon different from the ones already available? :huh:

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

26 Oct 2010, 6:54 PM
#16
totalsam avatar

totalsam

Zen Follower

Join Date:
Jan 2009
Posts:
126
Plugin Contributions:
0

Re: Multiple Zone Rates Support Thread

kiyo:

Hi, how can i change the shipping option name show to customer in shopping cart shipping estimator?

Thanks

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

26 Oct 2010, 7:21 PM
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple Zone Rates Support Thread

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

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!

28 Oct 2010, 2:16 AM
#18
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Re: Multiple Zone Rates Support Thread

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!

12 Jan 2011, 6:17 PM
#20
timlo avatar

timlo

New Zenner

Join Date:
Jan 2008
Posts:
20
Plugin Contributions:
0

Re: Multiple Zone Rates Support Thread

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