Order Printer - if product type equals question

Matthew_Duclos
Visitor
2 0 0

I'm trying to have a bit of text display if any of the products on a draft order include a specific product type. 

I've managed to get it to work per line item, but I'd prefer it only show one line of text at the bottom of the order draft page if any of the items in the draft are a specific product type. 

 

So far, this has worked per line item: 

{% if line_item.product.type == 'tshirts' %} SAMPLE TEXT {% endif %}

 

So how can I get that to display if any of the product.types are a match, separate from the actual line item? 

Replies 0 (0)