Skip to content

Commit

Permalink
improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
engcom-Charlie committed Mar 10, 2020
1 parent 2bdcc11 commit 23f9849
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/Magento/Quote/Plugin/UpdateCartId.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ public function beforeSave(
GuestCartItemRepositoryInterface $guestCartItemRepository,
CartItemInterface $cartItem
): void {
if ($cartId = $this->request->getParam('cartId')) {
$cartId = $this->request->getParam('cartId');

if ($cartId) {
$cartItem->setQuoteId($cartId);
}
}
Expand Down

0 comments on commit 23f9849

Please sign in to comment.