Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jul 2010
    Posts
    8
    Plugin Contributions
    0

    Default State Field Showing Below State Dropdown

    I am using ZenCart Version 1.3.9d. Basically, what is happening is that on the Account Create page (as well as when I try to change my address from the 'My Account' section, a State text box is showing right below the State Dropdown and it is greyed out. I know that normally if the dropdown is activated, then the 'manual' state box (meaning the one where you would have to type a state in) would not show.

    I cannot for the life of me find what is causing this to occur. I have not modified the tpl_modules_account.php file and both my state attributes for customer are set to 'true'. Can anyone help me here? Here is my website link and screenshot of my problem:
    https://www.floatingpokergames.com/i...sd8cvi2vk3f220

    Thanks
    MK
    Attached Images Attached Images  

  2. #2
    Join Date
    Feb 2008
    Location
    Toronto, Ontario, Canada
    Posts
    29
    Plugin Contributions
    0

    Default Re: State Field Showing Below State Dropdown

    Well, it seems to be almost the default except for Ohio which has counties. The state field that you have mentioned is disabled if you select USA/Canada/Australia etc. But for some, the state isnt in the drop down above. That is where you have a text box to enter it manually. Try selecting the country as Aaland Islands or Burmuda etc and notice it become active so that you type your state or province.

    Hope it helps.

  3. #3
    Join Date
    Jul 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: State Field Showing Below State Dropdown

    Not sure I understand your reply. Basically, I am wondering why the second state box(below the pulldown) is showing up even though I have the dropdown attribute set to true.

    Basically, I just want the pulldown to show without the 'second' state box. Can anyone help here.

  4. #4
    Join Date
    Jan 2004
    Posts
    58,261
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: State Field Showing Below State Dropdown

    The box shows up because if someone chooses a country which doesn't have states/provinces/zones defined for it, then your customers will have to manually type in the information instead of being able to select from the pulldown.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jan 2009
    Posts
    28
    Plugin Contributions
    0

    Default Re: State Field Showing Below State Dropdown

    Hi, Is it possible to stop the second State field from appearing?
    I have it setup to allow customers to select a state from the dropdown list where it is defined. If a country does not have a state defined then I am happy for just the country to be provided.

    Thanks

  6. #6
    Join Date
    Feb 2009
    Posts
    108
    Plugin Contributions
    0

    Default Re: State Field Showing Below State Dropdown

    Yes this would be great i don't want the extra text flield aswell, or Just a 1 text field if all states is not set up for every country...

  7. #7
    Join Date
    Feb 2009
    Posts
    108
    Plugin Contributions
    0

    Default Re: State Field Showing Below State Dropdown

    Quote Originally Posted by kiwi1066 View Post
    Hi, Is it possible to stop the second State field from appearing?
    I have it setup to allow customers to select a state from the dropdown list where it is defined. If a country does not have a state defined then I am happy for just the country to be provided.

    Thanks
    This is the best thing i could do for sweden

    ad this to stylesheet.css in your template folder

    #state,#stText,#stBreak{
    display:none;
    }

    and change english.php language file

    define('TYPE_BELOW', 'Not available');

  8. #8
    Join Date
    Feb 2009
    Posts
    108
    Plugin Contributions
    0

    Default Re: State Field Showing Below State Dropdown

    Yes that works but now i found a new problem when i try to change the billing address it says

    "Errors have occurred during the processing of your form.

    Please make the following corrections:

    * Your State must contain a minimum of 0 characters."

    It does that because sweden has no states so i selected 0 in the minimal values, and there is only one option...

  9. #9
    Join Date
    Feb 2010
    Location
    New York
    Posts
    968
    Plugin Contributions
    3

    Default Re: State Field Showing Below State Dropdown

    Here is a link to my web site create_account page, is this what you are trying to accomplish?

    If a country with prescribed states is selected, then the state dropdown box appears for selected country. If no country is selected the state dropdown box appears & displays "Choose your Country First" and the state input box never appears below ready for input.

    I only accept US & CA residents or businesses to create an account tho. If a Country with no prescribed states is selected you wont have an input field.

    In admin > configuration > customer details

    you can change
    State - Always display as pulldown? to false

    this way no matter what country is selected, a state input box is there for input

  10. #10
    Join Date
    Feb 2008
    Posts
    1,356
    Plugin Contributions
    1

    Default Re: State Field Showing Below State Dropdown

    This is due to an error in the css file. I don't remember exactly what field in CSS it was. But I seen this posted in this forum like a million time.

    Try to do a compare on the default css and the class template css. Look for missing "display:none" line under one of the classes.

    No need to edit language files. Just missing class in your current template css. Switch to a different template and see if it will change.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. State Dropdown
    By jgkiefer in forum Customization from the Admin
    Replies: 1
    Last Post: 6 May 2008, 12:29 AM
  2. how do I rename the word "state" - asin the state dropdown on the checkout page?
    By SoftDux in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Mar 2008, 07:19 PM
  3. State problem with new account (when making state field not required)
    By earmsby in forum Managing Customers and Orders
    Replies: 9
    Last Post: 13 May 2007, 10:04 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
  •