I need to add a product safety disclaimer to the packing slip so that if the order includes a specific item or item type, a block of text will be added to the packing slip.
I was thinking something like
{% if line_item.title contains "TEXT" %}
set VARIABLE to 1
{%endif%}
Then after I’ve listed all the items in the order I can check if the variable is 1 or undefined. If it’s 1, add the block of text. Otherwise, ignore.
How can I do this? Thanks