php - magento 中的货币符号

标签 php magento magento-1.7

我用两种不同的语言创建了两个 Magento 商店 View :

  1. 英语
  2. 荷兰语

英语(欧元)货币符号以正确的方式出现,如 20.00 欧元,但对于荷兰语 View ,它显示为 20,00 欧元。我想为两个 View 设置默认符号 €,因为欧元是相同的。我怎样才能在 Magento 中实现它。

最佳答案

您可以更改区域设置

这里是英文的例子。为此,您必须对语言文件进行细微更改。以下是文件的目录结构。

=> 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>

您可以将其设置为荷兰语

关于php - magento 中的货币符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16789871/

相关文章:

php - 成员(member)注册打不开

php - 如何在代理后面使用 PEAR?

xcode - 删除扩展名后出现Magento错误

Magento - 从分层导航中检索当前系列中的最高产品价格

php - 为 get_browser() 设置 $_SERVER ['HTTP_USER_AGENT' ]

php - 获取产品变体属性值术语 ID 和名称

java - 创建 Magento 站点的 native Android 应用程序

mysql - 在magento模块中创建表

php - 在 Magento 中为 links.phtml 列表的 UL 添加一个类

php - 在 magento 中以编程方式创建可配置产品