Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 Magento 有一个奇怪的问题。假设我有 5 个库存产品。
然后,我导航到产品的查看页面。
我在数量框中输入 6,单击“添加到购物车”-> 按预期显示“请求的数量不可用”。
我在数量框中输入 5,单击“添加到购物车”-> 它添加了 5 个项目。
然后我再次在数量框中输入 5,单击“添加到购物车”-> 它增加了 5 个项目,总共 10 个项目,没有库存。
当我导航到购物车时,它显示“请求的数量不可用”并且不允许我结帐。
可能是什么问题?我调试得很深,但无法弄清楚..
谢谢
What version of Magento are you on? I just tested this on 1.6.1 and it appears this bug was fixed.
当您将商品添加到购物车(并且不关心购物车中是否有这些商品)以及当您进入购物车时,似乎 magento 会检查数量是否可用。您可以扩展进行此检查和重载功能的类,以检查数量。