// Fix #PSCFV-4466
This commit is contained in:
1 parent
8ea00f8f3b
commit
b91c7a1306
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user