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 |
---|---|
32 | |
27 | |
20 | |
7 | |
7 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023