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
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.
1 Attachment(s)
Re: Weird problem with state pull down
Quote:
Originally Posted by
DrByte
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?
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 ...
Re: Weird problem with state pull down
Quote:
Originally Posted by
Ajeh
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
Re: Weird problem with state pull down
Compare the Create Account and address book files.
Re: Weird problem with state pull down
Quote:
Originally Posted by
Kim
Compare the Create Account and address book files.
modules>pages?
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.
Re: Weird problem with state pull down
Quote:
Originally Posted by
Kim
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
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!