Variable picker
The plugin adds a Dynamic Variables button to Shopware’s WYSIWYG text editor. Click it to browse available variables and insert one at the cursor position — no need to memorize keys.
Where the button appears
Section titled “Where the button appears”The button shows up everywhere Shopware uses its sw-text-editor component:
- CMS Shopping Experiences text and HTML blocks
- Email template editors
- Custom field rich text inputs
- Any custom admin module that embeds
sw-text-editor
If the button does not appear, the editor instance might be a different component or the admin assets are stale — refresh the admin and clear the admin cache.
How to use it
Section titled “How to use it”- Place the cursor where you want the variable.
- Click Dynamic Variables in the toolbar.
- A panel opens with all available variables — built-ins on top, your custom variables below.
- Click a variable to insert it. The placeholder syntax (
{key}) is dropped at the cursor. - Continue writing.
The panel includes a search field so you can filter by key.
Variables you don’t see
Section titled “Variables you don’t see”The picker only lists variables that are:
- Active
- Allowed in the current scope — when editing CMS text, only variables with no scope restriction or the
CMS Pagescope are shown.
If a variable you expect is missing, check its Active flag and Scopes in the variable detail page.
Manual entry
Section titled “Manual entry”The picker is a convenience — typing {variableName} by hand works exactly the same. The placeholder is just text in the underlying field. Use whichever feels faster.