Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Breaking up multiple metafields in order confirmation

Breaking up multiple metafields in order confirmation

reillyw
New Member
4 0 2

I am a novice HTML coder trying to print an order metafield in the order confirmation email my customers get. I got that down with

 

{% for line in line_items %}
  {{ line.product.metafields.my_fields.event_date }}!
{% endfor %}

 

 

However, if the order contains two items with different respective inputs for each of those metafields, I am wondering how I can include an and or an & between the two metafields printed. I assume there is a way to write an if statement that will make it work, but I just simply don't know how. 

 

Thank you so much in advance. 

Replies 0 (0)