Allows you to output an indicative price in a given currency based on live data from exchangeratesapi.io. Perfect for e-commerce sites where you want to inform your customers of what products may cost in their local currencies. Tracks fluctuations in currency market rates to ensure you’re always giving your customers the most accurate representation of their indicative pricing.
Hippo Currency Converter allows you to input an amount in any supported base currency and then get that converted to a different currency using live currency API from exchangeratesapi.io.
This add-on does not allow you to check out in alternative currencies, but will allow you to present to your site customers what an order or product may cost in their own currency based on live conversion rates.
Copy the ‘hippo_currency_converter’ folder into ./system/user/addons/
folder.
{exp:hippo_currency_converter:convert}
A single tag which converts the input value to the supplied currency.
Options | Description |
---|---|
amount="" |
The value you want to convert (as decimal, no currency symbol) |
from="" |
Base source currency |
to="" |
Target currency |
cache="" |
Cache target currency rate (y/n) |
cache_duration="" |
Duration of cache validity in seconds (default 3600 seconds == 1 Hour) |
decimal="" |
Decimal points (default 2) |
decimal_point="" |
Override default decimal point (default “.”) |
thousands="" |
Override default thousands separator (default “,”) |
As of writing this documentation (May 4th, 2019), the following currencies are supported. for a more up to date list, we recommend taking a look at here.
Currency Code | Currency |
---|---|
USD | US Dollar |
JPY | Japaenese Yen |
BGN | Bulgarian Lev |
CZK | Czech Koruna |
DKK | Danish Krone |
GBP | Pound Sterling |
HUF | Hungarian Forint |
PLN | Polish Zloty |
RON | Romanian Leu |
SEK | Swedish Krona |
CHF | Swiss Franc |
ISK | Icelandic Krona |
NOK | Norwegian Krone |
HRK | Croatian Kuna |
RUB | Russian Rouble |
TRY | Turkish Lira |
AUD | Australian Dollar |
BRL | Brazilian Dollar |
CAD | Canadian Dollar |
CNY | Chinese Yuan Renminbi |
HKD | Hong Kong Dollar |
IDR | Indonesian Rupiah |
ILS | Israeli Shekel |
INR | Indian Rupee |
KRW | South Korean Won |
MXN | Mexican Peso |
MYR | Malaysian Ringgit |
NZD | New Zealand Dollar |
PHP | Philippine Peso |
SGD | Singapore Dollar |
THB | Thai Baht |
ZAR | South African Rand |
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.