How to display metafields information in order confirmation email

Hi Guys

We are building recipe boxes website, we are stuck on one little feature i hope it is possible i have hunted many apps but literally. not worked out,

We have recipe box as product,

We can add custom information. in meta fields, where we have added method card details ( not visible to frontend) and link to access purchased method card

but how we can show stored information in custom metafield on confirmation email right under the product info showing in confirmation email.

Looking forward your kind help regarding this

Best regards

Hi,

Check this thread, it seems that they are providing the solution

https://community.shopify.com/topic/148358

Hey there! In order to Display the Metafields you need to do the following:

{{ metafields.custom.cancelation_reason  }}         <--- Order Level Metafield

{% for line in subtotal_line_items %} 

  {{ line.product.metafields.custom.product_label }} <---- Product!
  {{ line.variant.metafields.custom.item_status }}   <---- Variant

{% endfor %}

Hope this helps!