Custom Template & Custom Twig
Description
Highlights
About the Extension
Edit Twig templates right in the Administration
Twig Manager adds a template editor under Extensions > Twig Manager. It lists Shopware's core storefront templates and document templates, and you override them from the Administration, without FTP access and without building a theme plugin. Shopware loads the files in documents/includes from a fixed core path, so you override their blocks in invoice.html.twig, base.html.twig or another main document template.
How the template editor stores your changes
Your edited Twig templates are saved as files in custom/plugins/.customTemplate, in the folders storefront and documents. Shopware loads them through the plugin's own template namespace while the plugin is active.
- A template that has not been edited yet opens with a sw_extends line for the original, so you override only the blocks you need
- Shopware's original template files are never changed
- After each save or delete, the Administration clears the Shopware cache
- "Delete" removes your version of a template, and the original applies again
Find Twig templates of the storefront and documents
- Two tabs: "Storefront" with the template files of the storefront and "Documents" with the document templates, such as invoice, delivery note, credit note and cancellation invoice
- The search field filters the template paths, the checkbox "edited" shows only edited templates
- Edited templates appear in bold with a file icon, the selected one is highlighted in blue
Template editor with Twig syntax highlighting
The code editor runs in Twig mode and is labelled "Twig template content for" plus the template path.
- "Add twig filter" inserts a filter name from a list of 60, for example format_currency, sw_sanitize or striptags, at the cursor
- Below the editor, the original template content appears read-only, so you can copy blocks from it
- "Save" writes the template, and for edited templates "Delete" asks for confirmation first
Version history for each Twig template
Each save stores a version with date, time and the user who saved it. Before a delete, the last content is stored as a version too.
- Up to 25 versions are kept per template, older ones are removed automatically
- A click on a date shows that version in the preview ("Version from …")
- "Load version into editor" copies it into the editor, ready to save
- Versions stay after you delete a template, so you can bring its content back later
Template editor permissions for your team
The "Twig Manager" permission has four levels in the role settings, and the server checks them on save and delete.
- View: browse templates, the original content and the version history
- Edit: change templates that are already edited; Create: start new ones (Create includes Edit)
- Delete: remove edited templates
- Edit, Create and Delete include the permission "Clear cache", because each save and delete clears the cache
Twig templates on uninstall
The version history is stored in its own database table. Uninstalling with the option to delete all app data drops this table, while your template files stay in custom/plugins/.customTemplate.
Details
- Available: English, German
- Latest update: 18 November 2026
- Publication date: 24 August 2024
- Version: 2.1.0
- Category: Administration
Resources
Reviews (4)
Top PlugIn und super Support!
Nur zu Empfehlen.
Einfach geht es nicht und dann noch so günstig
Top Plugin
Funktioniert tadellos, aber ist jetzt nicht mehr kostenlos. Schade.
About the Extension Partner
weedesign
Partner Status
-
Shopware
Extension Partner
Details
- Ø-Rating: 4.9
- Partner since: 2019
- Extensions: 71
Support
- Based in: Germany
- Speaks: German, English
- Response time: Very quickly