Metafields in Fulfillment Request Notification Emails

Highlighted
New Member
1 0 0

Is it possible to add product variant metafields to my fulfilment request and other notification emails?

I saw here that @factfour was able to get line.product.metafields to appear in their confirmation emails but I'm struggling to replicate for my product variants. 

I've used the MetaFeilds Editor App to add custom fields to my product variants but when I call them in the notification templates nothing appears. 

I've tried {{ variant.metafields.picking-info.picking-SKU }} and {{ line.variant.metafields.picking-info.picking-SKU}} (which seems wrong). Both do not work. The namespace and key are correct. 

Any ideas?

 

 

0 Likes
Highlighted
Shopify Expert
8 0 4

Not sure if you already solved this, I just wanted to confirm that you can indeed access the line item variant metafields:

{%if line.variant.metafields.info.downloadlink%}
    <a href="{{line.variant.metafields.info.downloadlink}}">Download Now!</a>
{%endif%}

This must happen within a line item forloop

Hope this helps,

cheers 

0 Likes