Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Create Account


Guest

Recommended Posts

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

 

Anyone? :thumbsup:

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 5 months later...
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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...