捆绑产品显示价格为0

时间:2009-10-13 19:59:50

标签: magento installation

我一直在阅读很多关于这个问题但我没有得到任何暗示出来的方法。 我正在使用版本 1.3.2.4 ,在创建捆绑产品之后,Magento将其显示为零,但将“当前合成”作为正确的值。< / p>

alt text http://www.balexandre.com/temp/2009-10-13_2158.png

我已经尝试刷新缓存,重建目录索引,但没有任何作用...... 然后我深入导航到

下的 price.phtml 模板
  

模板/束/目录/产品/视图/

并尝试调用正确显示值的相同方法,也就是返回零。

我注意到Magento有这个javascript方法

bundle.reloadPrice();

之后,如果被调用,我确实得到了正确的价格...我可以尝试,使用jQuery(或默认情况下Magento使用的Prototype)更改值,但我试图这样做...

还有其他想法吗?

3 个答案:

答案 0 :(得分:2)

对于产品页面我将其用作解决方法:

执行这个jQuery代码:

// hide "Price as configured" text
jQuery(".price-as-configured span:first").hide(); 

// hide the 0,00 price
jQuery(".price-box-bundle").hide(); 

// hide the 2nd price (not in image)
jQuery(".product-options-bottom .price-box").hide(); 

将通过

alt text http://www.balexandre.com/temp/2009-10-13_2338.png

进入这个

alt text http://www.balexandre.com/temp/2009-10-13_2339.png


在产品网格列表中,我使用此代码隐藏价格/按钮并添加到愿望清单链接

// GRID
jQuery("#products-grid-table .price-box").hide();
jQuery("#products-grid-table .button").hide();
jQuery("#products-grid-table .add-to-links").hide();

// LIST 
jQuery("#products-list .price-box").hide();
jQuery("#products-list .button").hide();
jQuery("#products-list .add-to-links").hide();

它将通过

alt text http://www.balexandre.com/temp/2009-10-14_0005.png

进入这个

alt text http://www.balexandre.com/temp/2009-10-14_0006.png

我希望它有助于某人...

答案 1 :(得分:2)

有同样的问题。 价格显示为0.00。

您必须修改价格属性 - &gt;在产品列表中显示:是

答案 2 :(得分:0)

您可以使用我的magento模块:使用magento 1.7测试https://github.com/head82/KH_ExtendedBundlePrice