Closed duzins closed 9 years ago
Can I ask what is the benefit of limiting the amount of products shown in this collection? Say if you had 12 products in that collection and you're only showing the first 9, is there any need to keep those last three products in that collection?
Currently there is not way to do this, but if you could let me know your use case we might be able to think of a way to achieve what you want.
My client adds a few books at a time, and we have them shown in newest first order in this smart collection. Since she doesn't want to remove books from the collection after a set time, she'd like them to fall off as new books are added.
I've done a good bit of searching for this, and there are several threads requesting this as a basic Shopify feature, but it doesn't look like something they're keen to do anytime soon. Thx.
That sounds fair enough. I'm not sure it would make it into the core theme but what you could do is this:
Theme/snippets/collection-page.liquid line 74. Replace this:
{% include 'products-list' %}
With this:
{% if collection.title == "New Arrivals" %}
{% include 'products-list' with 'limit' %}
{% else %}
{% include 'products-list' %}
{% endif %}
The limit is taken from the homepage products limit in the theme settings.
Discalimer: I'm sick and doing this from my phone so I assume that Im giving you the correct information.
@duzins did this work for you? If so I'll close this issue.
Is there a way to limit the number of products shown in a specific collection? I have a 'New Arrivals' collection, and I am just using the normal settings in the collection to sort by newest first. I'd like to show only 9 on that collection page.
Suggestions?