Custom Metafield in Order comformation email repeating?

Hiya so basically I would like to display my custom Metafields on the Order Comfirmation page so my customers are more informed. I have looked on the forum and tried a few different bits of code but they all keep repeating in the customers email, It repeats by the same amount of different SKU’s that are ordered.

Any help is greatly appricated :slightly_smiling_face:

My Custom Metafields & how I’m attempting to Display them in the email.

[custom.availability]

[Product Title] [Qaunity]
[custom.release_date] / [custom.dispatch_time]
(if product is in stock would like to swap release date for dispatch time)
(Would like results to be 1 once per product and info the the relevent product)

(The result on Customers Order Comfirmation Emails)

(Current Code)

(Example Product from my site to show how the metafields are used)

Any help is greatly appricated :slightly_smiling_face:

hi @AnimeEmporium

The loop after “”

{% for line in line_items %} {% endfor %}

is redundant,because it is insisde the top loop

{% for line in subtotal_line_items %}{% endfor %}

,therefore custom meta fields will be displayed repeatedly.

Remove your loop

{% for line in line_items %} {/%endfor%}

and just use this code

{{ line.product.metafields.custom.release_date }}