Use Shopify’s Packing Slip to Print Gift Messages 🏷️

Please note: Shopify’s packing slip is not able to add message details added to the “Additional Details” section of an order in Shopify. If you have configured Giftship to add your messages details on the “Cart” page, you will need to use an alternative solution found in the article on printing gift messages.

This tutorial applies to stores who utilize the below pictured setting in Giftship: (Apps -> Giftship -> Gift Message -> Message Options)

When using the “Product Pages” option for your gift message, the message details come through the order as “line item properties”, associated with each product in your order. In order to display this information, please follow the below steps:

  1. Navigate to your packing slip template in Shopify, by going to Shopify Admin -> Settings -> Shipping & Delivery -> Packing Slip Template -> Edit.
  1. Copy the below snippet of code to your clipboard:
{% comment %}
The below code prints out the line item properties for your product
{% endcomment %}

{% for p in line_item.properties %}

    {% if p.first.first == "_" %}
        {% continue %}
    {% endif %}
            
    {{ p.first }}: {{ p.last }}<br/>
            
{% endfor %}        
  1. Find your line item loop, and paste the snippet underneath the other product information:
  1. Click Save. 😀

Can't find the answer in our documentation?
Contact Support