Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

SHOPIFY COUNTRY SELECTOR

{% form 'localization' %}
2	
  	<select name="country_code">
3	
    	{% for country in localization.available_countries %}
4	
      	<option value="{{ country.currency.iso_code }}"
5	
        	{%- if country == localization.country %} selected="selected"{% endif %}
6	
      	>
7	
        	{{ country.name }} ({{ country.currency.iso_code }}) - {{ country.currency.symbol }}
8	
      	</option>
9	
    	{% endfor %}
10	
  	</select>
11	
12	
  	<input type="submit" value="Update">
13	{% endform %}
Source by shopify.dev #
 
PREVIOUS NEXT
Tagged: #SHOPIFY #COUNTRY #SELECTOR
ADD COMMENT
Topic
Name
1+1 =