frosh/frosh-platform-template-mail
Composer 安装命令:
composer require frosh/frosh-platform-template-mail
包简介
Load mail templates from theme
README 文档
README
This plugin allows to store the mails in theme instead of database. This gives us advantages like
- easier deployment
- translate it using snippets
- build your mail template using includes / extends / blocks / inheritance
- usage of theme configuration
Requirements
- Shopware 6.6.0 or newer
- PHP 8.2
Installation
- Download latest release
- Extract the zip file in
shopware_folder/custom/plugins/
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
-
HTML Template
custom/plugins/MyTheme/src/Resources/views/email/[en-GB]/order_transaction.state.paid/html.twig(Language Locale)custom/plugins/MyTheme/src/Resources/views/email/[en-GB]/order_transaction.state.paid/[ID]/html.twig(Template ID)custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/html.twig(Saleschannel ID)custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/html.twig(Language ID)custom/plugins/MyTheme/src/Resources/views/email/global/order_transaction.state.paid/html.twig(Default)- Database saved values (for right template names search in database table
mail_template_type)
-
Text Template
custom/plugins/MyTheme/src/Resources/views/email/[en-GB]/order_transaction.state.paid/plain.twig(Language Locale)custom/plugins/MyTheme/src/Resources/views/email/[en-GB]/order_transaction.state.paid/[ID]/plain.twig(Template ID)custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/plain.twig(Saleschannel ID)custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/plain.twig(Language ID)custom/plugins/MyTheme/src/Resources/views/email/global/order_transaction.state.paid/plain.twig(Default)- Database saved values (for right template names search in database table
mail_template_type)
-
Subject Template
custom/plugins/MyTheme/src/Resources/views/email/[en-GB]/order_transaction.state.paid/subject.twig(Language Code)custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/[ID]/subject.twig(Template ID)custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/subject.twig(Saleschannel ID)custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/subject.twig(Language ID)custom/plugins/MyTheme/src/Resources/views/email/global/order_transaction.state.paid/subject.twig(Default)- Database saved values (for right template names search in database table
mail_template_type)
-
You can also nest templates. E.g.:
custom/plugins/MyTheme/src/Resources/views/email/[ID]/[en-GB]/order_transaction.state.paid/html.twig(Saleschannel ID)/(Language Locale)
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
- The test mail function in the admin panel does not support the overwritten mail templates. (#34).
Contributing
Feel free to fork and send pull requests!
Licence
This project uses the MIT License.
frosh/frosh-platform-template-mail 适用场景与选型建议
frosh/frosh-platform-template-mail 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 110.28k 次下载、GitHub Stars 达 30, 最近一次更新时间为 2020 年 02 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「mail」 「shopware」 「frosh」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 frosh/frosh-platform-template-mail 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 frosh/frosh-platform-template-mail 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 frosh/frosh-platform-template-mail 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Adminer for Shopware
Adminer for Shopware
Courier offers a convenient and painless solution for creating emails tailored for your Kirby website.
Mail libraries used by Zimbra Api
Email+ extends Kirby's email capabilities by adding support for multiple email services using the same Kirby email API.
Show a variant switch within the listing and cart
统计信息
- 总下载量: 110.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 30
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-15