I am transitioning over to the new ‘Dawn’ theme and I am having trouble locating the code in order to increase the products per page. I understand there is the option to increase it within the default theme settings; however, this is limited to 24 products. I would be looking to exceed this number.
There are guides within these forums, albeit they are applicable for other themes and the code doesn’t seem to correlate to the code within the Dawn theme. As a side note, the guides from other themes advise to update the “collection-template.liquid” file; however, such a file is not located within the Dawn themes code. I have, therefore, assumed the “main-collection-product-grid liquid” file would be used?
I did have a look at this, however, as aforementioned the referenced file “collection-template.liquid” is not the same as the one within the Dawn theme. I can only assume the “main-collection-product-grid liquid” file should be used?
Also, I am not too adept with code and the code to look out for within that guide is:
{% paginate collection.products by 9 %}
I cannot find that code within any of the theme files?
I have tried playing around with code i would consider similar but i cannot find anything that helps
hi in dawn theme go to customization seect collection page then in product grid change to 24 per collection also for product page select product template and select the options. @branchesofme
Note that 24 is reasonable default for a reason chosen by shopify, watch your bounce rates and conversions when adding weight to a page like this.
If you double the amount of products that’s double the amount of images your customers must download to view the page, double the scrolling , zoom images that get load, double quickview etc etc impacting performance and your bottom line.
Thank you the solution worked for me. However, I had to set the max products to 48 to avoid an error when saving the code change. And then, when visiting the regular product grid editor, I was now able to increase the amount of products shown to 48 per page.
I have Dawn theme too, but my “collection.json” file is missing rows from your screenshot and when I tried to add “products_per_page”: 48 there is an error
Error: Setting ‘products_per_page’ must be a step in the range
Any idea what’s the difference in the template setup?
In my case, to show 50 products, I needed to put these above values to those settings.
In your case of showing 48 products, my guess would be to put those values :
“min”: 8,
“max”: 48,
“step”: 4,
“default”: 16,
The error message “Error: Setting ‘products_per_page’ must be a step in the range” might have been printed because you would have put the value 5 at step and 48 is not a multiple of 5, but 4.
I think you can set other values than those I suggest for min and default, as long it is a multiple of 4.