Highwire offers a built-in currency converter which you can enable on your store. Some templates which use the Theme Designer may already have this feature enabled and can be configured from the Theme Settings.
Below is example a simple implementation of using the currency converter system.
All prices shown in <span id="currency_toggle"> {{ $currentcurrency }} (<a href="#">change</a>)</span> <select id="currency_selector" style="display:none;" onchange="Highwire.Currency.ChangeCurrency(this.value);"> <option {{ #if($currentcurrency == "USD") selected #end }}>USD</option> <option {{ #if($currentcurrency == "CAD") selected #end }}>CAD</option> <option {{ #if($currentcurrency == "GBP") selected #end }}>GBP</option> <option {{ #if($currentcurrency == "EUR") selected #end }}>EUR</option> </select>
This code would generally be placed in the footer of your templates or footer snippet.
To add or remove additional currencies, simply change the options that are shown in the select form element.
Currency Conversion FAQ
Can I specify my own conversion rates?
No, Highwire's conversion rates are pre-determined and are updated twice daily.
Can currency conversion be used on checkout?
No, when the customer is redirected to secure checkout the default currency for your store will be used and displayed with out notice. If you want to display an optional message on your cart page prior to checkout, you can use the following example:
{{ #if($currentcurrency != $store.currencycode) }} <div> Your cart contents are currently displayed in {{ $currentcurrency }}.
During checkout, all currencies use {{ $store.currency }}. </div> {{ #end }}
Where can I see a working demo?
You can view the benchmark theme located at http://benchmark.highwire.com/. Scroll to the footer of the page and click "change" located next to the current displayed currency.
Comments
0 comments
Article is closed for comments.