I want to change the number of products shown in the best selling category.

Solved
SumitRoyGermany
Tourist
4 0 2

So, I have a section which includes the best selling products in my shop. But it by default shows all the products which are listed in my shop. I just want to show 12 products from most sold products on my shop, so that people can decide faster what to buy for example. 

 

How can I limit the number of this catagory (Best selling) Titel (Besonders Beliebt).

This is the shop URL: https://baerchenmacher.myshopify.com/

Any help will be much appreciated 🙂

Thanks in advance. 

Accepted Solution (1)
Savior
Shopify Partner
537 108 156

This is an accepted solution.

Hello @SumitRoyGermany 

 

An easy way of doing it, as sort on Shopify won't work with the value best-seller, is to create a new Collection called (for example) Best Sellers where you have all your products (you could set as the sole condition for product price to be greater than $0 if it applies on your store).

Then, set that collection sorting to By best selling on your admin dashboard.

 

Finally, use Liquid in a similar way as per the following:

<div class="row">
  {% for product in collections.best-sellers.products | limit:12 %}
    {% include 'product-grid-item' with "all" %}
  {% endfor %}
</div>

An alternative is to use product tags which needs some custom code setups.

 

Regards


If helpful then please Like and Accept Solution. Want to modify or custom changes on store Hire me. Feel free to contact me on here | Shopify Design Changes | Custom Modifications In to Shopify Theme

 

If helpful, please Like and Accept Solution.


Hire me or mail me  | Shopify Design Changes | Custom Modifications In to Shopify Theme | Site Speed Optimization
Use GemPages Page Builder to build, design, and optimize your store. View app

View solution in original post

Replies 2 (2)
Savior
Shopify Partner
537 108 156

This is an accepted solution.

Hello @SumitRoyGermany 

 

An easy way of doing it, as sort on Shopify won't work with the value best-seller, is to create a new Collection called (for example) Best Sellers where you have all your products (you could set as the sole condition for product price to be greater than $0 if it applies on your store).

Then, set that collection sorting to By best selling on your admin dashboard.

 

Finally, use Liquid in a similar way as per the following:

<div class="row">
  {% for product in collections.best-sellers.products | limit:12 %}
    {% include 'product-grid-item' with "all" %}
  {% endfor %}
</div>

An alternative is to use product tags which needs some custom code setups.

 

Regards


If helpful then please Like and Accept Solution. Want to modify or custom changes on store Hire me. Feel free to contact me on here | Shopify Design Changes | Custom Modifications In to Shopify Theme

 

If helpful, please Like and Accept Solution.


Hire me or mail me  | Shopify Design Changes | Custom Modifications In to Shopify Theme | Site Speed Optimization
Use GemPages Page Builder to build, design, and optimize your store. View app

SumitRoyGermany
Tourist
4 0 2

Thank you for your reccomendations. This was very helpful