Note: The account-based commerce feature may not be enabled in your environment.
In account-based storefronts, you can add a company name and logo to the emails generated by Oracle Commerce Cloud Service by inserting the following variables in the html_body.ftl
file associated with any given email template.
${data.organization.name}
represents the company name and corresponds to the value entered for the account name when creating the account.${data.organization.logoURL}
represents the path to the company logo and corresponds to the path you provided for the Store Logo during account creation.
For example, the following is a modified version of the Forgotten Password template’s html_body.ftl
:
${getString("PASSWORD_RESET_SALUTATION", data.firstName)} <br><br> ${getStringNotEscaped("PASSWORD_RESET_LINE_1", data.password)} <br><br> ${data.organization.name} <br><br> <img src="${data.organization.logoURL}"> <br><br> ${getString("PASSWORD_RESET_LINE_2")} <br><br> ${getString("PASSWORD_RESET_SENT_SIGNATURE_TEXT")} <br><br>
At run time, both variables are replaced in the generated email with the name and logo image associated with the account.
To modify an email template, you must download its constituent files, make the modifications to the html_body.ftl
file, and then upload it again. For details on this process, see the Customize Email Templates section.
You can add your company name and logo to the following email templates:
Abandon Order
Agent Cancel Order
Agent Edit Order
Agent Forgot Password
Agent Return Order
Agent Return Order Refund
Agent Shopper Registration
Forgotten Password
New Account
Order Placed
Organization Assigned
Wish List New Comment
Wish List New Member
Wish List New Post
These email templates are not yet compatible with company name and logo additions:
Items Shipped
Store Cancel Order