Saturday, March 3, 2012

Magento : Get Current Currency Symbol

 Magento : Get Current 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()



6 comments:

  1. Hi i am new to magento and website coding. I have only one question, where exactly do you enter the code

    Mage::app()->getLocale()->currency(Mage::app()->getStore()->

    getCurrentCurrencyCode())->getSymbol()

    ReplyDelete
    Replies
    1. Hi ,
      You can enter this on any file and you get the value.

      Thanks

      Delete
    2. Hi ,
      You can enter this on any file and you get the value.

      Thanks

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
  3. hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here.
    Kindly keep blogging. If anyone wants to become a Front end developer learn from javascript and jquery training in chennai .
    or learn thru Javascript Training in Chennai.
    Nowadays JavaScript has tons of job opportunities on various vertical industry. javascript and jquery training in chennai

    ReplyDelete