Packing slip template not showing order attributes

Hi

We are trying to get a custom order attribute to appear within the packing slip template, but not having any luck:

{{ order.attributes[‘Gift note’] }}

This keeps returning nothing, despite being in the order within the admin. Unclear if we are doing something wrong here, or whether these attributes are not available within the scope of the packing slip template.

Any ideas?

Order attributes are not compatible with Shopify’s default packing slips. Instead, you should use order metafields to include custom data on packing slips.

Hi @Jonathan_Davies first, I would try printing out all the order attributes to see what’s available:

<ul>
  {% for attribute in order.attributes %}
    <li><strong>{{ attribute.first }}:</strong> {{ attribute.last }}</li>
  {% endfor %}
</ul>

If the gift note isn’t showing up in Liquid, it’s likely not accessible in packing slips. You might have better luck using the Order Printer app to customize them.