Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Posts
    25
    Plugin Contributions
    0

    Default How do I remove the Country field from the Create Account Form?

    Hi again.

    Got one problem sorted out, now I have another challenge!

    Can anyone please tell me how to remove the country field from the Create Account Form? I have figured out how to alter the field names, but I'm not sure how to remove a field?

    We only ship within the UK, so the country field isn't required.

    Thanks.

  2. #2
    Join Date
    Jun 2009
    Posts
    80
    Plugin Contributions
    0

    Default Re: How do I remove the Country field from the Create Account Form?

    I have made a country called UK and then added zones for England,Scotland etc...

    you can then set it so that the country is UK by default

    that solves the problem of people not being able to order because of country issues...

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

    Default Re: How do I remove the Country field from the Create Account Form?

    I had a similar challenge, but because a lot of UK shippers divide the UK into REGIONS, it helps to retain the FUNCTIONALITY of the "country" element.

    What I did was this:

    1. Change the LABEL (define) for "country" to "region".
    2. Delete ALL Countries from the "countries" table in the database.
    3. Add NEW "countries":-
    • UK Mainland
    • UK Scottish Highlands
    • UK Scottish Islands
    • UK Northern Ireland
    • UK Islands
    • UK Channel Islands


    Then, to add the UK COUNTIES to these "regions", you need to add them as ZONES

    EG:-
    • UK Mainland
    • - Avon
    • - Bedfordshire
    • - Berkshire
    • - City of Bristol
    • - Buckinghamshire
    • - Cambridgeshire
    • - Cambridgeshire and Isle of Ely
    • - Cheshire
    • - Cleveland
    • - Cornwall
    • - Cumberland
    • - Cumbria
    • - Derbyshire
    • - Devon
    • - Dorset
    • - Durham
    • - East Suffolk
    • - East Sussex
    • - ... ETC
    • UK Scottish Highlands
    • - Caithness
    • - Sutherland
    • - Ross and Cromarty
    • - Nairn
    • - Invernesshire

    ... and so on for all REGIONS.

    You will have to "invent" ISO 2 and 3 digit codes of your own, as there are no ISO codes of this kind for these "customized" countries. This will only be an issue if you use 3rd party shipping mods that call to a remote server (eg: fedEx, UPS) where the ISO is a key identifier.

    I made all these changes via phpMyAdmin, using SQL commands to truncate the relevant tables and to insert new data.

    if you use this method, then the following tables are relevant.

    countries
    geo_zones
    zones
    zones_to_geo_zones

    See an example HERE
    (Slightly different from above, but the same principle)
    Last edited by schoolboy; 21 Jan 2010 at 10:34 AM.
    20 years a Zencart User

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: How do I remove the Country field from the Create Account Form?

    ... and yes... LVT LTD is correct. You HAVE to retain the countries function because the checkout process is dependant on it... NO COUNTRIES = NO CHECKOUT POSSIBLE

    PS: In my example site, you will also see that I have REVERSED the position / order of the REGIONS and COUNTY/PROVINCE fields...

    ... this enables the correct display of counties, dependant on the region selected.
    20 years a Zencart User

  5. #5
    Join Date
    Jun 2009
    Posts
    80
    Plugin Contributions
    0

    Default Re: How do I remove the Country field from the Create Account Form?

    School boy can you please state the file and code used to reverse the fields?

    I would love to do that...

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: How do I remove the Country field from the Create Account Form?

    Quote Originally Posted by LVT LTD View Post
    School boy can you please state the file and code used to reverse the fields?

    I would love to do that...


    I'll make a note of this and get back to it.

    PM me in a day or two to nudge me about this...
    20 years a Zencart User

 

 

Similar Threads

  1. v139g Remove Some of the Countries from Create Account Drop Down Menu
    By clriding in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Oct 2013, 08:58 PM
  2. How do I make Address line 2 compulsory in the create account form?
    By Liamv in forum Customization from the Admin
    Replies: 3
    Last Post: 3 Mar 2010, 09:12 PM
  3. Replies: 6
    Last Post: 20 Nov 2007, 02:04 AM
  4. Modifying the account create to include form field hints
    By davidhwalker in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 May 2007, 03:43 AM
  5. How can I remove the New Customer Profile Form from the Login Page?
    By jaxbakers in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Oct 2006, 06:27 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