Example module to add a Mail theme to PrestaShop.
This module requires PrestaShop 9.0.0 to work correctly.
- Copy the
example_module_mailthemedirectory into PrestaShop'smodulesdirectory. composer installin the module's directory. ([...]/modules/example_module_mailtheme)bin/console prestashop:module install example_module_mailthemein PrestaShop's directory.
- Copy the
example_module_mailthemedirectory into PrestaShop'smodulesdirectory. composer installin the module's directory. ([...]/modules/example_module_mailtheme)bin/console prestashop:module install example_module_mailthemein PrestaShop's directory.
- 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