Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Limit Country Dropdown per Language


Recommended Posts

Hello everybody.


Today I'm opening a topic on my "Limit Country Dropdown per Language" contribution. You can find it here:




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 ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...