Gift orders on packing slips
Print gift wrap details and the cart gift note on the packing slip.
Alume is in development. These early guides grow as the theme does.
Alume has two gift features. Gift wrap on the product page saves a message, To, and From on that item. The cart can mark the whole order as a gift. Shopify's packing slip does not print either until you add them to the template.
Turn the cart gift on
- In the theme editor, open Theme settings > Cart.
- Turn on Show "This order is a gift".
- Turn on Show "Hide prices on the packing slip" if you want that choice too.
The order saves Gift, Hide prices, and Gift message under Additional details. Shopify's own packing slip does not show prices. Hide prices is for an invoice or fulfillment app that does. Point that app at the Hide prices attribute.
Gift wrap is separate. It is a block on the product page, and it saves Gift message, To, and From on the line. See Product page.
Add them to the packing slip
This involves editing Liquid code. If you need help, consider hiring a Shopify Partner to customise your packing slip template.
- In your Shopify admin, go to Settings > Shipping and delivery.
- Open the packing slip template. Copy the template somewhere safe before you edit it.
- Inside the loop over items in the shipment, after the line that prints the item title, paste the block below.
If the template already prints line item properties, paste only the add-on lines, and skip the property loop.
{%- for group in line_item.groups -%}
{%- if group.deliverable? -%}
<p>Add-on for: {{ group.title }}</p>
{%- endif -%}
{%- endfor -%}
{%- for property in line_item.properties -%}
{%- assign property_first_char = property.first | slice: 0 -%}
{%- if property.last != blank and property_first_char != '_' -%}
<p>{{ property.first }}: {{ property.last }}</p>
{%- endif -%}
{%- endfor -%}Names that start with an underscore stay hidden. That covers the theme's own wrap marker.
- After the order number, paste the gift note.
{%- if order.attributes['Gift'] == 'Yes' -%}
<p><strong>This order is a gift</strong></p>
{%- assign gift_message = order.attributes['Gift message'] -%}
{%- if gift_message != blank -%}
<p>{{ gift_message | escape | newline_to_br }}</p>
{%- endif -%}
{%- endif -%}Check a real order
The packing slip preview uses sample data, and it may not print order attributes at all. Place a test order with the gift option on. If the note does not appear, remove that second block. The gift details remain on the order under Additional details.
To undo, restore the template you copied.
