Bundles grouped view email notification template updates
As of Dec 6, 2024, orders that contain bundles now display as a nested group of line items in many of your email templates.
Any notification templates that use the default template have automatically updated to display the grouped view for product bundles. If you've customized any of your email notifcation templates before Dec 6, 2024, then your notification templates aren't updated. To update your notification templates to the bundles view, you can use the following methods:
- For all notifications in the Settings > Notifications section, you can use either of the following methods:
- Back up your customizations, revert the templates, and then re-apply your customizations.
- Update your current customizations by editing the code to add the bundles component Liquid object to your templates.
- For abandoned checkout automations with Shopify Email, you can edit the existing templates in your automations to revert them.
On this page
- Considerations for updating customized email templates
- Before and after the grouped view changes
- List of updated email notifications for product bundles
- Revert customized notification templates
- Edit the code for your customized email templates
- Update Abandoned cart or Abandoned checkout emails by editing the workflow
- Update Abandoned Cart or Abandoned checkout emails from the marketing automation summary page
Considerations for updating customized email templates
Review the following considerations before making any changes to your email notification templates:
- The notification templates in the Settings > Notifications section of your Shopify admin contain Liquid, Shopify's templating language, HTML, and CSS. Edit the code for a notification template only if you know HTML and CSS, and have a basic understanding of Liquid.
- Saving changes to your notification templates overrides the previous template code. You can revert the template back to default, but if you do revert the template, then your previous customizations to the template code are lost and can't be recovered.
- If you want to update your templates but don't have experience editing the notification template code, then you might be able to get assistance:
- Contact Shopify Support. Learn more about the Shopify Design Policy.
- Hire a Shopify Partner.
Before and after the grouped view changes
Before updating your email notification templates, product bundles are display as individual line items:
After updating your email notification templates, product bundles display in a nested group of line items:
List of updated email notifications for product bundles
The following notification templates display either a grouped view, or a flat view for product bundles.
Customer notifications
Notification template | Admin location | Display type |
---|---|---|
Order confirmation | Order processing | Bundles display as a nested group. |
Order invoice | Order exceptions | Bundles display as a nested group. |
Pending payment error | Payments | Bundles display as a nested group. |
Pending payment success | Payments | Bundles display as a nested group. |
POS email to customer | Point of sale | Bundles display as a nested group. |
POS and mobile receipt | Point of sale | Bundles display as a nested group. |
Return created | Returns | Each product in a bundle displays as separate item. |
Return request received | Returns | Each product in a bundle displays as separate item. |
Return request approved | Returns | Each product in a bundle displays as separate item. |
Return request declined | Returns | Each product in a bundle displays as separate item. |
Staff notifications
Notification template | Display type |
---|---|
New order | Bundles display as a nested group. |
New return request | Each product in a bundle displays as separate item. |
Sales attribution edited | Each product in a bundle displays as separate item. |
New draft order | Bundles display as a nested group. |
Abandoned checkout (in Shopify Email) | Bundles display as a nested group. |
Revert customized notification templates
To update customized notification templates in the Settings > Notifications section of your Shopify admin, you can manually back up any customizations to the email template, revert the template back to default, and then re-apply your customizations.
Steps:
Desktop
From your Shopify admin, go to Settings > Notifications.
Click Customer notifications or Staff notifications.
Click the notification that you want to update.
Click Edit code.
Back up your existing customizations by highlighting the customizations in the template that you want to keep, copying the code, and saving it somewhere safe, such as a text file.
Click Revert to default. After you revert, your customizations can't be recovered, so ensure that you've safely backed up your changes.
In the dialog, click Revert changes to confirm.
Re-apply your customizations to the updated template.
Click Save.
iPhone
From the Shopify app, tap the … button.
Tap Settings > Notifications.
Tap Customer notifications or Staff notifications.
Tap the notification that you want to update.
Tap the
</>
button to edit the template code.Back up your existing customizations by highlighting the customizations in the template that you want to keep, copying the code, and saving it somewhere safe, such as a text file.
Tap Revert to default. After you revert, your customizations can't be recovered, so ensure that you've safely backed up your changes.
In the dialog, tap Revert changes to confirm.
Re-apply your customizations to the updated template.
Tap Save.
Android
From the Shopify app, tap the ☰ button.
Tap Settings > Notifications.
Tap Customer notifications or Staff notifications.
Tap the notification that you want to update.
Tap the
</>
button to edit the template code.Back up your existing customizations by highlighting the customizations in the template that you want to keep, copying the code, and saving it somewhere safe, such as a text file.
Tap Revert to default. After you revert, your customizations can't be recovered, so ensure that you've safely backed up your changes.
In the dialog, tap Revert changes to confirm.
Re-apply your customizations to the updated template.
Tap ✓.
Edit the code for your customized email templates
If you've customized the code for your email templates, then you can manually update the code to support the grouped view for product bundles. The default template code differs between templates. To update customized notification templates in the Settings > Notifications section of your Shopify admin, you can follow the instructions for each template that you need to edit.
Update order email notifications
Follow these steps to update your customized templates for the following order email notifications:
- Order confirmation
- New order email
- Order invoice
- Pending payment success
- Pending payment error
- POS and mobile receipt
Steps:
Desktop
From your Shopify admin, go to Settings > Notifications.
Click Customer notifications or Staff notifications.
Click the notification that you want to update.
Click Edit code.
Back up your existing customizations by highlighting the customizations in the template that you want to keep, copying the code, and saving it somewhere safe, such as a text file. You can also highlight the entire template, copy it, and save it somewhere safe.
-
Find the line item loop in the template by searching for
subtotal_line_items
. It will look something like this: -
Wrap all of the code inside of the
subtotal_line_items
loop with an if condition by adding{% if line.groups.size == 0 %}
right below the openingsubtotal_line_items
loop, and then close the the if condition by adding a{% endif %}
right above the closing{% endfor %}
loop. -
Your code should look something like this:
-
Paste the following code after below the closing
{% endfor %}
tag of thesubtotal_line_items
line item loop: Click Save.
Update draft order and abandoned checkout email notifications
Follow these steps to update your customized templates for the following email notifications:
- New draft order
- Abandoned cart
- Draft order invoice
- POS email to customer
Steps:
Desktop
From your Shopify admin, go to Settings > Notifications.
Click Customer notifications or Staff notifications.
Click the notification that you want to update.
Click Edit code.
Back up your existing customizations by highlighting the customizations in the template that you want to keep, copying the code, and saving it somewhere safe, such as a text file.
-
Find the line item loop in the template by searching for
subtotal_line_items
. It will look something like this: -
Paste the following code right after the opening
{% for line in subtotal_line_items %}
loop: -
Find the block that renders a product image. It should look something like this:
-
Modify the
order-list__image-cell
class by wrapping it in an{% if expand_bundles and line.bundle_parent? %}
if condition, and adding an alternate class. This changes the image template so that if the{% assign expand_bundles = true %}
variable is true, then the image class changes fromorder-list__parent-image-cell
toorder-list__image-cell
. Your template code should look like this: -
Find the code that renders the variant title. It should look something like this:
-
To hide the variant title for the product bundle, add
and line.bundle_parent? == false
to the{% if line.variant.title != 'Default Title' %}
if condition, and then add an elsif condition. It should look like this: -
Optional: Find the code that renders the price. It should have the
order-list__price-cell
class. The Abandoned cart email notification doesn’t have this, but Draft orders notification templates. It should look something like this: -
Add an if statement and additional class for the price to update the price for the main bundle. It should look like something like this:
-
Search for either
flat view
orPart of:
code in a{% for group in line.groups %}
for loop. Old email templates might not have this code. -
Replace the entire
{% for group in line.groups %}
loop with the following code: Click Save.
Update Abandoned cart or Abandoned checkout emails by editing the workflow
If you set up abandoned checkout automations, then you can update your abandoned checkout email to display grouped views of product bundles by editing your existing Recover abandoned checkout email template.
Steps:
Desktop
From your Shopify admin, go to Marketing > Automations.
Click on the marketing flow that you want to edit.
Click Edit.
Click Turn off automation.
In the dialog, click Turn off.
Click Edit.
In the flow automation, click Send Marketing Email.
Click Edit email.
In the Editing this email will revert it to draft dialog, click Continue.
-
Make any of the following edits to your email template:
- Add a subject to the Subject line
- Add any additional text or sections to your template
Optional: To review your email, click Send test and enter the email address that you want receive the email at. In your inbox, open the email and review it.
Click Set to active.
Click Turn on automation.
iPhone
From the Shopify app, tap the … button.
Tap Settings > Marketing.
Tap Automations.
Next to the marketing flow that you want to edit, tap … > Turn off.
In the dialog, tap Turn off.
Tap the marketing flow.
Next to the marketing email, tap … > Edit.
In the Editing this email will revert it to draft dialog, tap Continue.
Add a subject to the Subject line, and then make any additional text or sections to your template.
Optional: To review your email, tap Send test and enter the email address that you want receive the email at. In your inbox, open the email and review it.
Tap Set to active.
Tap ⋮ > Turn on automation.
Android
From the Shopify app, tap the ☰ button.
Tap Settings > Marketing.
Tap Automations.
Next to the marketing flow that you want to edit, tap … > Turn off.
In the dialog, tap Turn off.
Tap the marketing flow.
Next to the marketing email, tap … > Edit.
In the Editing this email will revert it to draft dialog, tap Continue.
Add a subject to the Subject line, and then make any additional text or sections to your template.
Optional: To review your email, tap Send test and enter the email address that you want receive the email at. In your inbox, open the email and review it.
Tap Set to active.
Tap ⋮ > Turn on automation.
Update Abandoned Cart or Abandoned checkout emails from the marketing automation summary page
If you set up abandoned checkout automations, then you can update your abandoned checkout email to display grouped views of product bundles by editing the Abandoned cart or Abandoned checkout section.
Steps:
Desktop
From your Shopify admin, go to Marketing > Automations.
Click on the marketing flow that you want to edit.
In the Activity name section, click the thumbnail of the template that you want to edit.
Click Edit.
In the Editing this email will revert it to draft dialog, click Continue.
Click the trash icon next to the Abandoned checkout or Abandoned cart section of the template.
Click + Add section.
Click either the Abandoned cart or Abandoned checkout section.
Optional: To review your email, tap Send test and enter the email address that you want receive the email at. In your inbox, open the email and review it.
Click Set to active.
iPhone
From the Shopify app, tap the … button.
Tap Settings > Marketing.
Tap Automations.
Next to the marketing flow that you want to edit, tap … > Turn off.
Tap the marketing flow.
Tap the thumbnail of the template that you want to edit.
Tap Edit.
In the Editing this email will revert it to draft dialog, tap Continue.
Swipe up to edit the template.
Long press on the Abandoned checkout or Abandoned cart section, and then tap the trash can icon.
Tap the + button and then tap either Abandoned cart or Abandoned checkout section.
Optional: To review your email, tap Send test and enter the email address that you want receive the email at. In your inbox, open the email and review it.
Tap Set to active.
Android
From the Shopify app, tap the ☰ button.
Tap Settings > Marketing.
Tap Automations.
Next to the marketing flow that you want to edit, tap … > Turn off.
Tap the marketing flow.
Tap the thumbnail of the template that you want to edit.
Tap Edit.
In the Editing this email will revert it to draft dialog, tap Continue.
Swipe up to edit the template.
Long press on the Abandoned checkout or Abandoned cart section, and then tap the trash can icon.
Tap the + button and then tap either Abandoned cart or Abandoned checkout section.
Optional: To review your email, tap Send test and enter the email address that you want receive the email at. In your inbox, open the email and review it.
Tap Set to active.