Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2008
    Posts
    1
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Allow only customers for US

    Admin>location/taxes>countries delete all of those countries you don't want.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #3
    Join Date
    Nov 2008
    Location
    Massachusetts
    Posts
    163
    Plugin Contributions
    0

    help question Easy way to delete?

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

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default 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!

  5. #5
    Join Date
    Nov 2008
    Location
    Massachusetts
    Posts
    163
    Plugin Contributions
    0

    Default 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!

  6. #6
    Join Date
    Jul 2008
    Location
    london
    Posts
    169
    Plugin Contributions
    0

    Default 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.



    soul39

  7. #7
    Join Date
    Dec 2007
    Posts
    42
    Plugin Contributions
    0

    Default 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

  8. #8
    Join Date
    Nov 2008
    Location
    Massachusetts
    Posts
    163
    Plugin Contributions
    0

    Default 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.

  9. #9
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Allow only customers for US

    Quote Originally Posted by arashb View Post
    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???

  10. #10
    Join Date
    Feb 2008
    Posts
    129
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. v138a Only allow logged in customers to use contact form?
    By joannem in forum General Questions
    Replies: 5
    Last Post: 11 Feb 2013, 09:20 PM
  2. Allow reviews only for certain categories?
    By zingslings in forum Customization from the Admin
    Replies: 0
    Last Post: 14 Sep 2009, 09:55 PM
  3. Only allow USA Customers to Checkout
    By linnx in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Jul 2009, 10:44 PM
  4. How to allow mixed attributes for one attribute only?
    By adflkajdlfkajefiaudl in forum General Questions
    Replies: 1
    Last Post: 22 Apr 2007, 05:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg