diff --git a/ajax/frontend/basket/toOrderInProcess.php b/ajax/frontend/basket/toOrderInProcess.php index 2fba39002fa08501669842c421cbad1ac92f2cb8..cde75946d1b9ee6bfcb2d986334f7df656fd7265 100644 --- a/ajax/frontend/basket/toOrderInProcess.php +++ b/ajax/frontend/basket/toOrderInProcess.php @@ -4,6 +4,8 @@ * This file contains package_quiqqer_order_ajax_frontend_basket_toOrderInProcess */ +use QUI\ERP\Order\Factory; + /** * Saves the basket to the temporary order * @@ -35,8 +37,8 @@ function ($basketId, $orderHash) { if ($Order === null) { try { $Order = $OrderHandler->getLastOrderInProcessFromUser($User); - } catch (QUI\Exception $Exception) { - QUI\System\Log::writeDebugException($Exception); + } catch (QUI\Exception) { + $Order = Factory::getInstance()->createOrderInProcess(); } }