Customizing your Shopify packing slip
You can customize the template of your packing slips to display custom order details. Changing the template allows you to add your own branding and change the look and feel of the packing slip with enhanced product details.
To customize your packing slip:
From your Shopify admin, go to Settings > Shipping and delivery
In the Packing slips section, click Edit
Find the following code that references your line_items:
{{ line_item.variant_title }}
Replace it with the following to hide the variant title on customized line items:
{% unless line_item.variant_title contains 'mczr_' %}
{{ line_item.variant_title }}
{% endunless %}To display customization details under the SKU, find the code below:
{% if line_item.sku != blank %}
<span class="line-item-description-line">
{{ line_item.sku }}
</span>
{% endif %}And add the following code after the {% endif %} and before the </p>:
{% if line_item.properties._mczr_image %}
{%- for property in line_item.properties -%}
{%- assign property_first_char = property.first | slice: 0 -%}
{%- if property.last != blank and property_first_char != '_' -%}
<div class="line-item-description-line product-option">
<dt>{{ property.first }}: </dt>
<dd>
{%- if property.last contains '/uploads/' -%}
<a href="{{ property.last }}" target="_blank">
{{ property.last | split: '/' | last }}
</a>
{%- else -%}
{{ property.last }}
{%- endif -%}
</dd>
</div>
{%- endif -%}
{%- endfor -%}
{% endif %}Save and Preview template