From 0cd2c34e3022fd221b3c5ca7e7f600db9efae26f Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Wed, 26 Nov 2025 20:33:34 +0100 Subject: [PATCH] update --- modules/ps_emailalerts/ps_emailalerts.php | 46 +++++++++++------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/modules/ps_emailalerts/ps_emailalerts.php b/modules/ps_emailalerts/ps_emailalerts.php index 6912d92b..24a595ca 100644 --- a/modules/ps_emailalerts/ps_emailalerts.php +++ b/modules/ps_emailalerts/ps_emailalerts.php @@ -684,29 +684,29 @@ class Ps_EmailAlerts extends Module ]; // Do not send mail if multiples product are created / imported. - if (!defined('PS_MASS_PRODUCT_CREATION') - && file_exists(dirname(__FILE__) . '/mails/' . $iso . '/productoutofstock.txt') - && 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 - $merchant_oos_emails = explode(self::__MA_MAIL_DELIMITER__, $this->merchant_oos_emails); - foreach ($merchant_oos_emails as $merchant_mail) { - Mail::Send( - $id_lang, - 'productoutofstock', - $this->trans('Product out of stock', [], 'Emails.Subject', $locale), - $template_vars, - $merchant_mail, - null, - (string) $configuration['PS_SHOP_EMAIL'], - (string) $configuration['PS_SHOP_NAME'], - null, - null, - dirname(__FILE__) . '/mails/', - false, - $id_shop - ); - } - } + // if (!defined('PS_MASS_PRODUCT_CREATION') + // && file_exists(dirname(__FILE__) . '/mails/' . $iso . '/productoutofstock.txt') + // && 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 + // $merchant_oos_emails = explode(self::__MA_MAIL_DELIMITER__, $this->merchant_oos_emails); + // foreach ($merchant_oos_emails as $merchant_mail) { + // Mail::Send( + // $id_lang, + // 'productoutofstock', + // $this->trans('Product out of stock', [], 'Emails.Subject', $locale), + // $template_vars, + // $merchant_mail, + // null, + // (string) $configuration['PS_SHOP_EMAIL'], + // (string) $configuration['PS_SHOP_NAME'], + // null, + // null, + // dirname(__FILE__) . '/mails/', + // false, + // $id_shop + // ); + // } + // } } if ($product_has_attributes) {