Khác biệt giữa các bản “Ghi chú Prestashop”
Từ ChipFC Wiki
(→Cài đặt plugin codemirror cho TinyMCE) |
(→Disable sendMail for default customer) |
||
Dòng 7: | Dòng 7: | ||
==Disable sendMail for default customer== | ==Disable sendMail for default customer== | ||
* \classes\PaymentModule.php | * \classes\PaymentModule.php | ||
− | <syntaxhighlight> | + | <syntaxhighlight lang="php"> |
if (Validate::isEmail($this->context->customer->email) && ($this->context->customer->email != Configuration::get('PS_SHOP_EMAIL'))) { | if (Validate::isEmail($this->context->customer->email) && ($this->context->customer->email != Configuration::get('PS_SHOP_EMAIL'))) { | ||
Mail::Send( | Mail::Send( | ||
Dòng 16: | Dòng 16: | ||
* \modules\ps_emailalerts\ps_emailalerts.php | * \modules\ps_emailalerts\ps_emailalerts.php | ||
− | <syntaxhighlight> | + | <syntaxhighlight lang="php"> |
if ($dir_mail && ($customer->email != $configuration['PS_SHOP_EMAIL'])) { | if ($dir_mail && ($customer->email != $configuration['PS_SHOP_EMAIL'])) { | ||
Mail::Send( | Mail::Send( |
Phiên bản lúc 10:46, ngày 17 tháng 3 năm 2018
Cài đặt plugin codemirror cho TinyMCE
Disable sendMail for default customer
- \classes\PaymentModule.php
if (Validate::isEmail($this->context->customer->email) && ($this->context->customer->email != Configuration::get('PS_SHOP_EMAIL'))) {
Mail::Send(
//...
);
}
- \modules\ps_emailalerts\ps_emailalerts.php
if ($dir_mail && ($customer->email != $configuration['PS_SHOP_EMAIL'])) {
Mail::Send(
//...
);
}