Magento Commerce, 2.0.11

Magento 2.0.18 is the final 2.0.x release. After March 2018, Magento 2.0.x will no longer receive security patches, quality fixes, or documentation updates. To maintain your site's performance, security, and PCIPayment Card Industry: Refers to debit and credit cards and their associated businesses. compliance, upgrade to the latest version of Magento.

Creating 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 AdminThe password-protected back office of your store where orders, catalog, content, and configurations are managed. sidebarThe right or left column of a two-column page layout., 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. You can use an underscore character for a space.
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 a formatted version of the value using basic HTML tags.
  • 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.