Forums / Built-in Shipping and Payment Modules / How do I set 2 flat shipping rates to 2 different zone?

How do I set 2 flat shipping rates to 2 different zone?

Locked

Views: 28,973

Results 1 to 20 of 89
This thread is locked. New replies are disabled.
24 Jul 2006, 9:07 PM
#1
klemens avatar

klemens

New Zenner

Join Date:
Jul 2006
Posts:
31
Plugin Contributions:
0

How do I set 2 flat shipping rates to 2 different zone?

Hi, I have two different flat shipping rates: one for US and the other for international per item. I want to have the shipping calculate per item, not per price and weight. I tried to use Table rate or Zone shipping to set it up but it does not have the Per Item calculation opion as in Flat shipping setting. Can someone help me?
Thanks.

Klemens

24 Jul 2006, 11:59 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: How do I set 2 flat shipping rates to 2 different zone?

Are you wanting a Flat Shipping Rate for the whole order? Use Flat Rate ... flat.php

Or, are you wanting a Per Item Shipping Rate? Use Per Item ... item.php

You would clone the shipping module that you want to use and set one to use one zone and one to use the other zone ...

I recently posted a method to make a quick World Zone that excludes the US ... but I don't recall where that thread is at the moment ... but you might try a search for zones and see what comes up ...

There are also several threads on cloning shipping modules that you can look up to help you in doing this ...

Or, perhaps some kind soul has bookmarked these or know where they are at ... :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!

25 Jul 2006, 12:41 AM
#3
klemens avatar

klemens

New Zenner

Join Date:
Jul 2006
Posts:
31
Plugin Contributions:
0

Re: How do I set 2 flat shipping rates to 2 different zone?

Yes I want to setup Flat shipping per item. I did use the Flat Shipping module setup for 1 zone: USA. I want to have another one like that with different flat rate for International. How do I clone it? and save where?

Thanks.

Klemens

25 Jul 2006, 12:46 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: How do I set 2 flat shipping rates to 2 different zone?

Flat means I order 27 items and pay $5.00 ... I order 1 item and pay $5.00

Per Item means I order 27 items at $5.00 each and pay $135.00 ... I order 1 item and pay $5.00

Do you want a Flat Rate Shipping? Flat Rate flat.php

Or do you want a Per Item Shipping? Per Item item.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!

25 Jul 2006, 12:55 AM
#5
klemens avatar

klemens

New Zenner

Join Date:
Jul 2006
Posts:
31
Plugin Contributions:
0

Re: How do I set 2 flat shipping rates to 2 different zone?

Sorry for the confusion.
I want Per item rate: $5/item for US, $10/item for international. Please help to show me how to clone it.
Thanks.

Klemens

25 Jul 2006, 1:02 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: How do I set 2 flat shipping rates to 2 different zone?

Copy the files:
/includes/modules/shipping/item.php
/includes/languages/english/modules/shipping/item.php

itemusa.php and itemworld.php

In the proper files:
Globally replace item with itemusa and itemworld
Globally replace ITEM with ITEMUSA and ITEMWORLD

Those are case sensative so be careful ...

WARNING: do NOT change the word item on this line:

      $total_count = $total_count - $_SESSION['cart']->free_shipping_items();

Uninstall the old Flat and Per Item that you have installed ...

Install the new ones ... and set their zones

Cloning a shipping module is not difficult just be careful ...

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!

25 Jul 2006, 1:11 AM
#7
klemens avatar

klemens

New Zenner

Join Date:
Jul 2006
Posts:
31
Plugin Contributions:
0

Re: How do I set 2 flat shipping rates to 2 different zone?

Do I need to put them into override folders for the future upgrade as below?

/includes/modules/shipping/MYTEMPLATE/itemusa.php
/includes/languages/english/modules/shipping/MYTEMPLATE/itemusa.php

/includes/modules/shipping/MYTEMPLATE/itemworld.p
/includes/languages/english/modules/shipping/MYTEMPLATE/itemworld.php

Thanks.

Klemens

25 Jul 2006, 1:12 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: How do I set 2 flat shipping rates to 2 different zone?

No, you can add them to the original directories as you are making new ones and not true overrides ...

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!

25 Jul 2006, 1:46 AM
#9
klemens avatar

klemens

New Zenner

Join Date:
Jul 2006
Posts:
31
Plugin Contributions:
0

Re: How do I set 2 flat shipping rates to 2 different zone?

Thank you Linda.
It works great. I have another question about the zone: for International, how do I set to include all countries for the itemworld without USA?

Thanks.

Klemens

25 Jul 2006, 1:51 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: How do I set 2 flat shipping rates to 2 different zone?

You search for that neat world zone post that I made that has all the countries defined except the world ... :cool:

Where I put it ... umm ... I forget ... :cry:

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!

25 Jul 2006, 1:54 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: How do I set 2 flat shipping rates to 2 different zone?

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!

25 Sep 2006, 7:48 AM
#12
artycles avatar

artycles

New Zenner

Join Date:
Sep 2006
Location:
Loch Victoria Australia
Posts:
45
Plugin Contributions:
0

Re: How do I set 2 flat shipping rates to 2 different zone?

Hello,
I've been following this thread, and I think that this is what I am wanting, however, I am in Australia, has anyone done the flat rates for 2 zones from here?
Basically I'm after: flat rate each for Australia, Rest of World (and free shipping if the total order is over $200.) any help would be very much appreciated:huh:
Kay

19 Nov 2007, 10:31 PM
#13
arekm avatar

arekm

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

Re: How do I set 2 flat shipping rates to 2 different zone?

Hello
unfortunately I cant clone "table", I followed Ajeh directives but in Admin it shows an error:

Shipping Modules  	
1146 Table 'tonery1.TABLE_NEW_CONFIGURATION' doesn't exist
in:
[select configuration_value from TABLE_NEW_CONFIGURATION where configuration_key = 'MODULE_SHIPPING_TABLE_NEW_STATUS']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I copy table.php and rename it to table_new.php
Is it possible to clon 'table' module?
regards Arek

20 Nov 2007, 3:46 AM
#14
ajeh avatar

ajeh

Oba-san

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

Re: How do I set 2 flat shipping rates to 2 different zone?

Start by cloning table to tablenew ...

and be particularly careful when you change the word:
table to tablenew
TABLE to TABLENEW

as the word table also references the tables in the database ...

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!

20 Nov 2007, 7:34 PM
#15
arekm avatar

arekm

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

Re: How do I set 2 flat shipping rates to 2 different zone?

well, it is possible to clon 'table' module, works very well for me, thak you Ajeh

3 Jul 2008, 2:24 PM
#16
nick_b avatar

nick_b

New Zenner

Join Date:
Jul 2008
Posts:
19
Plugin Contributions:
0

Re: How do I set 2 flat shipping rates to 2 different zone?

Hi Ajeh. Im new, Ive studied the FAQ and tried your cloning idea here. Cant get it to work ;-(.
Im trying to clone the table rates php's.
I changed EVERY single table or TABLE to table24 or TABLE24 respectively in both files. Am I changing too many?
Maybe I cant use numbers?
In the Admin it says:
Cannot redeclare class table in /home/Ajeh is great/public_html/cart/includes/modules/shipping/table24.php on line 197

Ecky thump - I bet its something stoopid. i even bought the ZEN book! Any help would be great.
Nick.

3 Jul 2008, 2:36 PM
#17
ajeh avatar

ajeh

Oba-san

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

Re: How do I set 2 flat shipping rates to 2 different zone?

"Table" is a word of caution ...

There are constants that refer to the database tables and others that refer to the code for the Table Rate table shipping module ...

You may want to look into the add-on Zoned Tables that I believe is in the Downloads ...

This would be easier for you to setup if you are not really familar with php code and reading the various variables and constants and identifying what is what ...

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!

3 Jul 2008, 2:38 PM
#18
nick_b avatar

nick_b

New Zenner

Join Date:
Jul 2008
Posts:
19
Plugin Contributions:
0

Re: How do I set 2 flat shipping rates to 2 different zone?

Many thanks for your time Ajeh I will pop over there and look now.
Thank you ;-)

17 Jul 2008, 1:06 PM
#20
lcarlo1507 avatar

lcarlo1507

New Zenner

Join Date:
Apr 2008
Posts:
72
Plugin Contributions:
0

Re: How do I set 2 flat shipping rates to 2 different zone?

Hi can you tell me how to do one for US and one for international flat shipping.

I have the us set up need one for international.

thanks

Luci