Adding Product Information into Order Confirmation Email

Hi and thanks for reading.

This seems like it should be straightforward but I’m not sure where to start.

I wish to add delivery information to the confirmation email that a customer receives once they place an order.

My products are bulky and the carrier for each one is the manufacturer, so there’s not really a tracking number or anything. To get around this I want to display the estimated lead time (which varies product by product) into the confirmation email:

It will say something like:

Thank you for your order.

We expect your order to arrive [IN X WEEKS]

The X Weeks I am able to add to the product automatically either through a Tag or Collection.

Any help would be greatly appreciated.

Many thanks again

I’ve gotten a bit further

{% for line in line_items %}

  {% for tag in line.product.tags %}
    {{ tag }}
  {% endfor %}

{% endfor %}

seems to return all the tags for a product. However, I only want the one with the string containing “Weeks”

1 Like