Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Hello
I am creating a collection of Best-Sellers but want to limit the number of products displayed to 15 in that collection. How can I do this without changing all the other collections? I have no products at 0 inventory or price, so the smart collection is basically filtered by 2 tags (for vendor / retail). I am using Canopy Theme.
Thanks!
Bala
Hi.
In the forloop that's outputting that collection, you can put a limit filter to stop the for loop at a certain number.
like ,
<div class="row">
{% for product in collections.best-sellers.products | limit:15 %}
{% include 'product-grid-item' with "all" %}
{% endfor %}
</div>
maybe this will work.
Can you give me more info? Do I put this in collections template liquid file?
Thanks!
User | RANK |
---|---|
42 | |
42 | |
31 | |
9 | |
9 |