diff --git a/modules/mailalerts/mailalerts.php b/modules/mailalerts/mailalerts.php index fabd99df3..5dc19d192 100644 --- a/modules/mailalerts/mailalerts.php +++ b/modules/mailalerts/mailalerts.php @@ -403,7 +403,7 @@ class MailAlerts extends Module public function hookActionProductOutOfStock($params) { - if (!$this->_customer_qty || !Configuration::get('PS_STOCK_MANAGEMENT')) + if (!$this->_customer_qty || !Configuration::get('PS_STOCK_MANAGEMENT') || Product::isAvailableWhenOutOfStock($params['product']->out_of_stock)) return; $id_product = (int)$params['product']->id;