Knowledge Base

Search

  • Video block
  • Video Tutorials

  • Watch our easy-to-follow video tutorials for quick tips on designing and managing your store.
  • View Video Tutorials

Creating Custom Variables

This feature can be very helpful when adding custom text to you store.  Custom variables are moveable pieces of plain text or HTML content great for adding to transactional emails, or adding constant copy and designs to your store with Static Blocks and CMS pages.  By doing so custom text and design can be created once and applied to multiple areas to save the merchant time.

To create a custom variable, do the following:

  1. In the Admin Panel, select System > Custom Variable option to display a list of defined variables.
  2. Click the [Add New Variable] button to be redirected to custom variable page shown below. image

  3. Enter an identifier in the Variable Code field. Do not use capital letters or spaces. i.e. store_hours. Enter a name in Variable Name field for internal purposes.
  4. In the Variable HTML Value text field, enter content using basic html tags. This field is optional. You can also forgo this option and using plain text, enter content in Variable Plain Value field.
  5. Click [ Save ] to save your changes.

Note: The HTML code for inputting this example would be {{CustomVar code= “store_hours”}} or click Insert Variable within the WYSIWYG panel and select a variable.

To Implement a custom variable into a Transactional Email, do the following:

  1. In the Admin Panel, select System > Transactional Emails
  2. Click the row of predefined template to edit or click [Add New Template] button to create a new one. Create a new transactional email first if needed.
  3. In the Template Content field, select a location for your custom variable.
  4. Click [ Insert Variable ] and select the Custom Variable you would like to insert. image
  5. Click the [ Preview Template ] to view your changes before saving. Make changes as necessary.
  6. Click [ Save Template ] to save your changes.

To implement a custom variable into a Static Block, do the following:

  1. In the Admin Panel, select CMS Static Block
  2. Click the row of a predefined block to edit or click [Add New Block] to create a new static block. Create a new first if needed.
  3. In the Content text area, select a location for your custom variable.
  4. In the WYSIWYG click the [ Insert Variable ] button or expand the default insert list by clicking Show/Hide Editor and click Insert Variable.
  5. Select the Custom Variable that you created.
  6. Click [Save Block] to save your changes.