Magento Open Source 2.2.x

Adding Custom Variables

If you know a little basic HTMLHyperText Markup Language: A standard for tagging and structuring text, images, videos, and other media on a web page., you can create custom variables and use a markup tag to incorporate them into pages, blocks, banners, and email templates.

  • {{CustomVar code= "my_custom_variable"}}

Custom Variables

To create a custom variable:

1. On the Admin sidebar, tap System. Then under Other Settings, choose Custom Variables.
2. Tap Add New Variable.
3. Enter an identifier in the Variable Code field. Use all lowercase characters, without spaces.
4. Enter a Variable Name, which is used for internal reference. Then, do one of the following:
  • In the Variable HTML Value text field, enter any content you want to include, using basic HTML tags. This option allows you to format the value.
  • In the Variable Plain Value field, enter the variable value as plain text.

You can drag the lower-right corner to make the boxes bigger.

New Custom Variable
5. When complete, tap Save.