Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / How to edit country drop down list? so I can prevent anyone outside Canada buying

How to edit country drop down list? so I can prevent anyone outside Canada buying

Locked

Started by vito on 6 Jul 2010, 7:09 PM · Views: 1,552

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
6 Jul 2010, 7:09 PM
#1
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Post #1 by vito

When someone fills out the form to create a new customer account, they select their country from a drop down list. Since I want only customers located in Canada for this particular store, I want to remove all the countries from that drop down other than Canada.

So I did a global search for "Cambodia", figuring I would be able to find the file that handles this. However, the only result I got was a usps.php file.

Where do I find the file to edit the list of countries?

Vito

6 Jul 2010, 7:50 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #2 by stevesh

If you'll never want to sell outside Canada, the easiest way is probably to back up your database, then run this in Admin - Tools - Install SQL Patches :

DELETE from countries WHERE countries_iso_code_3 NOT IN('CAN');

A better way might be to set up a shipping zone that only includes Canada:

https://www.zen-cart.com/tutorials/index.php?article=69

That way, customers in other countries will be able to buy from you and ship the product to someone in Canada - gifts, for example.

6 Jul 2010, 7:56 PM
#3
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Post #3 by vito

Thanks Steve, as always.

If I wanted to add the US to the list, what would the syntax be? ('CAN','US') ?

And just to confirm, is Canada CAN or CA?

Vito