FriendsOfShopware / FroshPlatformTemplateMail

This plugin allows you to use twig mails in Shopware 6.
MIT License
23 stars 17 forks source link

Store Shopware mail templates in theme

codecov PHPUnit Slack

This plugin allows to store the mails in theme instead of database. This gives us advantages like

Requirements

Installation

Export Templates

You can use the following command to export the current templates to the file system of your theme MyTheme to start modifying them:

bin/console frosh:template-mail:export custom/plugins/MyTheme/src/Resources/views/email/

Template location

Create a mail for a specific subshop or language shop (also inheritance in shops works)

Search order in example with sOrder:

custom/plugins/FroshPlatformTemplateMail/src/Resources/views/email/global/order_transaction.state.paid/html.twig

MJML Support

The plugin supports MJML. In the standard configuration mail templates in MJML format are processed via the service https://mjml.shyim.de.

Known Limitations

Contributing

Feel free to fork and send pull requests!

Licence

This project uses the MIT License.