WPCS - WordPress Currency Switcher Professional


Converts any value which is in the shop default currency into amount of the current selected currency.

For example, we get from any place of the site price/amount (70 for example) which keeps in meta field for example as decimal value in the default currency. But we want to recount this value for our purposes according to the current selected currency. Use next code:

global $WPCS;

So, if the amount is 70EUR (EUR is basic in this example) we will get amount in the current currency. For example basic currency is EUR, current selected currency is USD, so we will get $res about 77,15 USD.