Khác biệt giữa các bản “Ghi chú Prestashop”

Từ ChipFC Wiki
Bước tới: chuyển hướng, tìm kiếm
(Cài đặt plugin codemirror cho TinyMCE)
Dòng 4: Dòng 4:
 
* [https://www.prestashop.com/forums/topic/575856-tuturial-add-extended-codehtml-editor-to-tinymce/ Tuturial - Add extended Code/html editor to TinyMCE]
 
* [https://www.prestashop.com/forums/topic/575856-tuturial-add-extended-codehtml-editor-to-tinymce/ Tuturial - Add extended Code/html editor to TinyMCE]
 
* [https://github.com/christiaan/tinymce-codemirror GitHub CodeMirror for TinyMCE 4]
 
* [https://github.com/christiaan/tinymce-codemirror GitHub CodeMirror for TinyMCE 4]
 +
 +
==Disable sendMail for default customer==
 +
* \classes\PaymentModule.php
 +
<syntaxhighlight>
 +
if (Validate::isEmail($this->context->customer->email) && ($this->context->customer->email != Configuration::get('PS_SHOP_EMAIL'))) {
 +
    Mail::Send(
 +
        //...
 +
    );
 +
}
 +
</syntaxhighlight>
 +
 +
* \modules\ps_emailalerts\ps_emailalerts.php
 +
<syntaxhighlight>
 +
if ($dir_mail && ($customer->email != $configuration['PS_SHOP_EMAIL'])) {
 +
    Mail::Send(
 +
        //...
 +
    );
 +
}
 +
</syntaxhighlight>

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(
        //...
    );
}