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
(Tạo trang mới với nội dung “Category:Tài liệu ChipFC * [https://www.prestashop.com/forums/topic/575856-tuturial-add-extended-codehtml-editor-to-tinymce/ Tuturial - Add extend…”)
 
(Các tập tin đã chỉnh sửa)
 
(Không hiển thị 7 phiên bản của cùng người dùng ở giữa)
Dòng 1: Dòng 1:
 
[[Category:Tài liệu ChipFC]]
 
[[Category:Tài liệu ChipFC]]
  
 +
==Cài đặt plugin codemirror cho TinyMCE==
 
* [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]
 +
 +
==Disable sendMail for default customer==
 +
* \classes\PaymentModule.php
 +
<syntaxhighlight lang="php">
 +
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 lang="php">
 +
if ($dir_mail && ($customer->email != $configuration['PS_SHOP_EMAIL'])) {
 +
    Mail::Send(
 +
        //...
 +
    );
 +
}
 +
</syntaxhighlight>
 +
 +
== Các tập tin đã chỉnh sửa ==
 +
* classes/PaymentModule.php
 +
* img/favicon.ico
 +
* js/admin/tinymce.inc.js
 +
* modules/ps_emailsubscription/config.xml
 +
* modules/ps_emailsubscription/ps_emailsubscription.php
 +
* modules/statsdata/statsdata.php
 +
* admin/themes/default/template/header.tpl
 +
* admin/themes/default/template/controllers/login/header.tpl
 +
* admin/themes/new-theme/template/header.tpl
 +
 +
== Chỉnh ngôn ngữ cho Address Form ==
 +
* app/Resources/translations/vi-VN/ShopFormsLabels.vi-VN.xlf

Bản hiện tại lúc 09:36, ngày 16 tháng 5 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(
        //...
    );
}

Các tập tin đã chỉnh sửa

  • classes/PaymentModule.php
  • img/favicon.ico
  • js/admin/tinymce.inc.js
  • modules/ps_emailsubscription/config.xml
  • modules/ps_emailsubscription/ps_emailsubscription.php
  • modules/statsdata/statsdata.php
  • admin/themes/default/template/header.tpl
  • admin/themes/default/template/controllers/login/header.tpl
  • admin/themes/new-theme/template/header.tpl

Chỉnh ngôn ngữ cho Address Form

  • app/Resources/translations/vi-VN/ShopFormsLabels.vi-VN.xlf