Forums / Built-in Shipping and Payment Modules / Free shipping for orders over X$ in the lower 48 only?

Free shipping for orders over X$ in the lower 48 only?

Views: 11,331

Results 21 to 35 of 35
20 Mar 2010, 8:47 PM
#21
ahaynes106 avatar

ahaynes106

New Zenner

Join Date:
Oct 2009
Posts:
38
Plugin Contributions:
0

Free shipping for orders over X$ in the lower 48 only?

Thanks for the quick resposne. To answer your questions:
Yes - keep the Free Shipping everywhere if possible
Add handling fee for WA, OR, and CA.
$50 per case.

21 Mar 2010, 3:33 PM
#22
ahaynes106 avatar

ahaynes106

New Zenner

Join Date:
Oct 2009
Posts:
38
Plugin Contributions:
0

Re: Free shipping for orders over X$ in the lower 48 only?

Ajeh - I went ahead and used the example to create a zone containing the states with no handling fee and then again for those three I do want the handling fee. Now should I disable freeshipper and use the other free shipping module or would it be better to use the ZoneTable method?

4 Feb 2011, 11:24 PM
#23
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

Re: Free shipping for orders over X$ in the lower 48 only?

I needed a Canada-only zone with all provinces. I created the following snippet using the US one posted by Ajeh as an example. I have tested it with a few Provinces/postal codes, and it all appears to be working correctly, however you might wish to test it more extensively if you do use it on your website. Hopefully someone will find it useful.

INSERT INTO `geo_zones` (`geo_zone_id`, `geo_zone_name`, `geo_zone_description`, `last_modified`, `date_added`) VALUES (31, 'Canada Zone', 'Canada Zone for Shipping', NULL, '2008-02-01 12:12:12');

INSERT INTO `zones_to_geo_zones` (`zone_country_id`, `zone_id`, `geo_zone_id`) VALUES
(38, 66, 31),
(38, 67, 31),
(38, 68, 31),
(38, 69, 31),
(38, 70, 31),
(38, 71, 31),
(38, 72, 31),
(38, 73, 31),
(38, 74, 31),
(38, 75, 31),
(38, 76, 31),
(38, 77, 31),
(38, 78, 31);
23 Oct 2013, 9:40 PM
#24
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Free shipping for orders over X$ in the lower 48 only?

Ajeh:

To create the Zone for the Lower 48 States plus DC you can use the following in the Tools ... Insert SQL Patches ...

INSERT INTO geo_zones (geo_zone_id, geo_zone_name, geo_zone_description, last_modified, date_added) VALUES (21, '48 Lower States', '48 States + DC', NULL, '2008-02-01 12:12:12');

INSERT INTO zones_to_geo_zones (zone_country_id, zone_id, geo_zone_id) VALUES
(223, 1, 21),
(223, 4, 21),
(223, 5, 21),
(223, 12, 21),
(223, 13, 21),
(223, 14, 21),
(223, 15, 21),
(223, 16, 21),
(223, 18, 21),
(223, 19, 21),
(223, 22, 21),
(223, 23, 21),
(223, 24, 21),
(223, 25, 21),
(223, 26, 21),
(223, 27, 21),
(223, 28, 21),
(223, 29, 21),
(223, 31, 21),
(223, 32, 21),
(223, 33, 21),
(223, 34, 21),
(223, 35, 21),
(223, 36, 21),
(223, 37, 21),
(223, 38, 21),
(223, 39, 21),
(223, 40, 21),
(223, 41, 21),
(223, 42, 21),
(223, 43, 21),
(223, 44, 21),
(223, 45, 21),
(223, 47, 21),
(223, 48, 21),
(223, 49, 21),
(223, 51, 21),
(223, 53, 21),
(223, 54, 21),
(223, 55, 21),
(223, 56, 21),
(223, 57, 21),
(223, 58, 21),
(223, 59, 21),
(223, 61, 21),
(223, 62, 21),
(223, 63, 21),
(223, 64, 21),
(223, 65, 21);

> 
> Be sure to backup your database first before running things like this ...

Thanks, using this SQL will create a zone definition for the 48 lower states + DC, however i do not have the states in my zones at all, is there a SQL patch to add all states as zones ?
24 Oct 2013, 3:37 PM
#25
ajeh avatar

ajeh

Oba-san

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

Re: Free shipping for orders over X$ in the lower 48 only?

When you click Reply, please answer all of the questions ...

If you go to Locations / Taxes ... Zones ... how many Zones do you see?

Is this a Live site or one that you are building?

Do you already have Customers, Orders, etc.?

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!

24 Oct 2013, 3:38 PM
#26
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Free shipping for orders over X$ in the lower 48 only?

Ajeh:

When you click Reply, please answer all of the questions ...

If you go to Locations / Taxes ... Zones ... how many Zones do you see?

Is this a Live site or one that you are building?

Do you already have Customers, Orders, etc.?

Live site with customers orders, i only have all canadian provinces

24 Oct 2013, 4:00 PM
#27
ajeh avatar

ajeh

Oba-san

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

Re: Free shipping for orders over X$ in the lower 48 only?

Could you click Reply and answer the questions about your Zen Cart that come up?

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!

24 Oct 2013, 4:00 PM
#28
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Free shipping for orders over X$ in the lower 48 only?

Ajeh:

Could you click Reply and answer the questions about your Zen Cart that come up?

It does not come up but i use 1.5.0

24 Oct 2013, 4:09 PM
#29
ajeh avatar

ajeh

Oba-san

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

Re: Free shipping for orders over X$ in the lower 48 only?

You can try this ...

Backup your database before attempting this ...

Either use phpMyAdmin or go to Tools ... Install SQL Patches ...

INSERT INTO `zones` (`zone_id`, `zone_country_id`, `zone_code`, `zone_name`) VALUES
(1, 223, 'AL', 'Alabama'),
(2, 223, 'AK', 'Alaska'),
(3, 223, 'AS', 'American Samoa'),
(4, 223, 'AZ', 'Arizona'),
(5, 223, 'AR', 'Arkansas'),
(7, 223, 'AA', 'Armed Forces Americas'),
(9, 223, 'AE', 'Armed Forces Europe'),
(11, 223, 'AP', 'Armed Forces Pacific'),
(12, 223, 'CA', 'California'),
(13, 223, 'CO', 'Colorado'),
(14, 223, 'CT', 'Connecticut'),
(15, 223, 'DE', 'Delaware'),
(16, 223, 'DC', 'District of Columbia'),
(17, 223, 'FM', 'Federated States Of Micronesia'),
(18, 223, 'FL', 'Florida'),
(19, 223, 'GA', 'Georgia'),
(20, 223, 'GU', 'Guam'),
(21, 223, 'HI', 'Hawaii'),
(22, 223, 'ID', 'Idaho'),
(23, 223, 'IL', 'Illinois'),
(24, 223, 'IN', 'Indiana'),
(25, 223, 'IA', 'Iowa'),
(26, 223, 'KS', 'Kansas'),
(27, 223, 'KY', 'Kentucky'),
(28, 223, 'LA', 'Louisiana'),
(29, 223, 'ME', 'Maine'),
(30, 223, 'MH', 'Marshall Islands'),
(31, 223, 'MD', 'Maryland'),
(32, 223, 'MA', 'Massachusetts'),
(33, 223, 'MI', 'Michigan'),
(34, 223, 'MN', 'Minnesota'),
(35, 223, 'MS', 'Mississippi'),
(36, 223, 'MO', 'Missouri'),
(37, 223, 'MT', 'Montana'),
(38, 223, 'NE', 'Nebraska'),
(39, 223, 'NV', 'Nevada'),
(40, 223, 'NH', 'New Hampshire'),
(41, 223, 'NJ', 'New Jersey'),
(42, 223, 'NM', 'New Mexico'),
(43, 223, 'NY', 'New York'),
(44, 223, 'NC', 'North Carolina'),
(45, 223, 'ND', 'North Dakota'),
(46, 223, 'MP', 'Northern Mariana Islands'),
(47, 223, 'OH', 'Ohio'),
(48, 223, 'OK', 'Oklahoma'),
(49, 223, 'OR', 'Oregon'),
(51, 223, 'PA', 'Pennsylvania'),
(52, 223, 'PR', 'Puerto Rico'),
(53, 223, 'RI', 'Rhode Island'),
(54, 223, 'SC', 'South Carolina'),
(55, 223, 'SD', 'South Dakota'),
(56, 223, 'TN', 'Tennessee'),
(57, 223, 'TX', 'Texas'),
(58, 223, 'UT', 'Utah'),
(59, 223, 'VT', 'Vermont'),
(60, 223, 'VI', 'Virgin Islands'),
(61, 223, 'VA', 'Virginia'),
(62, 223, 'WA', 'Washington'),
(63, 223, 'WV', 'West Virginia'),
(64, 223, 'WI', 'Wisconsin'),
(65, 223, 'WY', 'Wyoming');

and see if that gives you all of the Zones for the 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!

24 Oct 2013, 4:12 PM
#30
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Free shipping for orders over X$ in the lower 48 only?

Ajeh:

You can try this ...

Backup your database before attempting this ...

Either use phpMyAdmin or go to Tools ... Install SQL Patches ...

INSERT INTO zones (zone_id, zone_country_id, zone_code, zone_name) VALUES
(1, 223, 'AL', 'Alabama'),
(2, 223, 'AK', 'Alaska'),
(3, 223, 'AS', 'American Samoa'),
(4, 223, 'AZ', 'Arizona'),
(5, 223, 'AR', 'Arkansas'),
(7, 223, 'AA', 'Armed Forces Americas'),
(9, 223, 'AE', 'Armed Forces Europe'),
(11, 223, 'AP', 'Armed Forces Pacific'),
(12, 223, 'CA', 'California'),
(13, 223, 'CO', 'Colorado'),
(14, 223, 'CT', 'Connecticut'),
(15, 223, 'DE', 'Delaware'),
(16, 223, 'DC', 'District of Columbia'),
(17, 223, 'FM', 'Federated States Of Micronesia'),
(18, 223, 'FL', 'Florida'),
(19, 223, 'GA', 'Georgia'),
(20, 223, 'GU', 'Guam'),
(21, 223, 'HI', 'Hawaii'),
(22, 223, 'ID', 'Idaho'),
(23, 223, 'IL', 'Illinois'),
(24, 223, 'IN', 'Indiana'),
(25, 223, 'IA', 'Iowa'),
(26, 223, 'KS', 'Kansas'),
(27, 223, 'KY', 'Kentucky'),
(28, 223, 'LA', 'Louisiana'),
(29, 223, 'ME', 'Maine'),
(30, 223, 'MH', 'Marshall Islands'),
(31, 223, 'MD', 'Maryland'),
(32, 223, 'MA', 'Massachusetts'),
(33, 223, 'MI', 'Michigan'),
(34, 223, 'MN', 'Minnesota'),
(35, 223, 'MS', 'Mississippi'),
(36, 223, 'MO', 'Missouri'),
(37, 223, 'MT', 'Montana'),
(38, 223, 'NE', 'Nebraska'),
(39, 223, 'NV', 'Nevada'),
(40, 223, 'NH', 'New Hampshire'),
(41, 223, 'NJ', 'New Jersey'),
(42, 223, 'NM', 'New Mexico'),
(43, 223, 'NY', 'New York'),
(44, 223, 'NC', 'North Carolina'),
(45, 223, 'ND', 'North Dakota'),
(46, 223, 'MP', 'Northern Mariana Islands'),
(47, 223, 'OH', 'Ohio'),
(48, 223, 'OK', 'Oklahoma'),
(49, 223, 'OR', 'Oregon'),
(51, 223, 'PA', 'Pennsylvania'),
(52, 223, 'PR', 'Puerto Rico'),
(53, 223, 'RI', 'Rhode Island'),
(54, 223, 'SC', 'South Carolina'),
(55, 223, 'SD', 'South Dakota'),
(56, 223, 'TN', 'Tennessee'),
(57, 223, 'TX', 'Texas'),
(58, 223, 'UT', 'Utah'),
(59, 223, 'VT', 'Vermont'),
(60, 223, 'VI', 'Virgin Islands'),
(61, 223, 'VA', 'Virginia'),
(62, 223, 'WA', 'Washington'),
(63, 223, 'WV', 'West Virginia'),
(64, 223, 'WI', 'Wisconsin'),
(65, 223, 'WY', 'Wyoming');

> 
> and see if that gives you all of the Zones for the US ...

WARNING: An Error occurred, please refresh the page and try again.
24 Oct 2013, 4:16 PM
#31
ajeh avatar

ajeh

Oba-san

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

Re: Free shipping for orders over X$ in the lower 48 only?

Do you use prefixes on your database tables, such as zen_?

Do you see any debug logs in the /logs directory, if so, what do they read?

Are you able to export from your database your table:
zones

and Zip it then add it as an attachment here? (just click the Go Advanced button to see the Attachment, after you hit Reply)

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!

24 Oct 2013, 4:19 PM
#32
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Free shipping for orders over X$ in the lower 48 only?

Ajeh:

Do you use prefixes on your database tables, such as zen_?

Do you see any debug logs in the /logs directory, if so, what do they read?

Are you able to export from your database your table:
zones

and Zip it then add it as an attachment here? (just click the Go Advanced button to see the Attachment, after you hit Reply)

I'm able to export, tables have zen_ prefix, i added it got this error:
#1062 - Duplicate entry '1' for key 'PRIMARY'

24 Oct 2013, 4:22 PM
#33
ajeh avatar

ajeh

Oba-san

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

Re: Free shipping for orders over X$ in the lower 48 only?

Maybe seeing your table:
zen_zones

from a Zip of an export of the data would be of help, as I do not know how you have your data set up now that you are not using the default data ...

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!

24 Oct 2013, 4:34 PM
#34
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Free shipping for orders over X$ in the lower 48 only?

Attachment #13238> Ajeh:

Maybe seeing your table:
zen_zones

from a Zip of an export of the data would be of help, as I do not know how you have your data set up now that you are not using the default data ...

Please see attached

24 Oct 2013, 4:45 PM
#35
ajeh avatar

ajeh

Oba-san

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

Re: Free shipping for orders over X$ in the lower 48 only?

You appear to already have all the Zones for the US in your Zones table ...

If you are trying to run one of the SQLs posted to help you build a Zone Definition, try running it in the Tools ... Install SQL Patches ... as that will adjust the SQL for your prefixes ...

Before running any of them, check to see what your existing Zone Definitions are using for the zone_id by going to the Localization/Taxes ... Zone Definitions ... and click on the blue triangle under Action and look in the URL for the:
zID=XX

and make sure none of them are using the same value that you see such as what is highlighted in RED:

INSERT INTO `geo_zones` (`geo_zone_id`, `geo_zone_name`, `geo_zone_description`, `last_modified`, `date_added`) VALUES ([B]21[/B], '48 Lower States', '48 States + DC', NULL, '2008-02-01 12:12:12');

for the SQL that you are trying to run ...

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!