Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Special zone rates for a specific product

Special zone rates for a specific product

Views: 2,270

Results 1 to 13 of 13
11 Oct 2013, 4:48 PM
#1
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Special zone rates for a specific product

1.3.9h install.

We calculate shipping using zone rates. We'd like set up a special set of zones for one product. Specifically we'd like to ship this product free in the U.S. and add a shipping cost for international orders.

Can this be done for only a single product without affecting the other products?

John

11 Oct 2013, 5:16 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Special zone rates for a specific product

How do you have your Zone Rate zones configured right now?

11 Oct 2013, 7:32 PM
#3
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Special zone rates for a specific product

We have four zones:

US/PR, Canada, Europe, Asia

11 Oct 2013, 7:58 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Special zone rates for a specific product

Could you be a tad more specific and go to the Modules ... Shipping ... and click on Zone Rates zones and post the settings that show in the right hand panel? :lookaroun

11 Oct 2013, 8:10 PM
#5
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Special zone rates for a specific product

Of course. Here's what we have:

Remove Module Edit

Zone Based Rates

Enable Zones Method
True

Calculation Method
Price

Tax Class
--none--

Tax Basis
Shipping

Sort Order
0

Skip Countries, use a comma separated list of the two character ISO country codes

Zone 1 Countries
US,PR

Zone 1 Shipping Table
24.99:6,49.99:7,74.99:8,99.99:9,149.99:10.5,100000:0.00

Zone 1 Handling Fee
0

Handling Per Order or Per Box Zone 1 (when by weight)
Order

Zone 2 Countries
CA

Zone 2 Shipping Table
24.99:6.5,49.99:8.5,74.99:11,99.99:13,149.99:16,100000:22

Zone 2 Handling Fee
0

Handling Per Order or Per Box Zone 2 (when by weight)
Order

Zone 3 Countries
AL,AD,AT,BY,BE,BA,BG,HR,CZ,DK,EE,FI,FR,DE,GR,HU,IS,IE,IT,LV,LI,LT,LU,MK,MD,MC,NL,NO,PL,PT,RO,RU,SM,CS,SK,SI,ES,SE,CH,UA,GB

Zone 3 Shipping Table
24.99:12,49.99:14,74.99:17,99.99:20,149.99:23,100000:35

Zone 3 Handling Fee
0

Handling Per Order or Per Box Zone 3 (when by weight)
Order

Zone 4 Countries
00

Zone 4 Shipping Table
24.99:12,49.99:16,74.99:18,99.99:22,149.99:26,100000:38

Zone 4 Handling Fee
0

Handling Per Order or Per Box Zone 4 (when by weight)
Order

Zone 5 Countries

Zone 5 Shipping Table
3:8.50,7:10.50,99:20.00

Zone 5 Handling Fee
0

Handling Per Order or Per Box Zone 5 (when by weight)
Order

Zone 6 Countries

Zone 6 Shipping Table
3:8.50,7:10.50,99:20.00

Zone 6 Handling Fee
0

Handling Per Order or Per Box Zone 6 (when by weight)
Order

21 Oct 2013, 7:10 PM
#6
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Special zone rates for a specific product

Just wondering if anyone had any feedback on this thread?

24 Oct 2013, 8:33 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Special zone rates for a specific product

What would determine the amount of the shipping for International on the Product that gets Free Shipping for the US?

Would International just be based on your existing Zone Rate charges?

24 Oct 2013, 8:37 PM
#8
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Special zone rates for a specific product

Good question. The client didn't say, except that there would be a charge for international shipping. But if there's something that could be worked using existing International rates, then it might be worth a shot.

24 Oct 2013, 8:52 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Special zone rates for a specific product

On your Zone Settings, you have both US and PR combined ...

Do you want PR to also have the Free Shipping just like the US or just the US itself?

25 Oct 2013, 1:18 AM
#10
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Special zone rates for a specific product

Both would still have the free shipping

25 Oct 2013, 3:33 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Special zone rates for a specific product

You could try this ... mark the Product as Always Free Shipping ...

Then edit the file:
/includes/modules/shipping/zones.php

and change the line for the IF statement to:

              case (MODULE_SHIPPING_ZONES_METHOD == 'Price'):
//echo '$dest_zone: ' . $dest_zone . ' $_SESSION[cart]->free_shipping_prices(): ' . $_SESSION['cart']->free_shipping_prices() . '<br>';
// shipping adjustment
[B]              if (($dest_zone == 1 ? ($_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices()) : $_SESSION['cart']->show_total()) <= $zones_table[$i]) {
[/B]

So that your Zone 1 definition gets the Free Shipping and the other Zone definitions do not ...

That should exclude the Price of the Free Shipping Product from the calculation on the shipping charges when the quote is on that First Zone definition used by US and PR ...

25 Oct 2013, 10:25 AM
#12
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Special zone rates for a specific product

Thank you very much - -I'll give that a try.

John

28 Oct 2013, 3:56 AM
#13
ikanperak avatar

ikanperak

New Zenner

Join Date:
Apr 2009
Posts:
5
Plugin Contributions:
0

Re: Special zone rates for a specific product

I have been following this discussion with interest, Linda and John, and I'm waiting for the outcome. My problem is slightly different. I use zonetable rates on Zencart 139(h), with 11 geozones (zone definitions). And my shipping calculations are based on weight. (I sell books.) I notice John's is on price. I'd like to offer free shipping for specific products in Malaysia, Zone 1 (where I live). Can I edit my zonetable.php to do that? How would I code it? I am a newbie.