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 section_collection = section.settings.collection %} | |
{% unless cart.item_count == 0 %} | |
{% assign product_collection_qty = 0 %} | |
{% for line_item in cart.items %} | |
{% for line_item_product_collection in line_item.product.collections %} | |
{% if line_item_product_collection.title == section_collection.title %} | |
{% assign product_collection_qty = product_collection_qty | plus: line_item.quantity %} | |
{% if product_collection_qty >= 3 %} | |
{% assign show_gifting_product = true %} | |
{% endif %} |