cpelaez Posted October 22, 2008 Posted October 22, 2008 Hi all, I have set my country Chile as default in the create_account.php and address_book_details.php while habing other countries. Now I want to set the Chilean state/provinces for Chilean users as a dropdown list to choose from, in order to avoid problems with shipping. How can I do that? I will much appreciate your help. Claudio
cpelaez Posted October 22, 2008 Author Posted October 22, 2008 Hi all,I have set my country Chile as default in the create_account.php and address_book_details.php while habing other countries. Now I want to set the Chilean state/provinces for Chilean users as a dropdown list to choose from, in order to avoid problems with shipping. How can I do that? I will much appreciate your help. Claudio Please, I need urgent help on this subject. Thanks.
spooks Posted October 23, 2008 Posted October 23, 2008 I would have replied b4 if you did'nt bump, don't do that!!! If you look at Pull down UK county list http://addons.oscommerce.com/info/5889 that'll show you how to achieve what you want. Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
Wavelett Posted October 28, 2008 Posted October 28, 2008 Hi all,I have set my country Chile as default in the create_account.php and address_book_details.php while habing other countries. Now I want to set the Chilean state/provinces for Chilean users as a dropdown list to choose from, in order to avoid problems with shipping. How can I do that? I will much appreciate your help. Claudio I'm in the previous step. How do you set up default country? I want to do this for Finland? J.W
CreativePixel Posted September 15, 2010 Posted September 15, 2010 I'm in the previous step. How do you set up default country? I want to do this for Finland? J.W I am with you, I want to make one of the countries selected by Default every time the Country dropdown is generated. I traced it back to this function: function tep_get_country_list($name, $selected = '', $parameters = ''){...} which then uses the parameters provided and the OSC generic pulldown builder function to create the element. I tried just replacing the default assignment of the $selected variable with the code for my prefered country (223) as such: function tep_get_country_list($name, $selected = 223, $parameters = ''){...} but this did not have an effect. I tried defining it as a string, using single quotes ('223') but that didn't help either. How is this done?
germ Posted September 16, 2010 Posted September 16, 2010 In create_account.php it looks like this: <td class="main"><?php echo tep_get_country_list('country','223') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.