Contains functionality for displaying prices in your store in different currencies, getting exchange rates, and converting between currencies.
Note: There is a new version of the Currencies API. If you're already using this module in your code, it will continue to work.
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:
getAllCurrencies()to get a list of all the convertible currencies.
convertAmounts()to convert amounts between two currencies.
getConversionRate()to get today’s conversion rate for a pair of currencies.
Was this helpful?