Retrieve content from reference page metafield and put in order email

Retrieve content from reference page metafield and put in order email

peninah
Shopify Partner
2 0 0

I have a page reference metafield, which I am using on product templates to successfully display the page content. But I can't get it to work in order notifications. 

 

Here's what I have:

{% if line.variant.metafields.vparfetty.get_the_look %}
        {{line.variant.metafields.vparfetty.get_the_look.value.content}}
{% endif %}

 

If I remove "value.content" from the end, it works to display the URL. So it's retrieving the correct metafield data, but I can't get to the content. Any thoughts? I've been googling without results...

 

 

Replies 0 (0)