Skip to content

Commit

Permalink
[3452] Adding qty instead of replacing
Browse files Browse the repository at this point in the history
  • Loading branch information
riha112 committed Oct 7, 2021
1 parent 81aa6c8 commit d0a7d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Quote/Item/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function prepare(Item $item, DataObject $request, Product $candidate): vo
if ($request->getResetCount() && !$candidate->getStickWithinParent() && $item->getId() == $request->getId()) {
$item->setData(CartItemInterface::KEY_QTY, 0);
}
$item->setQty($candidate->getCartQty());
$item->addQty($candidate->getCartQty());

if (!$item->getParentItem() || $item->getParentItem()->isChildrenCalculated()) {
$item->setPrice($candidate->getFinalPrice());
Expand Down

0 comments on commit d0a7d0d

Please sign in to comment.