Wednesday 28 September 2011

How to change Currency symbol in magento



Hello Everyone,

                 Today I’m going to tell you how to change Currency symbol in magento.In simple words, This tutorial will tell to change the currency symbol of dollar (from $ to Rs). By default, the currency symbol for dollar is $.But if you want to insert rupee symbol  instead of "Rs" follow this tutorial.

For this, you need to edit lib/Zend/Locale/Data/en.xml
Well, the xml file to edit depends upon your locale settings. My locale is set to English (United States). So, I will have to change en.xml file.

You can change your locale setting from
Admin Panel –> System –> Configuration –> GENERAL –> General –> Locale options –> Locale

If your locale is Japanese (Japan), you need to change lib/Zend/Locale/Data/ja.xml
If your locale is Hindi (India), you need to change lib/Zend/Locale/Data/ne.xml
It’s similar for other locale settings. I have locale setting as English, so I will be editing en.xml file.
- Open lib/Zend/Locale/Data/en.xml
- Find the following :-


<currency type="USD">
    <displayName>US Dollar</displayName>
    <displayName count="one">US dollar</displayName>
    <displayName count="other">US dollars</displayName>
    <symbol>$</symbol>
</currency>

- Change

<symbol>$</symbol>

-to

<symbol>Rs</symbol>

But wait, you are still not done. The most important thing is still left.
- Clear the Cache.
- Go to System –> Cache Management
- Refreh Cache.
- If you have not enabled the Cache OR if it didn’t work even after refreshing the cache, then
- delete the cache folder present inside var (var/cache)


You can also refer to the video showing how it actually works



But sometimes you want to insert an image instead of text
for e.g. if you want insert rupee symbol  instead of "Rs" follow this tutorial.

For any magento customization contact :
Company : Parsys Media
Mumbai Office :
Mobile No : +91-8123481528(Ashish Khadpe)


8 comments:

  1. Hi Guys
    i have applied your stteps and iam successfull, thx to you guys.

    But iam facing a slight issue, when the prices are zero the symbol rule dosent apply it still shows Rs instead of symbol ( only for zero price)
    and in category price range it shows as Rs 0- Rs Symbol 1000.

    how could i change the price range Rs 0 into symbol 0

    please check my link www.newspapersubscription.co.cc for better understanding

    your inputs will help me solve this issue

    please mail me ur answer at ghanshyam.saini@gmail.com

    ReplyDelete
  2. It is working perfect at our website
    http://www.babanbaby.com/first-needs/clothing
    You might be entering Rs.o instead of Rs.0

    ReplyDelete
  3. Excellent this works...............

    ReplyDelete
  4. Now this is Informative writing, Keep up the good work.
    Magento Integration.

    ReplyDelete
  5. Hello,

    Myself Nidhi. My domain is glocalshopper.com. We want to remove Addthis Plugin from our website. How can I remove this from our website. Please guide us in this regard.

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

    ReplyDelete