Add a site to a template

If your Commerce instance supports more than one site, one site is designated as the default. When you create a new site, the values for email settings and templates are copied to the new site from the default site.

The values that are copied include any customizations you have made to email templates for the default site. When you download and upload email templates in an environment that supports multiple sites, make sure you select the correct site first. See Download and edit email templates for more information.

In emails generated by Commerce, the following variables in the html_body.ftl file associated with any given email template specify site name and URL information.

  • ${data.sitename} represents the store name and corresponds to the value entered for the site name when creating the site.
  • ${data.storefrontUrl} represents the site base URL provided when creating the site.

At run time, these variables are replaced in the generated email with the name and URL associated with the site.