I’ve done some research though couldn’t find a simple explanation of what code snippet to use to limit the products in a collection.
I appreciate that a “forloop” code might do the trick, though I couldn’t find any clear indication of where and how to implement it.
Hope you can help!
This is my current collection code:
{
"sections": {
"product-grid": {
"type": "main-collection-product-grid",
"settings": {
"products_per_page": 40,
"image_ratio": "adapt",
"show_secondary_image": false,
"add_image_padding": false,
"show_image_outline": false,
"show_vendor": false,
"show_rating": false,
"enable_filtering": true,
"enable_sorting": true,
"collapse_on_larger_devices": false
}
}
},
"order": [
"product-grid"
]
}