2016-04-27 64 views
0

我正在爲我的網站商店使用magento 1.9.1。 我有許多可配置的產品,並且在管理面板中創建了幾種顏色。當我選擇可配置產品的顏色(例如:價格1000)時,價格變爲(10)而不是保留在(1000)中。 我不使用擴展名,但ET擴展名除外。 我也發現了這些鏈接,但無法找到解決辦法:在magento中選擇顏色時,可配置產品的價格顯示更改爲10 1.9.1

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

也,在這個文件中:應用程序/設計/ [your package]/[yourtheme] /template/catalog/product/view/options.phtml我沒有找到這行代碼:price + = parseFloat(config [optionId] [element.getValue()]);

如果有人能幫助我,我將不勝感激。

回答

0

我不能相信.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> 

幸運!當我想改變貨幣符號和價格的對齊方式時,我從左向右改變'¤'的位置。清除緩存後 ,價格顯示問題解決!!!!!!!!!!!!!! 希望這對其他人有所幫助...

相關問題