Created
November 18, 2020 07:10
-
-
Save kartick14/5e543a0899b805966b98d8d623990b27 to your computer and use it in GitHub Desktop.
add currency switcher in shopify theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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