Tuesday 28 January 2014

Displaying Currency Symbol after Price in Magento


 Change Price Symbol after Price

There is a one Trick for changing position of Currency Symbol from LEFT to RIGHT in Magento.

For that you have to do Minor changes in your Language File. Following is the Directory Structure of File.

=> root/lib/Zend/Locale/Data/en.xml (For English Language)

=> around line 2611 you can see following code.
<currencyFormat>
<pattern>¤#,##0.00;(¤#,##0.00)</pattern>
</currencyFormat>

=> Now Change above code with Following code.

  <currencyFormat>
<pattern>#,##0.00 ¤;(#,##0.00 ¤)</pattern>
</currencyFormat>

Note: The little square ( ¤ ) sets the currency symbol position after Price in magento.

=> Now clear Cache of your store and You can see changes.

No comments:

Post a Comment