Skip to content

Commit

Permalink
Stop collecting shipping rates before creating saving the quote
Browse files Browse the repository at this point in the history
  • Loading branch information
tl-ariel-reano committed May 7, 2024
1 parent 5bd77fb commit 3e0856d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Service/Order/ProcessWebhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ private function prepareQuote(CartInterface $quote, string $userId): CartInterfa

$quote->setCustomerIsGuest($quote->getCustomerId() == null);
$quote->setIsActive(true);
// stop collecting shipping rated to avoid losing the shipping method with saving the quote. This happens while using custom shipping methods
$quote->getShippingAddress()->setCollectShippingRates(false);
$this->quoteRepository->save($quote);
return $quote;
}
Expand Down

0 comments on commit 3e0856d

Please sign in to comment.