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).
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)
|
No comments:
Post a Comment