Hi, thanks for replying.
collection-template-liquid file below:
{% case section.settings.grid %}
{% when ‘2’ or 2 %}
{%- assign grid_item_width = ‘desktop-6 tablet-3 mobile-half’ -%}
{% when ‘3’ or 3 %}
{%- assign grid_item_width = ‘desktop-4 tablet-2 mobile-half’ -%}
{% when ‘4’ or 4 %}
{%- assign grid_item_width = ‘desktop-3 tablet-2 mobile-half’ -%}
{% endcase %}
{%- assign product_limit = section.settings.grid | times: section.settings.rows -%}
{% paginate collection.products by product_limit %}
{{ collection.title }}
{% if collection.image %}
{{ collection.image.src | collection_img_url: '1200x' | img_tag: collection_title }}
{% endif %}
{% if section.settings.sort_by %}
- {% include 'bc-sf-filter-skeleton', width: 3 %}
{% endif %}
{% comment %}{% endcomment %}
{% include 'bc-sf-filter-skeleton', type: 'button' %}
{% comment %} Include placeholder template {% endcomment %}
{% include 'bc-sf-filter-tree-placeholder' %}
{% assign products-per-row = section.settings.products-per-row %}
{% for product in collection.products %}
{% include 'product-listing' %}
{% endfor %}
{% endpaginate %}
{% schema %}
{
“name”: “Collection”,
“max_blocks”:4,
“settings”: [
{
“type”: “select”,
“id”: “grid”,
“label”: “Products per row”,
“default”: “4”,
“options”: [
{
“value”: “2”,
“label”: “2”
},
{
“value”: “3”,
“label”: “3”
},
{
“value”: “4”,
“label”: “4”
}
]
},
{
“type”: “select”,
“id”: “rows”,
“label”: “Rows”,
“default”: “2”,
“options”: [
{
“value”: “1”,
“label”: “1”
},
{
“value”: “2”,
“label”: “2”
},
{
“value”: “3”,
“label”: “3”
},
{
“value”: “4”,
“label”: “4”
},
{
“value”: “5”,
“label”: “5”
},
{
“value”: “6”,
“label”: “6”
},
{
“value”: “7”,
“label”: “7”
},
{
“value”: “8”,
“label”: “8”
},
{
“value”: “9”,
“label”: “9”
},
{
“value”: “10”,
“label”: “10”
}
]
},
{
“type”: “checkbox”,
“id”: “sort_by”,
“label”: “Show sort by”,
“default”: true
},
{
“type”: “paragraph”,
“content”: “Your customers can filter collections using tags that you have added to your products. See our setup instructions for these filters.”
},
{
“type”: “text”,
“id”: “filter-1-title”,
“label”: “Filter 1 title”,
“default”: “Filter by X”
},
{
“type”: “textarea”,
“id”: “sort_a”,
“label”: “Filter 1 tags”,
“info”: “Comma separated”
},
{
“type”: “text”,
“id”: “filter-2-title”,
“label”: “Filter 2 title”,
“default”: “Filter by Y”
},
{
“type”: “textarea”,
“id”: “sort_b”,
“label”: “Filter 2 tags”,
“info”: “Comma separated”
},
{
“type”: “text”,
“id”: “filter-3-title”,
“label”: “Filter 3 title”,
“default”: “Filter by Z”
},
{
“type”: “textarea”,
“id”: “sort_c”,
“label”: “Filter 3 tags”,
“info”: “Comma separated”
}
],
“blocks”:[
{
“type”:“menu”,
“name”:“Menu”,
“settings”:[
{
“type”: “link_list”,
“id”: “side_nav”,
“label”: “Sidebar menu”
},
{
“type”: “text”,
“id”: “title”,
“label”: “Menu title”,
“default”: “Explore”
}
]
},
{
“type”:“vendor_list”,
“name”:“Vendor list”,
“limit”: 1,
“settings”:[
{
“type”: “text”,
“id”: “shop_by_designer_title”,
“label”: “Vendor list title”,
“default”: “Shop by Designer”
}
]
}
]
}
{% endschema %}