Populate images from order metafield file list in delivery confirmation email

Order metafield custom.proof_of_delivery file list- I am able to upload photos to prove a service was completed. Nowhere can I find assistance on how to add the right code to my delivery confirmation email so that out-of-state customers can see the work was done. Any ideas?

Hi @ckemp2525 It may not be as simple as this if you used a list-file-type but try:

In the notification template it should be something like {{ order.metafields.custom.proof_of_delivery | metafield_tag }}

https://shopify.dev/docs/api/liquid/filters/metafield_tag

Code will vary based on how the metafield is setup, for a list you may need to loop over the metafield.

diy REPL, for faster testing liquid in the context of your store than constantly sending test notifications:

setup a duplicate theme with a custom liquid section on the customers orders template or the index, etc.

Setup a test customer and log in on that theme preview.

Make a test order and reference that in liquid to then being working with the metafields syntax you need.

This is the best I have so far, but i really cant figure out the right reference point for these files. All i really know is that custom.proof_of_delivery was the metafield created under the “order” section. I’m using order.metafields.custom.proof_of_delivery in the code and not even sure if that’s a location… but i am super excited right now that i at least got a box with alt text to populate. Now if i could just figure how to get the location of the image correct..

I want to add to my reply that if I upload 2 images to my Proof of Delivery metalfield, I get 2 boxes with alt text in the delivery confirmation email. So at first I thought it was just showing that I set up a table correctly. But now that 2 uploads show 2 boxes in the email, I know that it is in fact reading something properly to know how many metafield images there are. Now why cant i get the image to show?