A DANGEROUS GAME LOOKBOOK
{{ product.title | split: ' - ' | first }}
{% if product.title contains ' - ' %}{{ product.title | split: ' - ' | last }}
{% endif %}
{% if product.compare_at_price > product.price %}
{{ product.compare_at_price | money | remove: " " | remove: ".00" }}
{% endif %}
{{ product.price | money | remove: " " | remove: ".00" }}
{% for badge in productBadges | where: 'type', 'text' %}
{% assign excluded_collections = badge.excluded_collection | replace: ', ', ',' | replace: ' ,', ',' %}
{% assign collection_to_check = collection.handle %}
{% if excluded_collections contains ',' %}
{% assign excluded_collections = excluded_collections | split: ',' %}
{% endif %}
{% unless excluded_collections contains collection_to_check %}
{% if product.tags contains badge.tag and badge.item != blank %}
{{ badge.item }}
{% endif %}
{% endunless %}
{% endfor %}