We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bdcc11 commit 23f9849Copy full SHA for 23f9849
app/code/Magento/Quote/Plugin/UpdateCartId.php
@@ -42,7 +42,9 @@ public function beforeSave(
42
GuestCartItemRepositoryInterface $guestCartItemRepository,
43
CartItemInterface $cartItem
44
): void {
45
- if ($cartId = $this->request->getParam('cartId')) {
+ $cartId = $this->request->getParam('cartId');
46
+
47
+ if ($cartId) {
48
$cartItem->setQuoteId($cartId);
49
}
50
0 commit comments