Number of products displayed in a collection

ArtbyBala
Shopify Partner
28 0 4

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

 

 

Screen Shot 2021-02-04 at 9.40.04 PM.jpg

Replies 2 (2)
oscprofessional
Shopify Partner
11467 1801 2307

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.

Please Like and Accept Solution. Free website audit to grow your business Chat on WhatsApp | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87 | Hire us | Expert Site Speed Optimization | Performance Site Audit | Shopify Private App | Custom Theme Development & Modifications any Shopify Theme | Shopify SEO | Digital Marketing
ArtbyBala
Shopify Partner
28 0 4

Can you give me more info? Do I put this in collections template liquid file?

Thanks!