【问题标题】:Magento related products disappears with item max qty in cartMagento 相关产品消失,购物车中的商品最大数量
【发布时间】:2016-01-07 12:56:01
【问题描述】:

在 Magento 中,我们设置了“显示缺货产品”=>“是”

在产品页面上,我们有一个“相关产品”部分 (related.phml => if($this->getItems()->getSize()):)

但是,当达到Maximum Qty Allowed in Shopping Cart 时,该产品将从相关产品中消失(以及追加销售)。

为什么会这样?我怎样才能展示这些产品?

【问题讨论】:

  • 能否提供网址和最大数量限制?
  • 设置值后是否清除缓存并重新索引

标签: magento magento-1.9


【解决方案1】:

原来与max_qty 无关,但在任何时候,当产品在购物车中时,它会从相关产品或追加销售中消失。

Related.php 文件中,Mage::getSingleton('checkout/session')->getQuoteId() 需要删除/注释掉。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-01
    • 2019-09-18
    • 1970-01-01
    • 2018-07-05
    • 1970-01-01
    • 2012-02-10
    相关资源
    最近更新 更多