What's your biggest current challenge? Have your say in Community Polls along the right column.

Add custom text to packing slip

Add custom text to packing slip

MsScarlet
Tourist
8 1 2

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

 

<label for="message" class="form__label">Your Giftcard message:</label>
<div class="field">
<textarea id="message" class="text-area field__input" placeholder="Message" name="properties[Message]"form="product-form-{{ section.id }}"></textarea>
</div>

 

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

 

Thanks

Replies 3 (3)

namphan
Shopify Partner
2068 273 306

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 != '_' -%}
                <span class="line-item-description-line">
                  {{ property.first }}:{%- if property.last contains '/uploads/' -%}{{ property.last | split: '/' | last }}{%- else -%}{{ property.last }}{%- endif -%}
                </span>
              {%- break -%}
              {%- endif -%}
            {%- endfor -%}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
MsScarlet
Tourist
8 1 2

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

namphan
Shopify Partner
2068 273 306

Hi @MsScarlet,

Is the message displayed on the order page?

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

 

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com