Zen Cart Logo
Forums / Managing Customers and Orders / Allow only customers for US

Allow only customers for US

Locked

Views: 2,884

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
24 Oct 2008, 5:04 PM
#1
arashb avatar

arashb

New Zenner

Join Date:
Oct 2008
Posts:
1
Plugin Contributions:
0

Allow only customers for US

How can I limit customer's to only be from the US? I want to ship only to the US, and in the new customer section, I want the country to only be US.
Thanks

24 Oct 2008, 6:01 PM
#2
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Allow only customers for US

Admin>location/taxes>countries delete all of those countries you don't want.

15 Nov 2008, 10:45 PM
#3
alicia1234 avatar

alicia1234

Zen Follower

Join Date:
Nov 2008
Location:
Massachusetts
Posts:
164
Plugin Contributions:
0

Re: Allow only customers for US

Is there an easy way to delete all countries except US, other than manually deleting one by one?

17 Nov 2008, 12:24 PM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Allow only customers for US

Unless you're a dab hand at MySQL, or know your way around phpMyAdmin, most reliable way is to delete them manually in your Admin Panel. Yes, it takes about 15 to 20 minutes - but will prevent errors!

17 Nov 2008, 2:34 PM
#5
alicia1234 avatar

alicia1234

Zen Follower

Join Date:
Nov 2008
Location:
Massachusetts
Posts:
164
Plugin Contributions:
0

Re: Allow only customers for US

I do know my away around MySQL and phpAdmin. Thanks for that tip!

Here's what I did:

DELETE FROM zen_countries WHERE countries_name <> "United States"

Nice and quick! :clap:

17 Nov 2008, 4:06 PM
#6
soul39 avatar

soul39

Zen Follower

Join Date:
Jul 2008
Location:
london
Posts:
167
Plugin Contributions:
0

Re: Allow only customers for US

that was slick! I was looking for a way to do that for the uk.
Now i can. Thanks to you.:smile:

soul39

13 Dec 2008, 1:44 AM
#7
asimms1 avatar

asimms1

New Zenner

Join Date:
Dec 2007
Posts:
42
Plugin Contributions:
0

Re: Allow only customers for US

The syntax in this statement did not work on my version of Zen. I made some changes. Try this if the above doesn't work for you.

DELETE FROM countries WHERE countries_name <> "United States";

Adam

13 Dec 2008, 1:51 AM
#8
alicia1234 avatar

alicia1234

Zen Follower

Join Date:
Nov 2008
Location:
Massachusetts
Posts:
164
Plugin Contributions:
0

Re: Allow only customers for US

asimms1: it has to do with how you set up zen cart. I chose to have the names of all my table start with "zen_". That's the difference. Thanks for pointing that out.

20 Dec 2008, 10:35 PM
#9
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Allow only customers for US

arashb:

How can I limit customer's to only be from the US? I want to ship only to the US, and in the new customer section, I want the country to only be US.
Thanks

You don't want orders from outside the US for delivery to the US???

22 May 2009, 8:48 PM
#10
susb8383 avatar

susb8383

Zen Follower

Join Date:
Feb 2008
Posts:
129
Plugin Contributions:
0

Re: Allow only customers for US

I just did the same thing (deleted my non-US countries) and I just wanted to mention: don't forget about zones (states).

In my case my dropshipper will only ship to the continental US. The default zones table has lots of US 'states' such as Guam, Puerto Rico, Armed Services Africa, etc.

I just went in and deleted the non-continental ones.

Also if you have any zone definitions set up in ZenCart for a country or zone you're about to delete, remove these manually first so you don't end up with orphans.

I guess if you wanted to keep everything clean, you should delete all the entries in the zone table that aren't for the US, but I just left them since they'll never show up in a dropdown list because the visitor can only select the US.

Technically I supposed I should allow a foreign billing country to ship to the US, but I haven't gotten any orders like this yet so it probably doesn't justify the added complexity to arrange it.