How to get the current currency in Magento

If you need to retrieve the current currency used in your store, use the following function:

$current_currency = Mage::app()->getStore()->getCurrentCurrencyCode(); Code language: PHP (php)

This will return something like 'EUR', 'USD', etc.

It's very useful if you want to play with currency conversions in Magento.

Leave a Reply

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