Markus Michalski FAQ

Product Snippets

Reusable text snippets for product descriptions in Shopware 6 - maintain them once in the admin, insert them anywhere with a placeholder, multi-language and cached

Deutsche Version

Back to Shopware 6 Plugins

Product Snippets

Shopware
PHP
License

This documentation always refers to the latest released version.

Live Demo: Try this and other plugins live — no installation, no risk: demo.markus-michalski.net

Overview

Reusable text snippets for product descriptions in Shopware 6. You maintain standard texts such as warranty notices, shipping information or format disclaimers once in the admin and insert them into any number of product descriptions with a placeholder like {{snippet:warranty-info}}.

Change the snippet once, and every product description with the placeholder shows the new text. You do not have to edit each product individually.

graph LR
    A["Admin: maintain snippet"] --> B["Database (per language)"]
    C["Product description with placeholder"] --> D["Filter mmd_snippets"]
    B --> D
    D --> E["Storefront output"]

Documentation

Page Contents
Installation Installation, update, uninstall, plugin line for Shopware 6.5/6.6
Configuration Admin module, fields, identifier rules, multi-language, practical examples
Storefront Integration Where replacement happens, Twig filter and function, theme overrides
Troubleshooting and FAQ Typical problems, known limitations, frequently asked questions
Technical Details Flow, caching, data model, differences between the lines

Features

Feature Description
Admin interface Create, search, edit and delete snippets under Content > Product Snippets
Multi-language Name and content are maintained per language, the storefront outputs the language of the current context
Placeholder syntax {{snippet:identifier}} or {{textbaustein:identifier}}, whitespace inside the braces allowed
Automatic replacement Shipped templates replace placeholders in the product description and on product cards
Sanitized content The content is cleaned with Shopware's HTML sanitizer when inserted
Caching Snippets are cached per language for one hour
Twig integration Filter mmd_snippets and function mmd_snippet() for custom templates

Requirements

Requirement Version Notes
Shopware ~6.7.0 Composer package mmd/sw67-product-snippets. For Shopware 6.5 and 6.6 there is the package mmd/sw66-product-snippets, see Installation.
PHP >=8.2
License valid Commercial license

License

Commercial License - Single installation license including:

See LICENSE file for full terms.

Support

For customers who purchased this plugin through the Shopware Store, technical support is provided exclusively through the official Shopware support ticket system in your Shopware account. For general, project-related, or commercial inquiries outside the scope of the Store framework, you can reach me at support@markus-michalski.net.