Liquid, JavaScript, themes, sales channels
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.
Solved! Go to the solution
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
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
Thank you for your reccomendations. This was very helpful
User | RANK |
---|---|
35 | |
24 | |
16 | |
9 | |
9 |
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023