Friday, June 26, 2015

Magento Change Currency Symbol Position for Spanish users

Magento renders Currency Symbol (eg: $) after the price value in Spanish Store.

Eg: Spanish store renders 15 $, where as English store renders $ 15.

To change the position in Spanish store, Go to lib/Zend/Locale/Data
Edit es.xml

------------------------------------------------------------------------------------------------------------------------
Change the following From

<currencyFormats numberSystem="latn">
<currencyFormatLength>
              <currencyFormat type="standard">
                     <pattern>#,##0.00 ¤</pattern>
              </currencyFormat>
              <currencyFormat type="accounting">
                     <pattern>#,##0.00 ¤</pattern>
              </currencyFormat>
       </currencyFormatLength>
       <unitPattern count="one">{0} {1}</unitPattern>
       <unitPattern count="other">{0} {1}</unitPattern>
</currencyFormats>
To
<currencyFormats numberSystem="latn">
       <currencyFormatLength>
       <currencyFormat type="standard">
              <pattern>¤#,##0.00</pattern>
       </currencyFormat>
       <currencyFormat type="accounting">
              <pattern>¤#,##0.00</pattern>
       </currencyFormat>
       </currencyFormatLength>
       <unitPattern count="one">{0} {1}</unitPattern>
       <unitPattern count="other">{0} {1}</unitPattern>
</currencyFormats>
--------------------------------------------------------------------------------------------------------------------------
Clear Magento Cache


No comments:

Post a Comment