{% for item in cart.items %}
{% if item.product.handle == 'your-product-handle' %}
Your test Message
{% endif %}
{% endfor %}
Hi! Currently, I have this code in my cart page to show certain messages for products with a certain tag. I am running into a problem where the message will appear multiple times if the cart contains multiple products with the applicable tags.
How do I make sure that the message is only shown ONCE if at least one of the product contains the correct tag? Thank you!