jithu Posted June 30, 2014 Share Posted June 30, 2014 (edited) Hello, PS 1.6.0.6 is throwing me these errors while creating a new address: This country requires you to chose a State. The Zip/Postal code you've entered is invalid. It must follow this format: 00000 The problem is that those fields are not visible in the form. Digging more into the code, I found out that the javascript variable "countries" is an empty array in statesManagement.js. I had to move some countries to new zones. Anyway all countries and states are active. Thank you for any hints. Edited July 2, 2014 by jithu (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted June 30, 2014 Share Posted June 30, 2014 are you using the default bootstrap theme, or a custom theme? Link to comment Share on other sites More sharing options...
jithu Posted June 30, 2014 Author Share Posted June 30, 2014 I am on a custom theme called "London" from themeforest. Link to comment Share on other sites More sharing options...
bellini13 Posted June 30, 2014 Share Posted June 30, 2014 then i would highly suggest that you reach out to themeforest and the theme author for their support Link to comment Share on other sites More sharing options...
jithu Posted June 30, 2014 Author Share Posted June 30, 2014 (edited) I don't think it's related to the theme, because there are no issues with a fresh install of the theme. Just to be sure I will contact the theme author too. Edited June 30, 2014 by jithu (see edit history) Link to comment Share on other sites More sharing options...
jithu Posted July 2, 2014 Author Share Posted July 2, 2014 Issue solved. My problem was with the "countries" smarty var. My custom module was also creating a smarty variable called "countries" and it was overwriting the original PS smarty variable. To solve this issue, I've renamed my variable and now everything is working as expected. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now