filmlagret Posted December 23, 2004 Share Posted December 23, 2004 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). Link to comment Share on other sites More sharing options...
peterr Posted December 24, 2004 Share Posted December 24, 2004 Hi, 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). <{POST_SNAPBACK}> 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 Peter Link to comment Share on other sites More sharing options...
filmlagret Posted December 24, 2004 Author Share Posted December 24, 2004 Thanx for the answer. I have been searching whole day and found this fix for it in thread http://www.oscommerce.com/forums/index.php?act...=50#entry427791 It allso removes the pulldown menu. /Dennis Link to comment Share on other sites More sharing options...
peterr Posted December 25, 2004 Share Posted December 25, 2004 Hi, Yes, that's one way to do it, if you don't mind the general public knowing what the country value is. Peter Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.