Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Account creation removing country pulldown menu


Recommended Posts



How can i remove the country pulldown menu in account creation and cange it to only one country default (a text that cant be changed).


Modify line 46 of /catalog/create_account.php as follows, this:


$country = tep_db_prepare_input($HTTP_POST_VARS['country']);


TO ........


//$country = tep_db_prepare_input($HTTP_POST_VARS['country']);
$country = 223;  //default to USA


The country is an ID in osCommerce, and retrieves the 'text' from the database. The table address_book has this defined, for each customer:


entry_country_id int DEFAULT '0' NOT NULL,


so, to cover yourself, change the default to 223 (I'm using USA as an example).


That _should_ do it, but I haven't tested it of course. :D



Link to comment
Share on other sites


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

  • Create New...