Contains functionality for displaying prices in your store in different currencies, getting exchange rates, and converting between currencies.
To use the currencies functionality you must upgrade your site to a Premium Plan.
Currencies objects are used to convert from one currency to another, get exchange rates, and manage the currencies you want to work with on your site. The objects can be used with the currency conversion dropdown element on your Wix Stores page to display prices in a range of different currencies. Selecting a different currency from the dropdown on a Wix Stores page, automatically updates all of the prices displayed on your store's page to the selected currency. While the currency converter dropdown works with your Wix Stores pages, the Currencies objects can be used on any page. Currency rates are provided by XE and are updated on a daily basis. Rates are provided together with the timestamp when they were set.
The currency API contains the following objects:
Currencies
getAllCurrencies()
to get a list of all the convertible currencies.CurrencyConverter
convertAmounts()
to convert amounts between two currencies.getConversionRate()
to get today’s conversion rate for a pair of currencies.SiteSettings
setCurrencies()
to set the currencies to appear in your currency conversion dropdown.getCurrencies()
to see the list of the currencies that you set.Notes: