All things Shopify and commerce
I need to be able to show all products in the featured collection block, however, I am unable to get any products past 50 to appear in the featured collection. I am comfortable writing custom .liquid and have tried increasing the :limit for products in the featured collection to 200, in the settings.schema, I have also tried removing the limit all together or setting it to nil. None of this has worked and I am stuck with only 50 products in the collection.
Please advise!
Thanks you
@HarveyFinn Sure, here is the preview environment, i have it set to show 200 products in the homepage featured collection grid, however, it only shows 50.
https://store.mikeshinoda.com/?_ab=0&_fd=0&_sc=1&preview_theme_id=122139410534
Hello there,
From your Shopify admin, go to Online Store > Themes.
Find the theme you want to edit, click the ... button to open the actions menu, and then click Edit code.
In the Sections directory, click collection-template.liquid.
In the code editor, find the following code:
{% paginate collection.products by 9 %} or {% paginate collection.products by limit %}
and changes value limit :- 200
Yes, I do not have collection-template.liquid in my theme sections as I am using the Dawn theme. However, I did increase the main-collection-product-grid.liquid to paginate 200 max products. It's working on collection pages, I see 200 products on those collection pages. However, I still only 50 items on the featured collection section. The liquid code for featured collections is different and does not include the paginate code.
@ZestardTech @HarveyFinn Anyone know how to do this for the simple theme? We need 100 on one of the pages
Hello @SarahMMoore1
The Featured collection displays more than 12 products.
In your Shopify Admin, go to Online Store > Themes > Actions > Edit Code.
Find 'sections > featured-collection.liquid' and search for 'products_to_show'.
Remove this code:
{
"type": "range",
"id": "products_to_show",
"min": 2,
"max": 12,
"step": 1,
"default": 4,
"label": "t:sections.featured-collection.settings.products_to_show.label"
},
Screenshot: Link to Screenshot
and replace it with this code:
{
"type": "range",
"id": "products_to_show",
"min": 2,
"max": 200,
"step": 2,
"default": 4,
"label": "t:sections.featured-collection.settings.products_to_show.label"
},
Screenshot: Link to Screenshot
To adjust the limit, customize as follows:
In your Shopify Admin, go to Online Store > Themes > Customize > Home Page.
Screenshot: Link to Screenshot
Hello @ferd
The Featured collection displays more than 12 products.
In your Shopify Admin, go to Online Store > Themes > Actions > Edit Code.
Find 'sections > featured-collection.liquid' and search for 'products_to_show'.
Remove this code:
{
"type": "range",
"id": "products_to_show",
"min": 2,
"max": 12,
"step": 1,
"default": 4,
"label": "t:sections.featured-collection.settings.products_to_show.label"
},
Screenshot: Link to Screenshot
and replace it with this code:
{
"type": "range",
"id": "products_to_show",
"min": 2,
"max": 200,
"step": 2,
"default": 4,
"label": "t:sections.featured-collection.settings.products_to_show.label"
},
Screenshot: Link to Screenshot
To adjust the limit, customize as follows:
In your Shopify Admin, go to Online Store > Themes > Customize > Home Page.
Screenshot: Link to Screenshot
Sorry I meant for a collection page not the featured page. There isn't anything in our code that says max or paginate - were on 1.0 using the simple theme
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024