Shopify themes, liquid, logos, and UX
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?
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024