如何在Magento 1.5.1.0中更改货币符号? [英] How do I change the currency symbol in Magento 1.5.1.0?

查看:82
本文介绍了如何在Magento 1.5.1.0中更改货币符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更改Magento版本的价格格式. 1.5.1.0来自 €8.49 至8.49欧元

I'm trying to change the price format in Magento ver. 1.5.1.0 from €8.49 to EUR 8.49

我一直在浏览很多帖子和论坛,但没有成功. 我试图按照说明进行操作,但到目前为止没有成功. 缓存已停用.

I have been looking through lots of posts and forums but it didn't work out. I tried to follow the instructions but it didn't work out so far. Cache is deactivated.

/lib/Zend/Locale/Data/en.xml
<currency type="EUR">
 <displayName>Euro</displayName>
 <displayName count="one">euro</displayName>
 <displayName count="other">euros</displayName>
 //added <symbol>EUR</symbol> here
</currency>

/lib/Zend/Locale/Data/root.xml
<currency type="EUR">
  <symbol>€</symbol> => changed to <symbol>EUR</symbol> didn't work
</currency>

不,我不想更改核心/Zend文件或使用str_replace.

And no, i don't want to change the core /Zend files or use str_replace.

感谢您的帮助!

推荐答案

尝试在您的版本根目录中进行grep操作,您会发现它是基于语言环境的,因此您可能只需要在多个文件中进行更改即可.

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/* 

这篇关于如何在Magento 1.5.1.0中更改货币符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆