Hide bundle items from customer's Shipping Confirmation Email

Note that if you have Add bundle items as separate line items to orders? app setting disabled, then this help article is not applicable to you.

By default, the dummy bundle product and its bundle items are individually displayed on the customer’s Shipping Confirmation Email (this is sent when you Fulfill items on Shopify orders).
Merchants may choose to hide the bundle items from this email template for operational purposes.

From your Shopify admin, go to Settings > Notifications.
Under Customers notifications, find the Shipping section.
Click on Shipping confirmation to edit the email template.
Search for the below snippet in your email template:
<table class="row"> {% for line in fulfillment.fulfillment_line_items %} <tr class="order-list__item"> <td class="order-list__item__cell">
And replace with:
<table class="row"> {% for line in fulfillment.fulfillment_line_items %} <!-- BUNDLE KIT --> {% assign line_item_is_a_bundle_item = false %} {% if line.line_item.discount_allocations %} {% for discount_allocation in line.line_item.discount_allocations %} {% if discount_allocation.discount_application.title contains 'Bundle Kit:' %} {% assign line_item_is_a_bundle_item = true %} {% endif %} {% endfor %} {% endif %} {% if line_item_is_a_bundle_item == true %} {% continue %} {% endif %} <!-- BUNDLE KIT --> <tr class="order-list__item"> <td class="order-list__item__cell">
Then click Save.
Once saved, bundle items shall be hidden from customer's Shipping Confirmation Email.