How to get currency symbol?

piaoling  2011-07-22 10:52:18

How to get currency symbol?

Code is useful for get currency symbol
    
     Mage::app()->getLocale()->currency(Mage::app()->getStore()->


     getCurrentCurrencyCode())->getSymbol()

or if you want to pass a certain currency code simply specify it:



     Mage::app()->getLocale()->currency('EUR')->getSymbol()
 
 

Source  : http://www.activecodewar.com/

类别 :  magento(258)  |  浏览(3444)  |  评论(0)
发表评论(评论将通过邮件发给作者):

Email: