From b91c7a130656a0094d1e6e2eb80de35df7ec62e2 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Mon, 1 Oct 2012 15:32:49 +0000 Subject: [PATCH] // Fix #PSCFV-4466 --- modules/mailalerts/mailalerts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;