1/03/2011

How to get Current currency code or symbol in magento

To get Current currecy code in magento, write the following code.

<?php echo $current_currency_code = Mage::app()->getStore()->getCurrentCurrencyCode(); ?>

To get Current currecy symbol in magento , write the following code.

<?php echo $current_currency_symbol = Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();?>

No comments:

Post a Comment