Packing slip customizations

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.

Steps

  1. From your Shopify admin, go to Settings > Shipping and delivery

  2. In the Packing slips section, click Edit

  3. Find the following code that references your line_items:

    {{ line_item.variant_title }}

  4. 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 %}

  5. 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 %}


  6. 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 %}


  7. Save and Preview template

Did this answer your question?