Content

Content (template) mainly represents email content, for example, the text of an email that is sent to a customer on registration or on successful purchase. The extension can use original text of an email sent by OpenCart or use the customized content. To personalize a content of an email the extension uses shortcodes – a piece of string put into curly braces – something like {full_name} that will evaluate to something like ‘John Smith’. One template can contain different content for different stores or different system languages. So for example, depending on the language of customer’s account email will contain text in that specific language.

Email Manager. Controls
Figure 1. Template controls

Let’s get a closer look at how to customize a template and what controls are available to do it.
‘Load template’ – loads saved template (figure 1)
‘Manage template’ – allows to manage a template and contains following buttons: ‘Delete template’ (only custom templates can be deleted), ‘Save template’, ‘Undo changes’, ‘Redo changes’.
‘Action hook’ – represents unique system identifier for the template.

Using ‘Add store’ button you can add additional content for each store registered in the system. Let’s examine controls of ‘Store’ tab (figure 2)

Email Manager. Store tab
Figure 2. Store tab

‘Remove store’ – removes email content of specific store.
‘Profile’ – sets store level profile mapping for a specific template. It means that specific template can be mapped to specific profile depending on the store from which the email is sent. If you want to apply this option to all the templates – use global store level mapping instead (‘Configuration’ tab).
‘Carbon copy’ – allows you to specify a comma-separated list of CC recipients for the template.
‘Blind carbon copy’ – allows you to specify a comma-separated list of BCC recipients for the template.
‘From (name)’ – defines sender name, such as John Smith. Will override the value of original email. Leave this field blank to use the value from the original email.

Email Manager. Store tab. Part 2
Figure 3. Store tab. Part 2

‘From (email)’ – defines sender email address. Will override the value of original email. Leave this field blank to use the value from the original email (figure 3).
‘Return path’ – defines email address to send a reply to.
‘Attachment’ – allows adding attachments to an email. If system tells that mime type of uploaded file is forbidden make sure that OpenCart configuration allows that mine type (figure 4)

OpenCart mine types configuration
Figure 4. OpenCart settings page

‘Attachments list’ – shows list of all the items currently attached to the template

Using ‘Add language’ button you can add additional content for each language registered in the system. Let’s examine controls of ‘Language’ tab (figure 5)

Email Manager. Language tab
Figure 5. Language tab

‘Remove template language’ – removes email content for a specific language.
‘Profile’ – sets language level profile mapping for a specific template. It means that specific template can be mapped to specific profile depending on the language of customer’s account or front-end language. If you want to apply this option to all the templates – use global language level mapping instead (‘Configuration’ tab).
‘Subject’ – defines a subject for an email. Will override the value of original email. Leave this field blank to use the value from the original email. This field can evaluate shortcodes.
‘Content’ – defines a content of an email. This field can evaluate shortcodes. To use content of original email use shortcode {initial_contents}.’Vitrine’ (‘Button’) combo contains the list of all the corresponding shortcodes. Use them to add the shortcode in one click (figure 6).

Email Manager. Content input field
Figure 6. Content input field

To the begining