Magento 相关产品随购物车中的商品最大数量消失
Magento related products disappears with item max qty in cart
在 Magento 中我们设置了 "Display Out of Stock Products" => "Yes"
在产品页面上,我们有一个 "Related products" 部分 (related.phml
=> if($this->getItems()->getSize()):
)
然而,当达到 Maximum Qty Allowed in Shopping Cart
时,该产品从相关产品(以及追加销售)中消失。
这是为什么?我怎样才能展示这些产品?
事实证明这与 max_qty
无关,但在任何时候,当某个产品在购物车中时,它会从相关产品或追加销售中消失。
在Related.php
文件中,Mage::getSingleton('checkout/session')->getQuoteId()
需要删除/注释掉。
在 Magento 中我们设置了 "Display Out of Stock Products" => "Yes"
在产品页面上,我们有一个 "Related products" 部分 (related.phml
=> if($this->getItems()->getSize()):
)
然而,当达到 Maximum Qty Allowed in Shopping Cart
时,该产品从相关产品(以及追加销售)中消失。
这是为什么?我怎样才能展示这些产品?
事实证明这与 max_qty
无关,但在任何时候,当某个产品在购物车中时,它会从相关产品或追加销售中消失。
在Related.php
文件中,Mage::getSingleton('checkout/session')->getQuoteId()
需要删除/注释掉。