Have your say in Community Polls: What was/is your greatest motivation to start your own business?

How to display metafields information in order confirmation email

How to display metafields information in order confirmation email

chefs
Visitor
2 0 0

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

Screenshot 2021-04-27 at 18.45.55.png

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 

Replies 2 (2)

alvinkonda
Shopify Partner
51 6 14

Hi,

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

https://community.shopify.com/c/Shopify-APIs-SDKs/Insert-metafields-in-order-email-notifications/td-...

KondaSoft.com - Awesome Shopify Themes To WOW Your Customers

fnd
Shopify Partner
10 0 0

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!