Skip to content

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.

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.

  1. Place the cursor where you want the variable.
  2. Click Dynamic Variables in the toolbar.
  3. A panel opens with all available variables — built-ins on top, your custom variables below.
  4. Click a variable to insert it. The placeholder syntax ({key}) is dropped at the cursor.
  5. Continue writing.

The panel includes a search field so you can filter by key.

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 Page scope are shown.

If a variable you expect is missing, check its Active flag and Scopes in the variable detail page.

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.