Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Posts
    64
    Plugin Contributions
    0

    Default How do I restrict which States can buy from my store?

    Hello,

    I am setting a store up where I only wish to ship to 5 states. WA, OR, ID, MT, and AK. Is there a way to restrict customers from registering an address that is not within one of the above 5 states?

    Thank you,

    Max

  2. #2
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    307
    Plugin Contributions
    0

    Default Re: How do I restrict which States can buy from my store?

    I'm guessing you could delete all other zones (states) from your admin, thus when users register at your shop they won't see the other states.

    You could also display some text on the registration page and let people know that you only ship to those 5 states.

    1. In /includes/language/YOUR_LANGUAGE/create_account.php, around line 14, change

    Code:
    define('TEXT_ORIGIN_LOGIN', '<strong class="note">NOTE:</strong> If you already have an account with us, please login at the <a href="&#37;s">login page</a>.');
    to

    Code:
    define('TEXT_ORIGIN_LOGIN', '<strong class="note">NOTE:</strong> If you already have an account with us, please login at the <a href="%s">login page</a>. Please also note that we only ship to WA, OR, ID, MT and AK');
    or whatever you like.

    2. In /includes/language/YOUR_LANGUAGE/login.php, around line 13, change

    Code:
    define('HEADING_NEW_CUSTOMER', 'New? Please Provide Your Billing Information');
    or around line 16, change

    Code:
    define('TEXT_NEW_CUSTOMER_INTRODUCTION', 'Create a login profile with <strong>' . STORE_NAME . '</strong> which allows you to shop faster, track the status of your current orders and review your previous orders.');
    to include a similar notice.

    Always make use of the override function though.

    Might not be the best way to do it but hope it helps !

    Shirley :)

  3. #3
    Join Date
    Jun 2007
    Posts
    64
    Plugin Contributions
    0

    Default Re: How do I restrict which States can buy from my store?

    Thank you for the suggestions Shirley. I was also kicking around the idea of modifying the code for where a new customer signs up. In the state dialog box if the two character code is not equal to WA, OR, ID, MT, or AK it would activate a pop-up that would remind them of the restriction.

    Anybody know where the customer signup code is located? I looked in language/login.php but did not see it.

    Where can I read more about the zones?

    Thank you very much, I apologize for the amount of questions.

 

 

Similar Threads

  1. Restrict Shipping of a category of products from certain states
    By Ashaw33 in forum Addon Shipping Modules
    Replies: 13
    Last Post: 30 May 2015, 11:32 PM
  2. Replies: 7
    Last Post: 28 Dec 2011, 09:10 PM
  3. Replies: 1
    Last Post: 3 Sep 2011, 03:10 PM
  4. How can I restrict certain products from being purchased outside US?
    By rhg74 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 10 Oct 2010, 06:42 PM
  5. How can I tell which Mysql database my store is using....
    By BobBobberson in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 20 Oct 2009, 06:49 AM

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