{"id":26984327,"url":"https://github.com/friendsofshopware/froshplatformtemplatemail","last_synced_at":"2025-04-03T17:36:18.418Z","repository":{"id":40589412,"uuid":"224730776","full_name":"FriendsOfShopware/FroshPlatformTemplateMail","owner":"FriendsOfShopware","description":"This plugin allows you to use twig mails in Shopware 6.","archived":false,"fork":false,"pushed_at":"2024-10-29T21:25:09.000Z","size":268,"stargazers_count":22,"open_issues_count":7,"forks_count":17,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-29T22:51:38.617Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FriendsOfShopware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-28T21:14:05.000Z","updated_at":"2024-10-29T21:22:54.000Z","dependencies_parsed_at":"2024-01-18T05:15:17.012Z","dependency_job_id":"25e255c6-235c-49dc-a088-604f1c1e2601","html_url":"https://github.com/FriendsOfShopware/FroshPlatformTemplateMail","commit_stats":{"total_commits":104,"total_committers":10,"mean_commits":10.4,"dds":0.625,"last_synced_commit":"2fae99bab5bde69af5ceff053755a7798cb0bca4"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfShopware%2FFroshPlatformTemplateMail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfShopware%2FFroshPlatformTemplateMail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfShopware%2FFroshPlatformTemplateMail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfShopware%2FFroshPlatformTemplateMail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FriendsOfShopware","download_url":"https://codeload.github.com/FriendsOfShopware/FroshPlatformTemplateMail/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247050029,"owners_count":20875362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-03T17:36:17.941Z","updated_at":"2025-04-03T17:36:18.411Z","avatar_url":"https://github.com/FriendsOfShopware.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Store Shopware mail templates in theme\n\n[![codecov](https://codecov.io/gh/FriendsOfShopware/FroshPlatformTemplateMail/branch/master/graph/badge.svg?token=HUPWYZ80YS)](https://codecov.io/gh/FriendsOfShopware/FroshPlatformTemplateMail)\n[![PHPUnit](https://github.com/FriendsOfShopware/FroshPlatformTemplateMail/actions/workflows/unit.yml/badge.svg)](https://github.com/FriendsOfShopware/FroshPlatformTemplateMail/actions/workflows/unit.yml)\n[![Slack](https://img.shields.io/badge/chat-on%20slack-%23ECB22E)](https://slack.shopware.com?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n\nThis plugin allows to store the mails in theme instead of database. This gives us advantages like\n\n* easier deployment\n* translate it using snippets\n* build your mail template using includes / extends / blocks / inheritance\n* usage of theme configuration\n\n\n## Requirements\n\n- Shopware 6.6.0 or newer\n- PHP 8.2\n\n## Installation\n\n- Download latest release\n- Extract the zip file in `shopware_folder/custom/plugins/`\n\n### Export Templates\n\nYou can use the following command to export the current templates to the file system of your theme `MyTheme` to start modifying them:\n\n```shell\nbin/console frosh:template-mail:export custom/plugins/MyTheme/src/Resources/views/email/\n```\n\n## Template location\n\nCreate a mail for a specific subshop or language shop (also inheritance in shops works)\n\nSearch order in example with sOrder:\n\ncustom/plugins/FroshPlatformTemplateMail/src/Resources/views/email/global/order_transaction.state.paid/html.twig\n* HTML Template\n  * `custom/plugins/MyTheme/src/Resources/views/email/[en-GB]/order_transaction.state.paid/html.twig` (Language Locale)\n  * `custom/plugins/MyTheme/src/Resources/views/email/[en-GB]/order_transaction.state.paid/[ID]/html.twig` (Template ID)\n  * `custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/html.twig` (Saleschannel ID)\n  * `custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/html.twig` (Language ID)\n  * `custom/plugins/MyTheme/src/Resources/views/email/global/order_transaction.state.paid/html.twig` (Default)\n  * Database saved values (for right template names search in database table `mail_template_type`)\n* Text Template\n  * `custom/plugins/MyTheme/src/Resources/views/email/[en-GB]/order_transaction.state.paid/plain.twig` (Language Locale)\n  * `custom/plugins/MyTheme/src/Resources/views/email/[en-GB]/order_transaction.state.paid/[ID]/plain.twig` (Template ID)\n  * `custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/plain.twig` (Saleschannel ID)\n  * `custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/plain.twig` (Language ID)\n  * `custom/plugins/MyTheme/src/Resources/views/email/global/order_transaction.state.paid/plain.twig` (Default)\n  * Database saved values (for right template names search in database table `mail_template_type`)\n* Subject Template\n  * `custom/plugins/MyTheme/src/Resources/views/email/[en-GB]/order_transaction.state.paid/subject.twig` (Language Code)\n  * `custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/[ID]/subject.twig` (Template ID)\n  * `custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/subject.twig` (Saleschannel ID)\n  * `custom/plugins/MyTheme/src/Resources/views/email/[ID]/order_transaction.state.paid/subject.twig` (Language ID)\n  * `custom/plugins/MyTheme/src/Resources/views/email/global/order_transaction.state.paid/subject.twig` (Default)\n  * Database saved values (for right template names search in database table `mail_template_type`)\n\n* You can also nest templates. E.g.:\n  * `custom/plugins/MyTheme/src/Resources/views/email/[ID]/[en-GB]/order_transaction.state.paid/html.twig` (Saleschannel ID)/(Language Locale)\n\n## MJML Support\n\nThe plugin supports [MJML](https://mjml.io/). In the standard configuration mail templates in MJML format are processed via the service https://mjml.shyim.de.\n\n## Known Limitations\n\n* The test mail function in the admin panel does not support the overwritten mail templates. ([#34](https://github.com/FriendsOfShopware/FroshPlatformTemplateMail/issues/34)).\n\n## Contributing\n\nFeel free to fork and send pull requests!\n\n## Licence\n\nThis project uses the [MIT License](LICENCE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendsofshopware%2Ffroshplatformtemplatemail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriendsofshopware%2Ffroshplatformtemplatemail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendsofshopware%2Ffroshplatformtemplatemail/lists"}