Overview
When customers order bundles, the individual items appear as separate line items on orders. You may want to show which bundle each item belongs to for:
Packing slips — Help fulfillment staff identify bundle items
Order confirmations — Show customers their bundle structure
Shipping notifications — Clarify what's in the shipment
MOD Bundles uses Shopify's native Bundles API, which stores bundle membership data in a groups property on each line item. You can access this in Liquid templates.
How Bundle Data Is Stored
When a bundle order is placed, Shopify automatically adds bundle information to each component line item:
Property | Description |
| Array of bundles this item belongs to |
| The bundle product's name |
| The bundle's unique identifier |
This is Shopify's native bundle structure—no special configuration needed.
Adding Bundle Info to Packing Slips
Step 1: Open the Packing Slip Template
Go to Shopify Admin → Settings → Shipping and delivery
Scroll to Packing slips
Click Edit on the packing slip template
Step 2: Find the Line Item Loop
Look for code that loops through line items. It typically looks like:
{% for line_item in line_items_in_shipment %}Within this loop, find where the item details are displayed. Look for:
{% if line_item.variant_title != blank %} <span class="line-item-description-line"> ###{{ line_item.variant_title }} </span>{% endif %}Step 3: Add the Bundle Info Code
After the variant title section (after the {% endif %}), add:
{% for group in line_item.groups %} <span class="line-item-description-line"> Part of: ###{{ group.title }} </span>{% endfor %}Step 4: Save and Test
Click Save
Open an order containing a bundle
Click Print packing slip to preview
Verify bundle names appear under component items
Full Example
Here's what your packing slip template might look like with bundle info added:
{% for line_item in line_items_in_shipment %} <div class="flex-line-item"> <div class="flex-line-item-description"> <p> <span class="line-item-description-line"> <strong>###{{ line_item.title }}</strong> </span> {% if line_item.variant_title != blank %} <span class="line-item-description-line"> ###{{ line_item.variant_title }} </span> {% endif %} </p> {% for group in line_item.groups %} <span class="line-item-description-line"> Part of: ###{{ group.title }} </span> {% endfor %} </div> <div class="flex-line-item-quantity"> ###{{ line_item.quantity }} </div> </div>{% endfor %}Customizing the Display
Different Label Text
Change "Part of:" to match your brand voice:
{% for group in line_item.groups %} <span class="line-item-description-line"> Bundle: ###{{ group.title }} </span>{% endfor %}Or:
{% for group in line_item.groups %} <span class="line-item-description-line"> Included in "###{{ group.title }}" </span>{% endfor %}Add Visual Styling
Make bundle labels stand out:
{% for group in line_item.groups %} <span class="line-item-description-line" style="color: #666; font-style: italic;"> ↳ Part of: ###{{ group.title }} </span>{% endfor %}Include Bundle ID (for internal use)
{% for group in line_item.groups %} <span class="line-item-description-line"> Part of: ###{{ group.title }} (ID: ###{{ group.id }}) </span>{% endfor %}Adding to Order Confirmation Emails
You can use the same approach in order notification emails.
Step 1: Open Email Templates
Go to Shopify Admin → Settings → Notifications
Click on the notification you want to edit (e.g., Order confirmation)
Step 2: Find and Modify
Look for the line items section and add the same line_item.groups code:
{% for group in line_item.groups %} <p style="color: #999; margin: 0;"> Part of: ###{{ group.title }} </p>{% endfor %}Where This Works
Template | Works? | Location |
Packing slips | Yes | Settings → Shipping and delivery |
Order confirmation | Yes | Settings → Notifications |
Shipping confirmation | Yes | Settings → Notifications |
Shipping update | Yes | Settings → Notifications |
Draft order invoice | Yes | Settings → Notifications |
What You'll See
Before (without bundle info)
Blue T-Shirt - MediumBlack T-Shirt - LargeWhite T-Shirt - Small
After (with bundle info)
Blue T-Shirt - Medium Part of: Summer Essentials BundleBlack T-Shirt - Large Part of: Summer Essentials BundleWhite T-Shirt - Small Part of: Summer Essentials Bundle
Troubleshooting
Bundle info not appearing
Check the order is a bundle order — Regular product orders won't have group data
Verify the code placement — Must be inside the line items loop
Test with a new order — Changes only apply to packing slips generated after saving
Wrong class name
If your theme uses different CSS classes, adapt the code:
{% for group in line_item.groups %} <span class="your-custom-class"> Part of: ###{{ group.title }} </span>{% endfor %}Check your existing template for the class names used.
Groups array is empty
If line_item.groups is empty:
The item may not be part of a bundle
The order may have been placed before using MOD Bundles
There may be a sync issue—contact support if persists
Additional Resources
For more advanced customizations, refer to Shopify's official documentation:
