Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

<option SELECTED>USA</option>


Recommended Posts

On the oscommerce create_account.php there is a drop down list of about every country imaginable. I was wondering what the best way is to make "United States" the already selected default in this html drop down list. Does anybody know how to do this? Thanks in advance.




html would render:

<option SELECTED>United States</option>

Link to comment
Share on other sites

Yes, you have to go to:



and find


function tep_get_country_list($name, $selected = '', $parameters = '') {


and change it to


function tep_get_country_list($name, $selected = '223', $parameters = '') {


223 is the code for the USA

but you can find other ones as well

Link to comment
Share on other sites


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

  • Create New...