Skip to content

Packing slips ​

Show the customer's choices on your packing slips, so the person packing the order sees them. This step is optional and only changes the packing slip template, not your theme.

The snippet shows only the choices checked by the app at checkout. Anything a shopper adds to the cart by other means is not shown.

Add the snippet ​

  1. In your Shopify admin, open Settings → Shipping and delivery.

  2. Under Documents, click Packing Slip.

  3. Search the code for this line (Ctrl+F or Cmd+F):

    liquid
    {% for group in line_item.groups %}
  4. Find the {% endfor %} that closes this loop, about 10 lines below. Paste the snippet below on a new line right after it.

  5. Click Save.

liquid
{% comment %} Dynamic fields: customer choices {% endcomment %}
{% if line_item.groups.size > 0 %}
  {% assign dp_key = '§' | append: line_item.title | append: '|' | append: line_item.variant_title | append: '|' | append: line_item.sku | append: '§' %}
  {% assign dp_seen = dp_seen | append: dp_key | append: '#' %}
  {% assign dp_wanted = dp_seen | split: dp_key | size | minus: 1 %}
  {% assign dp_count = 0 %}
  {% for dp_line in order.line_items %}
    {% assign dp_line_key = '§' | append: dp_line.title | append: '|' | append: dp_line.variant_title | append: '|' | append: dp_line.sku | append: '§' %}
    {% if dp_line.groups.size > 0 and dp_line_key == dp_key %}
      {% assign dp_count = dp_count | plus: 1 %}
      {% if dp_count == dp_wanted %}
        {% for dp_property in dp_line.properties %}
          {% assign dp_first_char = dp_property.first | slice: 0 %}
          {% if dp_property.last != blank and dp_first_char != '_' %}
            <span class="line-item-description-line">
              {{ dp_property.first | escape }}: {{ dp_property.last | escape }}
            </span>
          {% endif %}
        {% endfor %}
      {% endif %}
    {% endif %}
  {% endfor %}
{% endif %}

Check it ​

Click Preview and pick a recent order with a customized product. Each customized product lists the customer's choices below its name. Hidden values (names that start with _) are not shown.

Remove it ​

Open the template again, delete the lines from {% comment %} Dynamic fields to the last {% endif %} of the snippet, then save.