diff --git a/core/lib/Thelia/Core/HttpFoundation/Session/Session.php b/core/lib/Thelia/Core/HttpFoundation/Session/Session.php index b35bd4a13..df5fa6a38 100644 --- a/core/lib/Thelia/Core/HttpFoundation/Session/Session.php +++ b/core/lib/Thelia/Core/HttpFoundation/Session/Session.php @@ -250,7 +250,14 @@ class Session extends BaseSession */ public function getOrder() { - return $this->get("thelia.order"); + $order = $this->get("thelia.order"); + + if (null === $order) { + $order = new Order(); + $this->setOrder($order); + } + + return $order; } /**