Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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
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 -%}
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?