diff --git a/bundles/EcommerceFrameworkBundle/CartManager/AbstractCartItem.php b/bundles/EcommerceFrameworkBundle/CartManager/AbstractCartItem.php index f9554109346..1860a7caf36 100644 --- a/bundles/EcommerceFrameworkBundle/CartManager/AbstractCartItem.php +++ b/bundles/EcommerceFrameworkBundle/CartManager/AbstractCartItem.php @@ -78,6 +78,10 @@ public function __construct() public function setCount($count, bool $fireModified = true) { + if($count < 0) { + $count = 0; + } + if ($this->count != $count && $this->getCart() && !$this->isLoading && $fireModified) { $this->getCart()->modified(); }