Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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
Hey guys!
Maybe someone of you can help me with the below questions about the customization of the packing slip template.
I wanted to add the tracking number of that particular order on the packing slip.
I am trying to add below code to add the tracking number on the packing slip but it is not working
Tracking Number: {{ customer.order.line_item.fulfillment.tracking_number }}
Hi Khalilkur146, Have you solved this problem yet?
I meet the same issue.
Not yet, I tried many solutions but didn't worked. I think it has some kind of restriction for the access of classes in packing slip. I tried the customization for the total of slip and it worked, but this is not working.
Use Shopify Flow to add the tracking number as an order metafield then display the order metafield on the packing slip. This is the only way.
Let me know if you can't get it to work.