Skip to content

Commit f23af1c

Browse files
committed
MAGETWO-39108: Shopping Cart becomes empty if Customer updates the item to be the same as already existent in Shopping Cart
1 parent 2b81885 commit f23af1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Quote/Model/Quote/Item/Processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function prepare(Item $item, Object $request, Product $candidate)
9494
/**
9595
* We specify qty after we know about parent (for stock)
9696
*/
97-
if ($request->getResetCount()) {
97+
if ($request->getResetCount() && !$candidate->getStickWithinParent() && $item->getId() === $request->getId()) {
9898
$item->setData(CartItemInterface::KEY_QTY, 0);
9999
}
100100
$item->addQty($candidate->getCartQty());

0 commit comments

Comments
 (0)