diff --git a/core/lib/Thelia/Action/Cart.php b/core/lib/Thelia/Action/Cart.php index ab39d227b..7a055d4b2 100755 --- a/core/lib/Thelia/Action/Cart.php +++ b/core/lib/Thelia/Action/Cart.php @@ -113,6 +113,11 @@ class Cart implements EventSubscriberInterface $message = "Missing or invalid data"; } + + $cartAdd->setError(true); + $cartAdd->setErrorMessage($message); + + $event->setErrorForm($cartAdd); } private function getAddCartForm(Request $request)