I want to hide the cart button when there are products with the Pre-order product tag and the Regular product tag in the cart.
This code, we were able to get the tags for all products in the cart.
{% for item in cart.items %}
{% assign carttag = item.product.tags %}
<p>{{ carttag }}</p>
{% endfor %}
However, the following code does not work.
{% if carttag contains 'Preorder' and carttag contains 'Regular' %}
<p>Stop!</p>
{% else %}
<input type="submit" name="checkout">
{% endif %}
How can I handle all looping values as one?