Showing Individual Products on Packing Slip
In order to assist with how you can enable individual products to appear within your packing slips, it is important to provide some context as to the technical behind-the-scenes of how the products appear in your bundle.
Line Item Properties are a system used by Shopify to display customization data entered by the Customer during a transaction.
Bundable uses this same system to display the contents of the Single SKU Bundle in the Order details:
To display this in the Packing slip too, navigate to:
- Admin
- Settings
- Shipping
- Under 'Packing Slips' hit 'Edit'
This is the Packing Slip template, and code changes made here will adjust how the Packing slips functions.
To show the bundle's contents via Line Item properties - use this snippet:
<ul> {% for p in line_item.properties %} <li>{{ p.first }}{% unless p.last == "." %}:{{ p.last }}{% endunless %}</li> {% endfor %} </ul><br>
Somewhere between the
{% for line_item in line_items_in_shipment %}<br>
and {% endfor %}
tags
Individual Product Price
To remove the individual product's prices, find this code snippet in the template:
{% if line_item.variant_title != blank %} <span class="line-item-description-line"> {{ line_item.variant_title }} </span> {% endif %}<br>
And replace this entirely with the code below, via copy/paste:
{% assign is_bundle = false %} {% for property in line_item.properties %} {% if property.first == '_bundle_price' %} {% assign is_bundle = true %} {% endif %} {% endfor %} {% unless is_bundle %} {% if line_item.variant_title != blank %} <span class="line-item-description-line"> {{ line_item.variant_title }} </span> {% endif %} {% endunless %}<br>
Support
The Packing Slip template, where all the below changes can be made, is a part of your Shopify account and your Admin settings.
Please contact the team at Shopify Support for assistance with making any changes to to this if you are not comfortable with code edits:
Because this entails modifying settings in your admin, it is regrettably not something that is within the scope of our Bundable support.