Customising emails
When you create your ShopWired account, contents for all of your website's transactional emails are pre-configured, but you can customise the style, design, layout, and contents of these emails by following the guidance below.
You can also customise the email address that your emails are sent from (by default, your ShopWired account email address is used) and also the email address(es) that you want to receive any copies of transactional emails to.
Managing email addresses for transactional emails
Managing email addresses for transactional emails
To manage the sending and recipient email addresses for your website's transactional emails:
- Navigate to Settings > Email addresses
- Choose whether to specify one email address for all transactional emails or different email addresses for each notification:
- Single email address
- Select
no
for the Configure separate email addresses for each transactional email setting - Add the desired email address in the Sender and recipient email address field
- Multiple email addresses
- Select
yes
for the Configure separate email addresses for each transactional email setting - Select
edit
for the transactional email you want to update - Enter the desired email address in the Sender email address field
- To change the recipient email address for copies you receive of your website's transactional emails:
- Follow the instructions above to set the sending email address
- For each email where the recipient is listed as CUSTOMER, a copy will not automatically be sent to you unless you use the CC email address or BCC email address settings to add your email address
- You can specify multiple email addresses by separating each email address with a comma
Using a sending email address from a public email address provider
Using a sending email address from a public email address provider
If you use a like Hotmail or Gmail as your sending email address because you do not have access to configure DNS records on the domain your website's emails will actually be sent from no-reply@ecommerceemail.co
.
It is strongly recommended to use an email address on your own domain name, complete email verification, and configure your sending email addresses accordingly.
Customising emails
Customising emails
HTML and plain text
By default, ShopWired sends a transactional email in two forms, and . Most email recipients will view an email in HTML, the plain text version of the email is sent as a backup.
If you prefer not to send emails in HTML format, and only send the plain text version, you can disable the HTML version of your transactional emails:
- To disable the HTML version for your website emails, navigate to Settings > Emails and deselect the
enable HTML for website emails
option - To disable the HTML version of your order status emails, navigate to Orders > Order status and deselect the
enable HTML for order status emails
setting
HTML header and footer
When sending emails with an HTML version, your ShopWired account's HTML email header & footer is used to create the email template. Read more about the HTML header and footer.
Customising emails
To customise the contents of your emails:
- Navigate to Settings > Emails, locate the email you want to edit, and select the edit option
- To customise the contents of an order status email, navigate to Orders > Order status, locate the order status, and select the
edit email
option
- You can edit the subject of the email that is sent using the Email subject setting
- You cannot use Twig / dynamic content in the email subject setting
- Use the HTML content and Plain text content tabs to edit the contents of each email
- Ensure that you apply the same or similar edits to both versions of the email
- Use
preview
option to view how the email looks with your edits applied- ShopWired uses to render the email preview
- If the preview fails to load, it's likely caused by a
Use of Twig
Emails render dynamic content using so most emails will contain at least one Twig variable. For example, the order confirmation email uses the to display information about the order such as the order reference, customer's name, and the to display information about the products in the order.
Twig and special variables
Twig and special variables
Each email renders dynamic content by using . You can use Twig objects and variables to output certain information about the event that the email is being sent in response to.
The table below lists the Twig objects that each email has access to along with any special Twig variables that are only available on the emails and not a standard part of the Twig object.
Email name | Twig object | Special variables / notes |
---|---|---|
Abandoned basket (initial) | Order, Order product |
order.abandoned_basket_url returns the URL that the visitor can use to recover their basket and make payment |
Abandoned basket (follow up) | Order, Order product |
order.abandoned_basket_url returns the URL that the visitor can use to recover their basket and make payment |
Contact form | name , email , phone , message |
|
Custom form | Refer to the guidance on custom forms | |
Customer account creation | Customer | customer_name returns the name of the customercustomer_email returns the email address of the customer |
Customer forgotten password | Customer | customer_name returns the name of the customer, customer_email returns the email address of the customer, password_reset_url returns a one-time use URL to login to the customer account, customer_password to return a randomly generated new password (use of this variable is deprecated) |
Digital download confirmation | Order | order.digital_files array returns the digital files for each digital product |
Gift card | Customer | gift_voucher_amount returns the amount of the gift card, gift_voucher_code returns the gift card code |
Order confirmation | Order | |
Order confirmation (pre-orders) | Order | |
Order failed | Order | Not all variables are available |
Order offline confirmation | Order | instructions returns |
Order status change | Order | |
Platform checkout referral email | Order | |
Product question answered | Product | product_url returns the URL of the product, answer returns the product question's answer |
Product question asked | Product | product_url returns the URL of the product |
Quote created | Order | order.pay_quote_url returns the URL used to pay for the quote |
Quote paid | Order | |
Referral email | Product | message returns the referring visitor's message |
Stock alert | N/A | Refer to the guidance on stock alerts |
Stock notification | N/A | products returns an array of products back in stock products |
Trade account application | Customer | activation_url returns a URL that you can use to activate the trade account (only available on your copy of the email), customer_company returns the company name, customer_name returns the name of the customer, customer_email returns the email address of the customer |
Trade account activated | Customer | customer_company returns the company name, customer_name returns the name of the customer, customer_email returns the email address of the customer |
Trade account created | Customer | customer_company returns the company name, customer_name returns the name of the customer, customer_email returns the email address of the customer |
Trade forgotten password | Customer | customer_company returns the company name, customer_name returns the name of the customer, customer_email returns the email address of the customer, password_reset_url returns a one-time use URL to login to the customer account, customer_password to return a randomly generated new password (use of this variable is deprecated) |
User account creation | N/A | company returns the company name of your ShopWired account, email_address returns the email address of the user account, password returns the for the user account |
Preventing an email from being sent
Preventing an email from being sent
ShopWired does not provide a dedicated feature to prevent a specific transactional email from being generated and sent to the named recipients. If the email cannot be disabled by removing an app or changing a setting within your account, use the workaround suggested below.
To prevent an email from being sent, you can "break" the email's generation by deliberately introducing a :
- Navigate to customise the email's contents
- At the top of the code editor enter
{%
, as shown in the example below: - Select
save changes
- Select the
preview
option and a new window should appear with the error messageCould not render the email. Please check the content and try again
Perform the necessary action on your website or ShopWired account that would normally trigger the email to ensure that it is not being received.