Add custom text to packing slip

I have added a text box using the following Custom Liquid for customers to enter a giftcard message:

Your Giftcard message:

How can I get this text to then appear on the packing slip, under the product information?

Thanks

Hi @MsScarlet ,

Please go to Settings > Shipping and delivery > In the Packing slips section > click Edit and add code here:

{%- for property in line_item.properties -%}
              {%- assign property_first_char = property.first | slice: 0 -%}
              {%- if property.last != blank and property_first_char != '_' -%}
                
                  {{ property.first }}:{%- if property.last contains '/uploads/' -%}{{ property.last | split: '/' | last }}{%- else -%}{{ property.last }}{%- endif -%}
                
              {%- break -%}
              {%- endif -%}
            {%- endfor -%}
1 Like

Unfortunately, nothing pulls through to the packing slip. Have tried this in a few places, and all same result.

Hi @MsScarlet ,

Is the message displayed on the order page?

And you can try adding code at ‘packing slip template’, does it show up?