Can I use multiple currencies or multiple languages in my store?

From Spiffy Stores Knowledge Base

Jump to: navigation, search

Some themes allow you to provide your customers with the ability to view product prices in their own currency. You can also add this to your own theme by copying the code provided below into your theme. In all cases, your customers will still be charged in the currency of your store.

The currency converter code provided below displays currencies for all of the countries you enable in the Preferences -> Regions & taxes section of your store's Toolbox. It is also un-styled, so you will need to work out where you want the currency converter to display in your Theme.liquid file, paste the code in, and then make changes to your store's CSS to display the currency converter nicely.


<!-- Begin currency converter code -->

{% if shop.currency_codes.size > 1 %}
  <select id="currency" name="currency" onchange="updateCurrency()">
    {% for c in shop.currency_codes %}
      <option value="{{ c }}" {% if currency == c %}selected="selected"{% endif %}>{{ c }}</option>
    {% endfor %}
  </select>
  <script type="text/javascript">
    function updateCurrency(){
      var myselect = document.getElementById("currency");
          var date = new Date();
      date.setTime(date.getTime()+(90*24*60*60*1000));
          var currency = (myselect.options[myselect.selectedIndex].value);
      var expires = "; expires="+date.toGMTString();
          document.cookie = "spiffy_currency="+currency+expires+"; path=/";
          location.reload();
    }
  </script>
{% endif %}

<!-- End currency converter code -->


Multiple language support

Multiple languages are currently not supported by Spiffy Stores. You can only use one language per store.

If you require several stores to provide multiple languages for different regions, please contact us for information on setting up additional ecommerce store-fronts to host your desired language or currency.