Example module to add a Mail theme to PrestaShop.
This module requires PrestaShop 9.0.0 to work correctly.
- Download or clone module into
modulesdirectory of your PrestaShop installation - Rename the directory to make sure that module directory is named
example_module_mailtheme* cdinto module's directory and run following commands:composer install- to download dependencies into vendor folder
- Install module:
- from Back Office in Module Manager
- using the command
php ./bin/console prestashop:module install example_module_mailtheme
* Because the name of the directory and the name of the main module file must match.
- Once the module is installed you can go to Design > Email theme there is a new
dark_moderntheme available. - You can look at the
dark_modernthemes layout and see they look like the modern theme but with customized colors. - You can look at the
order_conflayout and see that an additional block has been added at the bottomThank you for purchasing this product ...on BOTHmodernanddark_modernthemes - You can see that all three themes have a
customized_templatelayout with a customized message with the color red (applied via a custom transformation). - You can also go to Modules Manager and configure the module custom colors and text
- Go back in the layout preview and check that the
dark_moderntemplate colors are adapted