Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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 🙂
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 🙂
The loop after "<td class="order-list__product-description-cell">"
{% 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 }}
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025