vat Posted December 18, 2003 Share Posted December 18, 2003 Hi all, How can I define a default country from the country putdown list in the registration page? Let's say that instead of "please select" I'll have "Canada". Can it be done? Link to comment Share on other sites More sharing options...
♥kymation Posted December 19, 2003 Share Posted December 19, 2003 In create_account.php find this line: <td class="main"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> and replace it with this: <td class="main"><?php echo tep_get_country_list('country', '38') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> This will fix the New Account form. You will need to do this in every other file that uses the Country dropdown as well. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Guest Posted December 19, 2003 Share Posted December 19, 2003 Thanks man, I was wondering the same thing. Now you have solved my problem as well. :D Link to comment Share on other sites More sharing options...
paulm2003 Posted December 20, 2003 Share Posted December 20, 2003 More info about setting default country pulldown at: http://wiki.oscommerce.com/docsCatFormCountryDrop Link to comment Share on other sites More sharing options...
phelpsj Posted February 27, 2004 Share Posted February 27, 2004 This is a great fix!! Link to comment Share on other sites More sharing options...
symphonygirl Posted March 13, 2004 Share Posted March 13, 2004 This is a fabulous fix, but what I still don't quite understand is where the country list is coming from. What if a new country comes along and I need to add it, or a country changes its name? Is the source of the country list top secret or what? Link to comment Share on other sites More sharing options...
♥kymation Posted March 13, 2004 Share Posted March 13, 2004 It's hardly a secret: the table countries in the database. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.