diff --git a/Service/Order/ProcessWebhook.php b/Service/Order/ProcessWebhook.php index 8337984..f2fd318 100644 --- a/Service/Order/ProcessWebhook.php +++ b/Service/Order/ProcessWebhook.php @@ -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; }