Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

default country selected in Create Acc. page


sammycom

Recommended Posts

Posted

The country selector in Create Account Page doesnt has default selected country, I want to set it United States as default selecte.

 

 

 

Here's code for country section of /create_account.php

 

<tr>

<td class="main"><?php echo ENTRY_COUNTRY; ?></td>

<td class="main"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>

</tr>

 

 

thanks

Posted

I have altered this part of the create account page to show UK as the default country.

The code has been altered to

<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>

 

I think you need to alter the 222 to 223 for USA, but i might be wrong.

REMEMBER BACKUP, BACKUP AND BACKUP

Archived

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

×
×
  • Create New...