How can we help?

Basil Khan
Written by Basil Khan

Hide bundle contents in customer confirmation emails

Follow the steps below to hide the contents of your bundles in customer emails.

If you would like to hide the contents of a bundle in customer confirmation emails (e.g. in the case of mystery bundles), Follow the steps below:

1. Navigate to the Settings page in Shopify

2. Go to the Notifications section

3. Select the email that has line item contents. In our case, we will use Shipping confirmation

4. In the email contents, look for the following code snippet:

for line in fulfillment.fulfillment_line_items

5. Right after the for loop highlighted above, add the following liquid code snippet:

You can view this code snippet on this Github Gist.

If you are modifying order invoices, make sure to modify line.line_item.discount_allocations to line.discount_allocations for order invoice templates.Once your code snippet has been added, your bundle contents should be removed from notification emails. Add this to any other notification emails that have line-item details.