Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Create Account


Guest

Recommended Posts

Posted

In Create Account I want to set the drop down Country box to default to United Kingdom

 

Anyone? :thumbsup:

Posted

You need to alter this line of code in your create account file

 

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

 

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>

 

That should do it for you.

REMEMBER BACKUP, BACKUP AND BACKUP

  • 5 months later...
Posted
You need to alter this line of code in your create account file

 

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

 

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>

 

That should do it for you.

 

 

How simple was that,

I could make newsletter selected as default but couldnt work that out..

 

thanks 14steve14

Archived

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

×
×
  • Create New...