Skip to content

Instantly share code, notes, and snippets.

@jfonte
Last active May 27, 2020 21:30
Show Gist options
  • Save jfonte/3238a4b122b8cde02e6f71bc8057a5b7 to your computer and use it in GitHub Desktop.
Save jfonte/3238a4b122b8cde02e6f71bc8057a5b7 to your computer and use it in GitHub Desktop.
filter for tag in Shopify product page
{% assign isTagDeposit = false %}
{% for tag in product.tags %}
{% if tag contains 'DEPOSIT' %}
{% assign isTagDeposit = true %}
{% break %}
{% endif %}
{% endfor %}
{% if isTagDeposit == false %}
{% include 'cross-sell' %}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment