Benjjj6 Posted March 1, 2009 Share Posted March 1, 2009 Hi On the create_account.php page the country section defaults to United Kingdom as the majority of my customers are from the UK. However, if a customer changes this to another country and then clicks continue, if any aspect of the form is incorrectly completed (ie both passwords do not match) when the page refreshes asking them for valid details the country selection reverts back to United Kingdom. Is there a way to stop it changing back to the default UK selection and maintaining what they had chosen before the page was refreshed? Here's a quick section of create_account.php which shows the default country selection: <tr> <td class="main"><?php echo ENTRY_POST_CODE; ?></td> <td class="main"><?php echo tep_draw_input_field('postcode') . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?></td> <td class="main"><?php echo tep_get_country_list('country', '222') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> </tr> Thanks, Ben Link to comment Share on other sites More sharing options...
Benjjj6 Posted March 15, 2009 Author Share Posted March 15, 2009 Has anyone found a solution to this? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.