Compatibility
Shopware versions
Section titled “Shopware versions”| Shopware | Plugin branch |
|---|---|
| 6.6.x | P2LabDynamicVariables_1.66.x |
| 6.7.x | P2LabDynamicVariables_1.67.x |
The two branches share the same feature set. The split is purely about staying inside each Shopware release’s compatibility window — entity definitions, DAL APIs and Twig extensions have to match the target Shopware.
Whichever PHP version the target Shopware requires. The plugin does not pin its own PHP minimum beyond Shopware’s.
Other P2Lab plugins
Section titled “Other P2Lab plugins”Dynamic Variables runs as a standalone replacer — it does not depend on any other P2Lab plugin. It plays well with the rest of the suite (Stage, Badges, Cache, …) and is safe to install alongside them.
Notes if you are also running:
- P2Lab Cache — Dynamic Variables relies on Shopware’s standard HTTP / object cache invalidation. P2Lab Cache adds its own tagging on top; no extra setup needed for Dynamic Variables specifically.
- P2Lab Stage — variables inside Stage layer text are not currently re-scanned by Dynamic Variables. Use Stage’s own templating for stage-internal copy.
- P2Lab Badges — badge text fields are not currently in scope for variable replacement.
Storefront themes
Section titled “Storefront themes”The plugin works with any storefront theme based on the Shopware default — it does not patch theme templates. The replacement happens on rendered output, not at the template level.
If your theme replaces the default product / CMS rendering with a custom chain, double-check the Products and Categories scopes — the plugin intercepts the standard render paths.
Headless / API mode
Section titled “Headless / API mode”The plugin’s replacement runs as part of the storefront rendering pipeline. If you consume Shopware via the Store API and render content yourself, the raw {variable} strings will be returned to your frontend. You can:
- Reproduce the replacement in your frontend layer, or
- Add a custom Store API decorator that runs the plugin’s
DynamicVariableReplaceron outgoing payloads.
A built-in Store API integration is not part of the current release.