mama2many Posted December 8, 2010 Share Posted December 8, 2010 I recently upgraded from 1.3.2.3 to 1.3.3 and had the problem of not being able to create customer accounts. I fixed that with sam's fix in this thread http://www.prestashop.com/forums/viewthread/58935/upgrading_prestashop/solved_an_error_occurred_while_creating_your_accountBut now when creating a customer account, the dropdown box for State just shows [object Object] How can I fix this? It worked fine before I did the previous mentioned fix.Update - I uploaded the authentication.tpl from 1.3.2.3 and it works now. Link to comment Share on other sites More sharing options...
designermary Posted April 1, 2011 Share Posted April 1, 2011 I recently upgraded from 1.3.2.3 to 1.3.3 and had the problem of not being able to create customer accounts. I fixed that with sam's fix in this thread http://www.prestashop.com/forums/viewthread/58935/upgrading_prestashop/solved_an_error_occurred_while_creating_your_accountBut now when creating a customer account, the dropdown box for State just shows [object Object] How can I fix this? It worked fine before I did the previous mentioned fix.Update - I uploaded the authentication.tpl from 1.3.2.3 and it works now. I had the same problem, using a customised template. It comes from the js/tools/statesManagement.js file. To fix, opened themes/prestashop/js/tools/statesManagement.js and compared it to the same file in my customised tempate folder. I noticed they did not match and copied the code from the prestashop statesManagement.js to my template's statesManagement.js. Solved it. Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted July 21, 2011 Share Posted July 21, 2011 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...
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