Solved

Collection products order by availability

n-developer
Shopify Partner
12 2 0

Hi,

there is a way to order the products in a collection by availability?
It would be nice if all the not available products appearing after the available orders.
It's a sort of double ordering: if the users select alfabetical order, the unavaialble products will be a the end.

 

It's that possibile editing the Theme collections ordering query?

Thanks,

best regards.

Accepted Solution (1)

TimBlackDesign
Shopify Partner
42 8 8

This is an accepted solution.

Hi @n-developer, I could be wrong, but based on the documentation I found it does not appear that sorting by availability via query is an option. If I had to make this happen without getting into a lot of custom coding, I would most likely create two loops, the first showing available items and the second unavailable. Hope this helps!

- If this reply was helpful please click Like to let me know! (and maybe buy me a coffee ?)
- If your question was answered please mark this as an Accepted Solution.
- Learn more about working with Shopify themes

View solution in original post

Reply 1 (1)

TimBlackDesign
Shopify Partner
42 8 8

This is an accepted solution.

Hi @n-developer, I could be wrong, but based on the documentation I found it does not appear that sorting by availability via query is an option. If I had to make this happen without getting into a lot of custom coding, I would most likely create two loops, the first showing available items and the second unavailable. Hope this helps!

- If this reply was helpful please click Like to let me know! (and maybe buy me a coffee ?)
- If your question was answered please mark this as an Accepted Solution.
- Learn more about working with Shopify themes