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 }}
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024