Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

<option SELECTED>USA</option>


jahu

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.

 

 

ex:

html would render:

<option SELECTED>United States</option>

Link to comment
Share on other sites

Yes, you have to go to:

catalog/includes/functions/html_output.php

 

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

Archived

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

×
×
  • Create New...