Print Cart Attribute Answers on Packing Slip

Print Cart Attribute Answers on Packing Slip

Drea3
Visitor
1 0 0

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!!

Replies 2 (2)

mjb11
Shopify Partner
1 0 0

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 %}

Brendan-Zuza
Shopify Partner
10 0 3

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

Brendan
onlinegrowthgroup.com.au