update
This commit is contained in:
@@ -684,29 +684,29 @@ class Ps_EmailAlerts extends Module
|
|||||||
];
|
];
|
||||||
|
|
||||||
// Do not send mail if multiples product are created / imported.
|
// Do not send mail if multiples product are created / imported.
|
||||||
if (!defined('PS_MASS_PRODUCT_CREATION')
|
// if (!defined('PS_MASS_PRODUCT_CREATION')
|
||||||
&& file_exists(dirname(__FILE__) . '/mails/' . $iso . '/productoutofstock.txt')
|
// && file_exists(dirname(__FILE__) . '/mails/' . $iso . '/productoutofstock.txt')
|
||||||
&& file_exists(dirname(__FILE__) . '/mails/' . $iso . '/productoutofstock.html')) {
|
// && file_exists(dirname(__FILE__) . '/mails/' . $iso . '/productoutofstock.html')) {
|
||||||
// Send 1 email by merchant mail, because Mail::Send doesn't work with an array of recipients
|
// // Send 1 email by merchant mail, because Mail::Send doesn't work with an array of recipients
|
||||||
$merchant_oos_emails = explode(self::__MA_MAIL_DELIMITER__, $this->merchant_oos_emails);
|
// $merchant_oos_emails = explode(self::__MA_MAIL_DELIMITER__, $this->merchant_oos_emails);
|
||||||
foreach ($merchant_oos_emails as $merchant_mail) {
|
// foreach ($merchant_oos_emails as $merchant_mail) {
|
||||||
Mail::Send(
|
// Mail::Send(
|
||||||
$id_lang,
|
// $id_lang,
|
||||||
'productoutofstock',
|
// 'productoutofstock',
|
||||||
$this->trans('Product out of stock', [], 'Emails.Subject', $locale),
|
// $this->trans('Product out of stock', [], 'Emails.Subject', $locale),
|
||||||
$template_vars,
|
// $template_vars,
|
||||||
$merchant_mail,
|
// $merchant_mail,
|
||||||
null,
|
// null,
|
||||||
(string) $configuration['PS_SHOP_EMAIL'],
|
// (string) $configuration['PS_SHOP_EMAIL'],
|
||||||
(string) $configuration['PS_SHOP_NAME'],
|
// (string) $configuration['PS_SHOP_NAME'],
|
||||||
null,
|
// null,
|
||||||
null,
|
// null,
|
||||||
dirname(__FILE__) . '/mails/',
|
// dirname(__FILE__) . '/mails/',
|
||||||
false,
|
// false,
|
||||||
$id_shop
|
// $id_shop
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($product_has_attributes) {
|
if ($product_has_attributes) {
|
||||||
|
|||||||
Reference in New Issue
Block a user