From 896658633ecd04d8158f5c4d52eab0c11db83047 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Thu, 6 Jun 2013 10:07:48 +0200 Subject: [PATCH] [*] MO : Followup https://github.com/runningz/PrestaShop/commit/040ff3396ac32a1cc35d4d2464e8d36486cac418 --- 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 9baaa815c..f5002c556 100644 --- a/modules/mailalerts/mailalerts.php +++ b/modules/mailalerts/mailalerts.php @@ -406,7 +406,7 @@ class MailAlerts extends Module public function hookActionProductOutOfStock($params) { - if (!$this->_customer_qty || !Configuration::get('PS_STOCK_MANAGEMENT') || Product::isAvailableWhenOutOfStock($params['product']->out_of_stock)) + if (!$this->_customer_qty || !Configuration::get('PS_STOCK_MANAGEMENT') || $params['product']->quantity > 0 || Product::isAvailableWhenOutOfStock($params['product']->out_of_stock)) return; $id_product = (int)$params['product']->id;