fishordog Posted May 31, 2011 Share Posted May 31, 2011 State field on the order page is empty, rest of the address is fine. When i`m trying to edit the address, the state is already selected.Please advise Link to comment Share on other sites More sharing options...
shokinro Posted May 31, 2011 Share Posted May 31, 2011 you need to populate the states for the country that contains states.Shipping tabStates sub tab Link to comment Share on other sites More sharing options...
fishordog Posted June 1, 2011 Author Share Posted June 1, 2011 but i already have them, i copy old ones when updated my store Link to comment Share on other sites More sharing options...
shokinro Posted June 1, 2011 Share Posted June 1, 2011 Sorry, I misunderstood your questions.I remembered some other members have raised the same issue. It seems a bug of 1.4x. Hope it could be fixed soon. You can go bug tracker to see if it is fixed already.You can find some more info herehttp://www.prestashop.com/forums/viewthread/107802/ Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted July 21, 2011 Share Posted July 21, 2011 I had a similiar issue and it turned out my statesManagement.js file was bad. Back it up first and try this.. if it does not work to fix your issue revert to your back up and keep trying.. Good luck.. this worked for me in version 1.3.6 on my site. I changed my themes>theme name file>js>tools>statesManagement.js file to this: and it worked perfectly: $(document).ready(function(){ $('select#id_country').change(function(){ updateState(); updateNeedIDNumber(); }); updateState(); updateNeedIDNumber(); }); function updateState() { $('select#id_state option:not(:first-child)').remove(); var states = countries[$('select#id_country').val()]; if(typeof(states) != 'undefined') { for (indexState in states) { //ie bug fix if (indexState != 'indexOf') $('select#id_state').append(''+states[indexState]+''); } $('p.id_state:hidden').slideDown('slow'); } else $('p.id_state').slideUp('fast'); } function updateNeedIDNumber() { var idCountry = parseInt($('select#id_country').val()); if ($.inArray(idCountry, countriesNeedIDNumber) >= 0) $('fieldset.dni').slideDown('slow'); else $('fieldset.dni').slideUp('fast'); } Link to comment Share on other sites More sharing options...
shokinro Posted July 21, 2011 Share Posted July 21, 2011 thanks for sharing the information.if you could point out which lines are changed, it will be great so that others may apply the same changes to different version. 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