Currency Chooser

Currency Chooser is available when multi-currency setting is ON.


Combining with shop supported currencies array, you may set up the currency chooser elsewhere in your shop with customized style and HTML.

Required classes

sl-currency-chooser, sl-currency-chooser-currency

Remarks

  • sl-currency-chooser-currency must be nested under sl-currency-chooser
  • sl-currency-chooser-currency must come along with href attribute with anchor and given currency (like #TWD)
<ul class="sl-currency-chooser">
  {% for currency in shop.supported_currencies %}
    <li class="sl-currency-chooser-currency" href="#{{ currency.iso_code }}">{{ currency.name }}</li>
  {% endfor %}
</ul>