How to convert currencies in Magento

If you need to convert currencies in Magento you can use Magento's core function.

$converted = Mage::helper('directory')->currencyConvert('100', 'EUR', 'USD');Code language: PHP (php)

The code above will convert 100€ to USD.

You can also use the get current currency function to retrieve the currency the user is using.

Leave a Reply

Your email address will not be published. Required fields are marked *