Guest Posted May 26, 2006 Posted May 26, 2006 In Create Account I want to set the drop down Country box to default to United Kingdom Anyone? :thumbsup:
♥14steve14 Posted May 26, 2006 Posted May 26, 2006 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
phantompressents Posted November 7, 2006 Posted November 7, 2006 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.