{% assign cart_message = 'Custom Cart Message displayed in Cart/Quick Cart section' %}
{% assign cart_tire = 'false' %}
{% if cart_tire == "true" %}
{{ cart_message }}
{% endif %}
{% for item in items %}
{% unless item.properties._bundle == 'component' %}
{% assign item_quantities = '' %}
{{price | money }}
{% assign discount_amount = price | divided_by: original | times: -100 | plus: 100 | round %}
{% assign discount_threshold = 10 %}
{% if cart_tire == "true" %}
{% if discount_amount != empty %} {% if price != original %} {{ original |money }} -{{ discount_amount }} % {% endif %}{% endif %}
{% endif %}
{% endunless %}
{% else %}
Your cart is empty
{% endfor %}
{% assign offers = offers.eligible %}
{% for offer in offers %}
{% assign offerIndex = forloop.index0 %}
{% if offer.products.size > 0 and offer.all_in_cart == false %}
{% if offer.display_type == "carousel" %}
{% if offer.prompt != blank %}
{{ offer.prompt | newline_to_br }}
{% endif %}
{% for product in offer.products %}
{% assign productIndex = forloop.index0 %}
{% if product.in_cart %}{% continue %}{% endif %}
{% assign offerTitle = product.title | remove: product.type | split: ' | ' %}
{{ offerTitle[1] }}
{% assign discount_amount = 0 %}
{% if offer.discount %}
{% assign discount_amount = offer.discount | times: 0.01 | times: product.price %}
{% endif %}
{{ product.price | minus: discount_amount | money }}
{% if product.variants.size > 1 %}
{% else %}
{% endif %}
{% endfor %}
{% else %}
{% if offer.prompt != blank %}
{{ offer.prompt | newline_to_br }}
{% endif %}
{% for product in offer.products %}
{% assign productIndex = forloop.index0 %}
{% if product.in_cart %}{% continue %}{% endif %}
{% unless offer.product_selection == 'all' %}
{% if offer.products.size == 1 %}
{% else %}
{% endif %}
{% endunless %}
{% endfor %}
{% endif %}
{% break %}
{% endif %}
{% endfor %}
{% unless items.size == 0 %}
{% endunless %}