rss
twitter
    Find out what I'm doing, Follow Me :)

Wednesday, January 27, 2010

Pin It

Widgets

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/

4 comments:

  1. Thanks for posting this, after reading this post I got an idea how to get currency..mine was :

    Mage::app()->getConfig()->getNode('default/'.Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE);

    That for me was enough

    ReplyDelete
  2. Thanks for this helpful code to get currency symbol.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete