Add a snippet to a template
1
Open notifications
Go to Notifications.
2
Open a template
Open the template you want to edit, for example Order confirmation, New order, or Order edited.
3
Paste the snippet
Copy the snippet you need from below and paste it into the subject line or the email body.
4
Preview and save
Select Preview to check how the email renders, then select Save.
5
Send a test
From the same screen, send a test email to yourself to check the content with real order data.
Order tags are applied after the order is created, so they aren’t available when the email renders. Don’t branch notification emails on tags. Use line item properties instead.
Snippets
Order has a subscription
Order has a subscription
Shows different content when a line item has a subscription. This matches any order with a subscription, including recurring ones, so keep the message neutral or combine it with the recurring check below. Use it to link to customer accounts, where the customer manages their subscription.
Email body
Recurring subscription order
Recurring subscription order
Shows different content when the order is a recurring one. Recurring orders created by Supercycle carry a To change the subject too, paste this whole snippet, including the detection loop, into Email subject. It’s the same check written with
rental_id line item property. The original checkout order doesn’t.Email body
{%- whitespace control so the subject renders on one line.Email subject
Rental start and end dates
Rental start and end dates
Shows the start and end dates of the line items. It works best when every product has fixed dates on. Add it to Shopify’s default notifications to show the dates when your template doesn’t output line item properties.
Email body
Rental dates in staff notifications
Rental dates in staff notifications
Shows the rental dates for each product in a staff notification such as New order. Place it inside the line item loop, where
line is each line item.Line item loop
Order has a charge
Order has a charge
Shows different content when the order is for a charge created in Supercycle rather than a normal order.
Email body