Ready To Grow? Get Your Free Quote Today
Read More

Adding Metafields to Shopify Order Email Templates Made Easy

Hey there! Want to make your order emails more informative by adding metafields? Follow these simple steps to show custom metafield values in your Shopify default order email templates.

To display an order-level metafield, just insert:

{{ metafields.custom.cancelation_reason }}

In thiis example, this snippet will show your "cancelation_reason" metafield directly in the email.

For product-level and variant-level metafields, use a loop through line items like this:

{% for line in subtotal_line_items %}
 {{ line.product.metafields.custom.product_label }}   — This displays the
product-level metafield!
 {{ line.variant.metafields.custom.item_status }}     — And this one shows the
variant-level metafield!
{% endfor %}

Adding these snippets allows you to show custom information in your order notifications, making your emails more tailored and helpful for your customers. Remember to replace "custom" and metafield names with your actual namespace and keys.

Happy customizing!

up arrow