Skip to content

FriendsOfShopware/FroshMjml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FroshMjml

⚠️ Work in progress — this plugin is still under active development and not yet production-ready. Expect breaking changes.

MJML email templates for Shopware 6.7. MJML in a mail's HTML body is compiled to responsive HTML at send time — pure PHP (shyim/mjml-php), no Node required.

Requirements

  • Shopware ~6.6.0
  • PHP 8.2+

Installation

composer require frosh/mjml
bin/console plugin:refresh
bin/console plugin:install --activate FroshMjml

Usage

Per mail template: open a mail template, toggle Use MJML, and write MJML in the editor. The default HTML stays untouched, so the toggle is reversible.

Reusable components (Settings → MJML Components) are referenced from Twig:

  • {{ mjml_component('name', { headline: '…' }) }} — inline fragment
  • {% mjml 'name' %}…{% endmjml %} — fragment with a {{ content }} slot
  • {% extends mjml_base('name') %}{% block content %}…{% endblock %} — base layout

Content inside a block or slot must be valid MJML (<mj-text>…</mj-text> etc.); raw text in an <mj-column> is dropped by MJML.

About

MJML Email Templates for Shopware 6 – WYSIWYG editor with drag-and-drop, reusable components, and automatic MJML-to-HTML compilation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors