Created
May 27, 2020 18:18
-
-
Save jfonte/07e02ca6768ecc1a1c106f53f1fbca8a to your computer and use it in GitHub Desktop.
check tags in cart line items for Shopify cart page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign isTagAvailable = false %} | |
{% for item in cart.items %} | |
{% if item.product.tags contains 'poster' or item.product.tags contains 'frames' %} | |
{% assign isTagAvailable = true %} | |
{% endif %} | |
{% endfor %} | |
{% if isTagAvailable %} | |
Add your code here | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment