【问题标题】:price display of configurable products change to 10 when select color in magento 1.9.1在 magento 1.9.1 中选择颜色时,可配置产品的价格显示更改为 10
【发布时间】:2016-04-27 11:30:00
【问题描述】:

我正在为我的网站商店使用 magento 1.9.1。 我在管理面板中创建了许多具有多种颜色的可配置产品。

现在在前端,当我选择可配置产品的颜色时(例如:价格 1000),价格变为(10)而不是保持在(1000)。 我不使用扩展名,除了 ET 扩展名。 我也找到了这些链接,但找不到解决方案:

http://k2xl.com/wordpress/custom-options-broken-in-magento-1-7-heres-the-fix/

https://magento.stackexchange.com/questions/110307/magento-2-configurable-product-showing-0-price-if-we-change-locale-to-persian

https://magento.stackexchange.com/questions/102577/product-page-pricing-is-0-after-upgrading-to-magento-1-9-2-3-from-1-9-1-1

http://support.etwebsolutions.com/issues/1558

另外,在这个文件中:app/design/[your package]/[yourtheme]/template/catalog/product/view/options.phtml 我没有找到这行代码: price += parseFloat(config[optionId][element.getValue()]);

如果有人可以帮助我,我将不胜感激。

【问题讨论】:

    标签: magento configurable-product


    【解决方案1】:

    我不敢相信 .xml 文件会导致这个问题! 在 /lib/Zend/Locale/Data/[yourLanguage].xml 文件和这段代码中:

    <currencyFormats numberSystem="latn">
            <currencyFormatLength>
                <currencyFormat type="standard">
                    <pattern>‎#,##0.00   ¤</pattern>
                </currencyFormat>
                <currencyFormat type="accounting">
                    <pattern>‎#,##0.00   ¤;‎(#,##0.00   ¤)</pattern>
                </currencyFormat>
            </currencyFormatLength>
            <unitPattern count="one">{0} {1}</unitPattern>
            <unitPattern count="other">{0} {1}</unitPattern>
        </currencyFormats>
    

    幸运!当我想更改货币符号和价格的对齐方式时,我将“¤”的位置从左到右更改。 清除缓存后,价格显示问题解决了!!!!!!!!!!!!!!! 希望这对其他人有帮助...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-20
      • 2013-11-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-20
      • 2013-01-15
      • 2019-10-12
      相关资源
      最近更新 更多