A space to discuss online store customization, theme development, and Liquid templating.
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.