{% if settings.collection_count.size > 0 %} {% assign collection_count = settings.collection_count %} {% else %} {% assign collection_count = 12 %} {% endif %} {% assign collection_on = false %} {% assign sort_on = false %} {% assign page_size_on = false %} {% assign collection_image_on = false %} {% if settings.collection_filter_on == '1' or settings.collection_filter_on == 'on' %} {% assign collection_on = true %} {% endif %} {% if settings.collection_sort_on == '1' or settings.collection_sort_on == 'on' %} {% assign sort_on = true %} {% endif %} {% if settings.collection_page_size_on == '1' or settings.collection_page_size_on == 'on' %} {% assign page_size_on = true %} {% endif %} {% if collection.current_characteristics.size > 0 or price_min or price_max or collection.current_option_values.size > 0 %} {% assign filter_selected = true %} {% endif %} {% if settings.collection_collection_image_on == '1' or settings.collection_collection_image_on == 'on' %} {% unless collection.image.original_url contains 'no_image' or filter.title.size > 0 %} {% assign collection_image_on = true %} {% capture collection_image_classes %}class="relative collection-preview-big m-b-50" style="background-image: url({{ collection.image | image_url: 1500 }});"{% endcapture %} {% endunless %} {% endif %} {% paginate products by collection_count %}
{% endpaginate %}