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');

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.

About Ricard Torres

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

@ricard_dev @ricard_dev

📝 Blog 🎙 Podcast

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*