"Please select a state from the States pull down menu."
I've just successfully changed how my drop down works in the 'Change Shipping Address' page, by only allowing 13 countries from the full list to appear.
I have a problem though when changing the address with the 'State' section. When I select a country, sometimes it allows me to go straight through without a specific state to that country, but other times if it doesnt recognise the state it brings up an error to chose a state from the pull down menu, but there nothing in there.
I would rather that the state is left up to the client to enter, rather than it being safe guarded by a certain list.
I had a look around and found what i think im looking for in 'Zones', so to allow the country selected to be not affected by the state, do I just delete all those zones from that area, and if i do will it affect any other country select lists?
cheers
Lee
Re: "Please select a state from the States pull down menu."
Quote:
Originally Posted by
multichild
I had a look around and found what i think im looking for in 'Zones', so to allow the country selected to be not affected by the state, do I just delete all those zones from that area, and if i do will it affect any other country select lists?
Selecting an appropriate State also causes the customer's address to be linked to a related Zone.
Zones are used to handle taxation and to help limit shipping modules to allowed locations.
If you start hacking things out you're going to find other things will stop working.
Were these same problems happening *before* you changed the pulldown contents?
Re: "Please select a state from the States pull down menu."
Hi DrByte,
To be honest I didnt notice, but what I have noticed is that there are only a few zones set up, and its only if I pick one of those zones in the drop down that I get the problem.
Such as if I choose Germany it asks for the state as an error, but if I choose Egypt which hasnt the states setup it doesnt and allows it to pass through.
Thats why i wondered if I could easily get rid of the other zones, without any problems anywhere else in the site.
But I wanted to check first.
Lee
Re: "Please select a state from the States pull down menu."
Normally, on a fresh unaltered install of Zen Cart, if someone chooses a country for which there are no zones defined, and if the States Pulldown field is enabled, another input field will show up next to the pulldown menu for the customer to manually key in their state/zone/province name. This hinges on some javascript and stylesheet components in order to work properly.
If the States Pulldown is disabled by default, then if the customer types in a state name that cannot be matched in the Zones for the selected country, they are asked to choose from the list of valid zones via the pulldown that appears along with the error message.
Perhaps just enabling the States Pulldown by default would help you get around some of your confusion. Granted, this requires that you're using a template that contains the default functionality for javascript and stylesheets components.
Re: "Please select a state from the States pull down menu."
Whilst my (1.3.7) installation is neither fresh nor unadulterated, I'm having a problem with the zones dropdown.
When creating an account (in order to buy something) if my customer selects a country for which there are no zones listed, even if s/he types in a "zone", a dialog box appears complaining that there is a problem, but there's no text next to the asterisk. It's only by a sequence of trials that I've found that this is the problem. :lookaroun
What to do? :blink:
TIA
Mark
Re: "Please select a state from the States pull down menu."
Check if this needs the setting to Company changed to 0 vs 2 ...
Also be sure that your stylesheet has added the classes:
Code:
.hiddenField {
display: none;
}
.visibleField {
display: inline;
}
Re: "Please select a state from the States pull down menu."
Quote:
Originally Posted by
Ajeh
Check if this needs the setting to Company changed to 0 vs 2 ...
That fixed that part! Thank you. It seems a little odd since the company name field is not marked a necessary, but hey ho.
Quote:
Originally Posted by
Ajeh
Also be sure that your stylesheet has added the classes:
It didn't, but it does now, thanx.
However...
It now has the "Sorry, we are not accepting payments from your region at this time" problem.
This seems to be that the payment module gets upset if the cart total is zero.
Or is there something different that needs tweaking?
"Almost there... we're almost there..." :cool:
Re: "Please select a state from the States pull down menu."
Ok, it turns out that this isn't a problem, just an annoyance :wink:
Yes, the payment part of screen two of the checkout procedure makes that complaint, but since there's nothing to pay, it doesn't really matter.
Doesn't look nice though.
:(