How do I change the currency symbol in Magento 1.5.1.0?

☆樱花仙子☆ 提交于 2019-12-04 19:24:13

Try to grep in your version root and you'll see that it is locale based so you just might need to change t in multiple files.

grep 'type="EUR"' . -rsn

don't forget to clear cache afterwards before observing the changes in front-end

rm -rf var/cache/* 
  1. You can use free extension Currency Manager

  2. Or you can write your own simple module and override function format() in Mage_Directory_Model_Currency model.

    public function formatTxt($price, $options=array())
    {
        $options['display'] = Zend_Currency::USE_SHORTNAME;
        return parent::formatTxt($price, $options);
    }
    

P.S. You can loose your changes in /lib/Zend/Locale/Data/*.xml files after Magento upgrade.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!