I want to sort sold out products to bottom
Hi @kareemkiks :waving
Merchants needing to sort sold out products to the bottom of collections either need to:
- if manual collections set the sort order to manual in the admin then hand sort the products
- customize the theme to change the collections sort order in liquid for the collections product loop; implemenation will vary greatly between themes
- Or for manual collections use an app , such as mechanic, to send sold out products to the end of a collections list.
Example liquid code for product loops in a collection
{% assign sorted_products = collection.products | sort: 'available' %}
..
...
{% for product in sorted_products %}
Example mechanic sorting automation tasks:
- https://tasks.mechanic.dev/move-out-of-stock-products-to-the-end-of-a-collection
- https://tasks.mechanic.dev/auto-sort-collections-by-product-properties
- https://tasks.mechanic.dev/auto-sort-collections-by-inventory-levels
If you need this customization then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.