Re: Move out-of-stock items to the end of collections.

Move out-of-stock items to the end of collections.

Hrytsenko
Tourist
4 0 0

Hello!

I need out of stock items to automatically move to the end of the list when displaying collections, regardless of the sorting and filters selected.

What are some ways to implement this in Shopify? Does your system support this sorting at the settings level or is customization required?

Thank you! I look forward to your reply.

Replies 7 (7)

Bundler-Manuel
Astronaut
1018 51 118

Hey there @Hrytsenko  From my knowledge and research, there doesn’t seem to be an in-built Shopify feature that allows for automatically sorting the out of stock products at the end of the collection.

Basically, you’d have to sort it out manually. Check out https://help.shopify.com/en/manual/products/collections/automated-collections/auto-create and https://help.shopify.com/en/manual/products/collections/collection-layout  for some helpful information 

There are also some apps that could help you in doing this if you are interested. You can check out the Nada app on the Shopify App Store 

Emmanuel
Please let me know if it works by marking it as a solution!
Bundler - Product Bundles app, a great bundle app for Shopify, with glowing user testimonials and a free plan.
Hrytsenko
Tourist
4 0 0

I'm sorry but this is complete nonsense, I have in my store 20 thousand products, and every day +- 1000 to be in stock or not.
I know that on all platforms there is such a solution that the goods that are in the status of out of stock fall to the end of the list on the storefront.
It's just that shopify has not finalized it. But there are plugins for shopify that do it all. But as far as I understand there should be a small change in the code in collection.liquid.
So I want to know if anyone has already done it?

Shadab_dev
Shopify Partner
1417 72 153

Hey @Hrytsenko. @Bundler-Manuel is correct Shopify for now does not have any settings from the customizer to make sold out products show at the last, some themes may have it but not Shopify as a platform. 

 

Nevertheless I have done a project like this one before for a client and I know the logic behind it. Please see reference of client site below.

 

www.eluxestore.de

 

Please reach out via personal links below for a convenient conversation and collaboration.

 

Best

Shadab

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
Hrytsenko
Tourist
4 0 0

Hi. I'll buy you a coffee, can you write or explain where in which file to do the settings?

Shadab_dev
Shopify Partner
1417 72 153

You already kind of know it. It's the main collection file. 

 

What theme are you using by the way??

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
Hrytsenko
Tourist
4 0 0

I'm using the theme  https://themeforest.net/item/ocolus-classic-creative-shopify-theme/46630625?s_rank=2 

but I don't understand what and where to write it correctly?

Shadab_dev
Shopify Partner
1417 72 153

Okay so you are using a third party paid theme here. 

 

Anyways if you wanted me to take care of this I would need Collab access unless you were on a free theme by Shopify. 

 

It's a paid one and I test stuffs out on a development store which doesn't allow to edit third party themes.

 

I know the logic and how to work this out. I would also definitely need to look up a bit, but that won't be that tough ,I can track it down. 

 

So a coffe wouldn't suffice it though, I do charge as per the project for my time and effort. So if you're okay in $35, please reach out via personal links below for a convenient conversation and collaboration.

 

Just as a reference, this link will act as a review of my work with clients before: https://buymeacoffee.com/shadab_dev

 

Best

Shadab Ali 

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.