@LitCommerce
I now didn’t create the best-selling collection, just don’t know how to do it with all products and they can show just 10 or 15 in the collection.
I will send you my code, and please in which section do I need to make changes when I create that collection?
Add some code maybe or what?
{% render 'collection-sidebar', section: section %}
{% render 'collection-template', section: section %}
{% schema %}
{
“name”: “Product grid”,
“settings”: [
{
“type”: “header”,
“content”: “Filtering and sorting”
},
{
“type”: “checkbox”,
“id”: “enable_sidebar”,
“label”: “Enable filter”,
“default”: true,
“info”: “Allow your customers to filter collections and search results by product availability, price, color, and more. Customize filters”
},
{
“type”: “checkbox”,
“id”: “collapsed”,
“label”: “Collapse filters”,
“default”: true
},
{
“type”: “select”,
“id”: “filter_style”,
“label”: “Filter style”,
“default”: “sidebar”,
“options”: [
{
“value”: “sidebar”,
“label”: “Sidebar”
},
{
“value”: “drawer”,
“label”: “Drawer”
}
]
},
{
“type”: “checkbox”,
“id”: “enable_color_swatches”,
“label”: “Enable color swatches”,
“info”: “View setup instructions”
},
{
“type”: “checkbox”,
“id”: “enable_sort”,
“label”: “Show sort options”,
“default”: true
}
],
“blocks”: [
{
“type”: “collection_description”,
“name”: “Collection description”,
“limit”: 1
},
{
“type”: “product_grid”,
“name”: “Products”,
“settings”: [
{
“type”: “checkbox”,
“id”: “enable_collection_count”,
“label”: “Enable collection count”,
“default”: true
},
{
“type”: “range”,
“id”: “per_row”,
“label”: “Products per row”,
“default”: 4,
“min”: 2,
“max”: 5,
“step”: 1
},
{
“type”: “range”,
“id”: “rows_per_page”,
“label”: “Rows per page”,
“default”: 7,
“min”: 3,
“max”: 20,
“step”: 1
},
{
“type”: “checkbox”,
“id”: “mobile_flush_grid”,
“label”: “Flush grid on mobile”,
“default”: false
}
],
“limit”: 1
},
{
“type”: “subcollections”,
“name”: “Subcollections”,
“settings”: [
{
“type”: “paragraph”,
“content”: “Links to collections from your menu will appear here. Learn more”
},
{
“type”: “range”,
“id”: “subcollections_per_row”,
“label”: “Subcollections per row”,
“default”: 5,
“min”: 2,
“max”: 5,
“step”: 1
}
],
“limit”: 1
}
]
}
{% endschema %}