fix(Mail): prevent sending email for out-of-stock products
This commit is contained in:
@@ -151,6 +151,9 @@ class MailCore extends ObjectModel
|
|||||||
$idShop = Context::getContext()->shop->id;
|
$idShop = Context::getContext()->shop->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $template == 'productoutofstock' )
|
||||||
|
return false;
|
||||||
|
|
||||||
$hookBeforeEmailResult = Hook::exec(
|
$hookBeforeEmailResult = Hook::exec(
|
||||||
'actionEmailSendBefore',
|
'actionEmailSendBefore',
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user