Limit Options on the Magento Countries Dropdown

Overview

This article details how to limit countries from the “Countries” dropdown in Magento.

Issue

At the cart estimator there is a countries dropdown field, where customers select which country that they would like to see shipping rates for. However, as this store currently ships to only the USA and Canada only those countries should be visible in the field.

screenshot 000335

Solution

Magento has built-in functionality to limit the countries that can be shipped to.

This is located in System -> Configuration -> General -> "Countries Options"

Selecting only “United States” and “Canada” from the “Allow Countries” multi-select field will limit the quantity of countries from all countries drop-down fields on the frontend. It is also possible here to denote which countries must have a postcode specified.

screenshot 000336

After saving the configuration only the selected countries will be presented in the drop-down field on the frontend:

screenshot 000337

Note that this will also limit the countries that can be selected in the customers’ saved addresses:

screenshot 000338

 

This also applies to the checkout:

screenshot 000339

Was this doc helpful?