shotputty Posted December 15, 2008 Share Posted December 15, 2008 Hello everybody. Today I'm opening a topic on my "Limit Country Dropdown per Language" contribution. You can find it here: http://addons.oscommerce.com/info/6357 Original description: With this Mod you can LIMIT the countries drop down lists on your site according to the language people are viewing your site. IE when a customer set the language to german, you can limit the countries in your dropdown when the customer creates an account for example to; "Germany" and "Austria". That way they don't have to go through an entire list of 250 countries. Note(!): When you need countries to be available under more than one language, just create a copy of that country. Say you need "Belgium" to be available when viewing in Dutch language and English too. Just create "België" and asign it to your Dutch language and then create "Belgium" and assign it to your English language. At this moment, after several upgrades you can. 1) Show only the country text if a language only has one country assigned to it. This means there is no need for a customer to select!! 2) If you asign 2 or 3 countries to a language the dropdown is automatically replaced by 2 or 3 selection checkboxes. ( These checkboxes will have their correct country preselected when you enter your addressbook) 3) When you assign 4 or more counties to a language it will have the standard dropdown menu with only those countries. I'm open for suggestions or tips on how to make the code faster, smaller & better ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.