Skip to content

Instantly share code, notes, and snippets.

@kartick14
Created November 18, 2020 07:10
Show Gist options
  • Save kartick14/5e543a0899b805966b98d8d623990b27 to your computer and use it in GitHub Desktop.
Save kartick14/5e543a0899b805966b98d8d623990b27 to your computer and use it in GitHub Desktop.
add currency switcher in shopify theme
{% form 'currency' %}
<select name="currency">
{% for currency in shop.enabled_currencies %}
{% if currency == cart.currency %}
<option selected="true">{{currency.iso_code}} {{currency.symbol}}</option>
{% else %}
<option>{{currency.iso_code}}</option>
{% endif %}
{% endfor %}
</select>
{% endform %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment