Skip to content

Commit

Permalink
Remove code blocks where the quote is saved
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k3lm committed Nov 8, 2024
1 parent 284113b commit fd7e41b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions Model/Api/CartProvider/CustomerCartProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ public function getQuote(string $cartId): Quote
/** @var Quote $quote */
$quote = $this->quoteResotory->getActive($cartId);

if ($quote->getCheckoutMethod()) {
$quote->setCheckoutMethod('');
$quote->setCustomerIsGuest(false);
$this->quoteResotory->save($quote);
}

return $quote;
}
}
6 changes: 0 additions & 6 deletions Model/Api/CartProvider/GuestCartProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ public function getQuote(string $cartId): Quote
throw NoSuchEntityException::singleField('cartId', $cartId);
}

if ($quote->getCheckoutMethod() !== Onepage::METHOD_GUEST) {
$quote->setCheckoutMethod(Onepage::METHOD_GUEST);
$quote->setCustomerIsGuest(true);
$this->cartRepository->save($quote);
}

return $quote;
}
}

0 comments on commit fd7e41b

Please sign in to comment.