Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2009
    Location
    Liverpool
    Posts
    96
    Plugin Contributions
    0

    Default UK counties and US States

    I currently have the "Uk Counties sql script for RoyalMail" installed but now that I can supply to the US now, is there a way that I can have a dropdown on the Registration page that lists the US States AND the UK counties. Currently when someone from the US registers, they have to enter their state manually, but I want it to work the same way as when someone from the UK registers.

    Any help with be greatly appreciated.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: UK counties and US States

    If they change country, the dropdown should already repopulate with the US states.

    If you're asking if you can put both into a single dropdown, that would be a larger code change (mainly in the javascript that builds the dropdown entries) and you may need to custom write extra validation for both in-browser and server-side use to ensure that the county/state selected is consistent with the country chosen (not recommended).
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Sep 2009
    Location
    Liverpool
    Posts
    96
    Plugin Contributions
    0

    Default Re: UK counties and US States

    Posted via Mobile Device

  4. #4
    Join Date
    Sep 2009
    Location
    Liverpool
    Posts
    96
    Plugin Contributions
    0

    Default Re: UK counties and US States

    No. When a customer selects USA as their country, the UK County dropdown vanishes and is replaced by a text box. It's not a major problem as I doubt I'll be supplying much to the US. Thanks anyway.
    Posted via Mobile Device

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: UK counties and US States

    Ah yes, you're right. My apologies, since most of my clients are UK-based nowadays, I usually start with the UK counties all loaded up, but that's not the normal state.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: UK counties and US States

    There's an option in Admin - Configuration - Customer Details that controls the State dropdown.

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: UK counties and US States

    aside from the ZONES needing to be configured (ZC standard does not populate UK Counties), you can change the ORDER in which State and Country fields appear, on the registration form, for example.

    If you select State - Always a Dropdown - in your admin panel, then EDIT this file:

    tpl_modules_create_account.php

    and move the COUNTRY fieldset ABOVE the state fieldset.

    So the visitor selects COUNTRY first... which then "populates" the dropdown for STATE with appropriate zones.

    I have it in action HERE
    20 years a Zencart User

 

 

Similar Threads

  1. v150 States in U.S.A Problems and more
    By kobiadato in forum Basic Configuration
    Replies: 5
    Last Post: 1 Aug 2012, 11:25 AM
  2. Setting up taxes for OH state and counties within
    By BiillO in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 3
    Last Post: 28 Jan 2011, 07:55 PM
  3. Limiting countries and states
    By midnightwalker in forum General Questions
    Replies: 8
    Last Post: 4 Mar 2010, 12:42 AM
  4. Adding New Country and States
    By drybsmt in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Jun 2009, 04:30 AM
  5. Shipping - countries and states
    By geovino in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Jun 2006, 06:32 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR