Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Default Country selection in create_account


Benjjj6

Recommended Posts

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

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...