Skip to content

Commit 3cfaecd

Browse files
author
Oleksandr Iegorov
committed
MC-42652: GraphQL - Expected behavior of add product to cart when SKU already exists
1 parent f83c206 commit 3cfaecd

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/AddProductsToCart.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,4 @@ public function execute(Quote $cart, array $cartItems): void
5454
}
5555
$this->cartRepository->save($cart);
5656
}
57-
58-
/**
59-
* Refresh cart collection cache
60-
*
61-
* @param Quote $cart
62-
*/
63-
private function refreshCartCache(Quote $cart) : void
64-
{
65-
$items = [];
66-
$collection = $cart->getItemsCollection(false);
67-
foreach ($collection as $item) {
68-
$items[] = $item;
69-
}
70-
$cart->setItems($items);
71-
}
7257
}

0 commit comments

Comments
 (0)