How to insert the url of a product metafield (type = file) into an email (fulfillment request email)

How to insert the url of a product metafield (type = file) into an email (fulfillment request email)

alkakduiwi
Visitor
3 0 1

I've tried all of these variatons but I can't generate the correct cdn URL for the file....

 

1.  {{ line.product.metafields.custom.YOURNAMEHERE.value.url | file_url }}
2.  {{ line.product.metafields.custom.YOURNAMEHERE.value.url | img_url:"master" }}
3.  {{ line.product.metafields.custom.YOURNAMEHERE | img_tag }}
4.  {{ line.product.metafields.custom.YOURNAMEHERE | file_url }}
5.  {{ line.product.metafields.custom.YOURNAMEHERE.value | img_url }}
6.  {{ line.product.metafields.custom.YOURNAMEHERE | img_url:"master" }}

 

The 6 attempts above produced the following output (none of these links pull up the jpg file)...

1.  https://cdn.shopify.com/s/files/1/0296/5293/files/?823

2. https://cdn.shopify.com/shopifycloud/shopify/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c2...

3.

 

4.https://cdn.shopify.com/s/files/1/0296/5293/files/gid://shopify/MediaImage/30200828952764?823

5. https://cdn.shopify.com/shopifycloud/shopify/assets/no-image-100-c91dd4bdb56513f2cbf4fc15436ca35e9d4...

6. https://cdn.shopify.com/shopifycloud/shopify/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c2...

 

Replies 0 (0)