Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-27T16:05:24.037Z
Answers.LastActivityDate: 2018-03-27T16:05:24.037Z
Answers.UserDisplayName: Luke Holder
Body: <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>
  
Tags: <plugin-craftcommerce><shipping><addresses>
Title: Limit countries shown in checkout shipping to countries assigned in shipping zones settings?
ThreadText: # 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 value="{{ key }}">{{ option }}</option>
    {% endif %}
  {% endfor %}
  
  ```
  
  
  ---
  
  