Skip to content

Commit 65eb8de

Browse files
committed
MAGETWO-54182: Unable to place order with quantity more than half in stock
1 parent a27a846 commit 65eb8de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public function save(CartInterface $quote, CartItemInterface $item)
7171
/** Update item product options */
7272
$item = $quote->updateItem($itemId, $buyRequestData);
7373
} else {
74-
$currentItem->setQty($qty);
74+
if ($item->getQty() !== $currentItem->getQty()) {
75+
$currentItem->setQty($qty);
76+
}
7577
}
7678
} else {
7779
/** add new item to shopping cart */

0 commit comments

Comments
 (0)