<p>You would need to either </p>

<p>1) Delete all the countries you don't use within your site in <code>commerce &gt; settings &gt; countries</code>.</p>

<p>2) Simply hide them in twig with something like this:</p>

<pre><code>{% set allowedCountryIds = [1,3,4,6,7] %}
{% for key, country in craft.commerce.countriesList %}
  {% if key in allowedCountryIds %}
    &lt;option value="{{ key }}"&gt;{{ option }}&lt;/option&gt;
  {% endif %}
{% endfor %}
</code></pre>

CC BY-SA 3.0
2018-03-27T16:05:24.037Z
2018-03-27T16:05:24.037Z
Luke Holder
<p>Is there a way to restrict the list of countries available in the checkout shipping address select menu to the countries assigned in the shipping zones? </p>

<plugin-craftcommerce><shipping><addresses>
Limit countries shown in checkout shipping to countries assigned in shipping zones settings?
# Limit countries shown in checkout shipping to countries assigned in shipping zones settings?

(Asked by: username_0 on 2018-03-27)

Is there a way to restrict the list of countries available in the checkout shipping address select menu to the countries assigned in the shipping zones?

**Tags:** plugin-craftcommerce, shipping, addresses


---

## 1 answers

### Answer by username_1 on 2018-03-27. Score: 1 | Accepted answer

You would need to either 
1) Delete all the countries you don't use within your site in commerce > settings > countries.
2) Simply hide them in twig with something like this:
{% set allowedCountryIds = [1,3,4,6,7] %}
{% for key, country in craft.commerce.countriesList %}
  {% if key in allowedCountryIds %}
    {{ option }}
  {% endif %}
{% endfor %}


---

