Magento 更改货币符号格式

Magento 更改货币符号格式,magento,currency-formatting,Magento,Currency Formatting,我们为两个不同的地区创建了两个网站。在ID为2的网站上,我们的货币为美元,产品价格显示为50美元。但我们想显示为50美元。有什么办法吗? 我们目前正在使用Magento 1.5,并计划很快将其升级到1.7。您必须编辑与门店区域设置相对应的xml,例如,如果您使用的是美国英语,则您要查找的文件是Magento_ROOT/lib/Zend/locale/Data/en_US.xml。在其中,您可以在结束标记之前添加: <numbers> <currencyFormats&g

我们为两个不同的地区创建了两个网站。在ID为2的网站上,我们的货币为美元,产品价格显示为50美元。但我们想显示为50美元。有什么办法吗?
我们目前正在使用Magento 1.5,并计划很快将其升级到1.7。

您必须编辑与门店区域设置相对应的xml,例如,如果您使用的是美国英语,则您要查找的文件是Magento_ROOT/lib/Zend/locale/Data/en_US.xml。在其中,您可以在结束标记之前添加:

<numbers>
    <currencyFormats>
        <currencyFormatLength>
            <currencyFormat>
                <pattern>¤#,##0.00(USD);(¤#,##0.00(USD))</pattern>
            </currencyFormat>
        </currencyFormatLength>
        <unitPattern count="one">{0} {1}</unitPattern>
        <unitPattern count="other">{0} {1}</unitPattern>
    </currencyFormats>
</numbers>

之后,您必须手动删除MAGENTO_ROOT/var/cache/

的内容。您必须编辑与门店区域设置对应的xml,例如,如果您使用的是美国英语,则您要查找的文件是MAGENTO_ROOT/lib/Zend/locale/Data/en_US.xml。在其中,您可以在结束标记之前添加:

<numbers>
    <currencyFormats>
        <currencyFormatLength>
            <currencyFormat>
                <pattern>¤#,##0.00(USD);(¤#,##0.00(USD))</pattern>
            </currencyFormat>
        </currencyFormatLength>
        <unitPattern count="one">{0} {1}</unitPattern>
        <unitPattern count="other">{0} {1}</unitPattern>
    </currencyFormats>
</numbers>

在此之后,您必须手动删除MAGENTO_ROOT/var/cache/

的内容。您使用的是什么语言环境?您使用的是什么语言环境?是否有程序更改的方法?抱歉,我的问题不清楚,您知道程序更改的方法吗?如果有程序更改的方法?抱歉,我的问题不清楚,你知道一种程序化的方法吗?