diff --git a/classes/Provider/EventDataProvider.php b/classes/Provider/EventDataProvider.php index e4c1e7636..3a7d30bec 100644 --- a/classes/Provider/EventDataProvider.php +++ b/classes/Provider/EventDataProvider.php @@ -271,6 +271,8 @@ private function getAddToCartEventData() $isDelete = $this->toolsAdapter->getValue('delete'); $idProductAttribute = $this->toolsAdapter->getValue('id_product_attribute'); $attributeGroups = $this->toolsAdapter->getValue('group'); + $changesDiscount = $this->toolsAdapter->getValue('addDiscount') + || $this->toolsAdapter->getValue('deleteDiscount'); if ($attributeGroups) { try { @@ -283,7 +285,7 @@ private function getAddToCartEventData() } } - if ($action !== 'update') { + if ($action !== 'update' || $changesDiscount) { return false; } $type = 'AddToCart';