Limit US States list to the 48 contiguous

3 replies [Last post]
Joined: 06/19/2009
Juice: 23

I am working on the final phase of a site, intended to sell just a couple of products (to begin with). The products' cost is low and it would make no sense for buyers in Alaska, Hawaii and other territories to pay shipping. For example. A product that costs $20 will ship for about $10 in the 48 states (size doesn't fit in USPS' flat rate boxes) and would cost $30+ shipping to the states and territories mentioned above.

How can I set the list of states in the US to include only the 48 contiguous states? I prefer not to eliminate the others since I may be able to come up later with products that will make sense shipping there - but this would be a longer term issue.

Also, do you know of a more cost effective shipping method for products size of 23" x 23" x 1.5" that weighs about 2.5lb? I would like to reduce costs for my customers.

Thanks for your assistance,
Benny

Joined: 06/19/2009
Juice: 23

OK - I got it. If anyone have the same need here it is.

In filesyste:
Go to .../all/modules/ubercart/store/countries and modify the "united_states_840_1.cif file. Backup this file since you may need it later. Open the file with a text editor and delete all the lines that you don't want to appear in the States list. Save the file with the original name.

In Drupal:
Go to "Administr/Store Administration/Configuration/Country Settings" and select the Edit tab. If you already have the United States there, remove it. Then, select from the list "united_states_840_1.cif" and press the Import button. You can now check the list of states in your Checkout form.

Hope it helps.

Joined: 08/25/2008
Juice: 56

Does this effect the shipping states only or both shipping and billing? I have a situation where we can only ship to certain states but we can accept purchases from any state.

Thanks.

Joined: 02/10/2010
Juice: 130

This is great, thank you for posting your solution!