Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I need to have my required cart attribute answer print on the packing slip. Anyone know how to do that? I was able to code the cart attribute to be required before check out, but I can't seem to get it to print on the packing slip. I can get the name of the attribute to print, but I need the answer to print. Thanks so much for any help!!
Potential duplicate of this one
Per the thread I linked: In your packing slip liquid, you should be able to add the below code replacing 'your-key-name' with ... your key name 🙂
{% for attribute in attributes %}
{% assign key = attribute | first %}
{% if key == 'your-key-name' %}
<div>*{{ attribute | first }}/{{ attribute | last }}</div>
{% endif %}
{% endfor %}
Hey @mjb11 ,
I have followed the above however it doesn't seem to work. Do you know if this still works currently?
Thanks, let me know
Brendan
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025