Forums / General Questions / How do I configure so my store can only sell to certain US States?

How do I configure so my store can only sell to certain US States?

Locked

Views: 659

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
15 Dec 2011, 7:08 PM
#1
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

How do I configure so my store can only sell to certain US States?

Since I wasn't sure how to phrase the search phrase (and I tried a couple of different ways first anyhow), I decided to post this here.

I have a client who will be selling products wholesale to practitioners. They only states they sell to right now are: NC, SC, and GA.

How do I configure things so only customers in those 3 states are able to make purchases?

15 Dec 2011, 8:32 PM
#2
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Re: How do I configure so my store can only sell to certain US States?

Also meant to say that the client will not be using live shopping rates, but will have a shipping cost matrix in place.

I think my answer lies in building a zone definition.

Do I take an existing zone and edit it?
Or do I make one from scratch - and if so, how?
I don't see any "add new" type command.

15 Dec 2011, 10:11 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: How do I configure so my store can only sell to certain US States?

If you're not going to use any addresses outside those 3 states for ANY reason, delete all the other states from your store. Same with countries. Then nobody can ever register with any address outside those areas, and thus can never ask to ship outside those areas.

Then create zone definnitions to handle your taxes etc within those states.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Dec 2011, 6:02 PM
#4
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Re: How do I configure so my store can only sell to certain US States?

Thanks, Dr. Bye, for your help. Sorry for the delay in responding.

Since he's selling to practitioners, it's like wholesale - so no taxes are involved.

If I delete all the other states, how hard it is to add one or two back in? I think he alluded to the fact that they may be adding more states down the road.

28 Dec 2011, 6:05 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: How do I configure so my store can only sell to certain US States?

You'd need to manually add them back in by running SQL statements copied from the original install scripts in the /zc_install/sql/ folder.
If you don't do it that way then you'll end up with states having the wrong zone_id value, and might not sync properly with addon systems.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Dec 2011, 6:27 PM
#6
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Re: How do I configure so my store can only sell to certain US States?

well, I'm deleting the countries to start with .. and I see an "add country" button, so I'll assume there is one for states too.

Perhaps in future versions of ZC, instead of just "add" and "delete" if there could be a "deactivate/activate" button ... so people can turn off countries/states without having to delete and add.

28 Dec 2011, 7:03 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: How do I configure so my store can only sell to certain US States?

There are many things planned for future versions.

In the meantime, it's recommended to NOT use the "add country" button or any equivalent for "add state". Use the SQL Insert approach I mentioned earlier.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Dec 2011, 8:10 PM
#8
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Re: How do I configure so my store can only sell to certain US States?

Thank you so very much!

I understand the instructions for adding them back in if we need to in the future. I'll bookmark this thread for reference.

Much appreciated!