Number of products displayed in a collection

ArtbyBala
Tourist
23 0 1

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

0 Likes

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.

Want to modify or incorporate custom changes on store, Hire us
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Whats app
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO ; Digital Marketing & amp | Site Speed Optimization | Performance Site Audit
0 Likes