From e7e09b951eaf6bea6239a4dc66ab72623b37ec79 Mon Sep 17 00:00:00 2001 From: Andy Pieters Date: Thu, 21 Dec 2017 12:34:47 +0100 Subject: [PATCH] Resetting reservedOrderId on cancel --- Controller/Checkout/Redirect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/Checkout/Redirect.php b/Controller/Checkout/Redirect.php index 616fa656..056cef04 100644 --- a/Controller/Checkout/Redirect.php +++ b/Controller/Checkout/Redirect.php @@ -82,7 +82,7 @@ public function execute() $method = $payment->getMethod(); // restore the quote $quote = $this->quoteRepository->get($order->getQuoteId()); - $quote->setIsActive(true); + $quote->setIsActive(true)->setReservedOrderId(null); $this->checkoutSession->replaceQuote($quote); $this->quoteRepository->save($quote);