Totally Zenned
- Join Date:
- Jan 2015
- Posts:
- 815
- Plugin Contributions:
- 0
One-Page Checkout [Support Thread]
pilou2:
chadlly2003:
pilou2:
Yes, this is a common address format in Europe where you don't use the state as the information is already in the postal code.
If you want it anyway, you can use format 12.
I made the changes that lat9 suggested but for some reason I am getting the same results. Am I misunderstanding something here?
Also for example if someone picks the netherlands then the State/Province is required. But your saying its in the postal code. Can you explain. (not sure what format 12 is)
In Admin->Locations->Countries, edit Netherland and change address format from 5 to 12. It should add the state field in the address. These format are defined in the database table address_format. There are predefined setting that you can change or add a new one and set any country to use it.
After this change, if you still don't see the state in the address, there might be an issue with OPC.
About the postal code, there are some numbers or letters representing the state. For exemple in France, the first 2 numbers in the postal code design the state like 75 for Paris (Ile de France), 69 for Rhone. Writing both just double the information which is why the state is not required in a standard address.
Now that I have a better understanding of how Zen Cart's address formats work, I have a much clearer picture of what was happening.
For example, when a country uses Address Format 5, the customer can enter a State/Province, but that information will not appear in the formatted address because the format doesn't include that field.
However, if the country uses Address Format 12, the State/Province information will be displayed.
So the issue wasn't necessarily that Zen Cart or OPC wasn't saving the information correctly. It was simply how the selected address format was configured to display it.
What I did so there are no issues
Set Minimum Length of State to 0: This allows customers in countries that do not require a State/Province to leave the field blank.
State/Province Dropdown: When a customer selects the United States or another country with predefined states or provinces in Zen Cart, a dropdown menu automatically appears. OPC then requires the customer to select a valid state or province before proceeding with checkout.
**note I have not encountered an issues after the new update version 2.7.1