Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
Hi,
I'm trying to add
product.metafields.custom.weight
to my line item description section in packing template manually.
The goal is to display the weight of a sold item under its name and picture on the slip.
I understand metafields need a loop to be added, tried some of the suggested loops in the forum and it didn't work.
Any suggestions please?
You can show the metafield with this code
{{ product.metafields.custom.weight | metafield_tag }}
Thank you for your reply, but it didn't work.
From what I read it has to be a loop, but can't get the right loop for this one.
Hi Amir212,
It doesn't look like product metafields are supported on packing slips yet, but I've passed on this request to our internal dev team.
Thanks for your feedback!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog