Results 1 to 10 of 10
  1. #1
    Join Date
    May 2006
    Location
    Scotland
    Posts
    198
    Plugin Contributions
    0

    help question Weird problem with state pull down

    In Admin I have State set to TRUE and always display state as pull down set to FALSE.
    This works fine if you register as a new user, until a problem with you registration occurs. If you enter an incorrect email address, for example, then the registration page reappears with the relevant error message, but also with a state pulldown menu. Furthermore, you can't get any further through registration until you select a state from the pulldown.
    What is generating this pulldown menu and how do I get rid of it?
    I'm using a clean install of 1.3.7

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Weird problem with state pull down

    Having the state-pulldown default setting to false means that when a visitor goes to the registration page, they will see only an input field.

    However, if they enter an invalid state (including leaving it blank), and the page must be redrawn with already-entered data along with an error message, then the state-input field turns into a pulldown if the country they selected has associated zones defined in Zen Cart. This way, the customer can only select a valid state. It's intended to help the customer choose the correct option, since they encountered errors while trying to do it without the extra assistance.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  3. #3
    Join Date
    Jan 2004
    Posts
    573
    Plugin Contributions
    0

    help question Re: Weird problem with state pull down

    Quote Originally Posted by DrByte View Post
    Having the state-pulldown default setting to false means that when a visitor goes to the registration page, they will see only an input field.

    However, if they enter an invalid state (including leaving it blank), and the page must be redrawn with already-entered data along with an error message, then the state-input field turns into a pulldown if the country they selected has associated zones defined in Zen Cart. This way, the customer can only select a valid state. It's intended to help the customer choose the correct option, since they encountered errors while trying to do it without the extra assistance.
    after upgrading from 1.3.0.2 to 1.3.7

    i am having an issue when a customer is trying to add another address
    it keeps asking for the country to be selected and you can't get past the screen

    i set the state to a dropdown and the billing address can be created using this method but the additional address has no dropdown for state and it keeps asking for the country to be selected from the dropdown

    any idea what files i should be looking at?
    Attached Images Attached Images  
    Last edited by sgflowers; 17 Nov 2007 at 04:56 PM. Reason: adding attachment

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Weird problem with state pull down

    Check your stylesheet and make sure you are not missing the classes:
    Code:
    .hiddenField {
    	display: none;
    }
    .visibleField {
    	display: inline;
    }
    And check your template that it is current as well ...

    A switch to the Classic template, after adding those classes to the stylesheet, is a good test if this is a template issue ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Jan 2004
    Posts
    573
    Plugin Contributions
    0

    help question Re: Weird problem with state pull down

    Quote Originally Posted by Ajeh View Post
    Check your stylesheet and make sure you are not missing the classes:
    Code:
    .hiddenField {
    	display: none;
    }
    .visibleField {
    	display: inline;
    }
    And check your template that it is current as well ...

    A switch to the Classic template, after adding those classes to the stylesheet, is a good test if this is a template issue ...
    i works when set to the classic template

    what template files / functional files should i be looking at

    it is only when adding a an address - the main address works fine

    the css for my custom template contains the above code
    Last edited by sgflowers; 17 Nov 2007 at 05:12 PM. Reason: update to template issue

  6. #6
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Weird problem with state pull down

    Compare the Create Account and address book files.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #7
    Join Date
    Jan 2004
    Posts
    573
    Plugin Contributions
    0

    Default Re: Weird problem with state pull down

    Quote Originally Posted by Kim View Post
    Compare the Create Account and address book files.

    modules>pages?

  8. #8
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Weird problem with state pull down

    When you upgrade you need to compare every one of your custom templaes to the current version and merge any custom changes you have made to core files into the new files.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  9. #9
    Join Date
    Jan 2004
    Posts
    573
    Plugin Contributions
    0

    Default Re: Weird problem with state pull down

    Quote Originally Posted by Kim View Post
    When you upgrade you need to compare every one of your custom templaes to the current version and merge any custom changes you have made to core files into the new files.
    yes i understand
    just looking hopefully to avoid going through every file individually

    this was switch of hosting company and an upgrade from 1.3.0.2 to 1.3.7 all in one

    i thought it was working but this is the last remaining issue

  10. #10
    Join Date
    Jan 2004
    Posts
    573
    Plugin Contributions
    0

    Default Re: Weird problem with state pull down

    i had some old templates that were overiding the 1.3.7 related to account creation and address book

    all is good now

    thanks for the help!

 

 

Similar Threads

  1. state pull down list query
    By giov in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Jun 2009, 02:43 PM
  2. Weird problem with state pull down
    By high2K in forum General Questions
    Replies: 0
    Last Post: 30 Jul 2007, 02:35 PM
  3. Weird thing with state drop down field
    By kappaluppa in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Apr 2007, 05:31 AM
  4. State pull down menu
    By jetx in forum Upgrading from 1.3.x to 1.3.9
    Replies: 9
    Last Post: 12 Oct 2006, 01:17 PM
  5. Problem with Province/State pull down during create account
    By mysmmx in forum Basic Configuration
    Replies: 0
    Last Post: 19 Jun 2006, 05:55 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