Add and remove out of stock items from collections

Add and remove out of stock items from collections

SKTEDS
New Member
13 0 0

hello,

 

i am using manual collections and smart collection, and i have items out of stock and no plan to replenish it very soon, but i want it no to show up on collection pages, so for smart collections i can add a condition to check for inventory. but for manual collections i don't have the way to remove the items automatically, (also for smart collections sometimes i need any of a few type conditions so in that case i can add a condition for inventory).

 

i think the flow app might be able to help however i want to remove out of stock items only if there was no stock for 180 days,

 

can anyone help me with creating a flow like this?

 

Replies 2 (2)

Shadab_dev
Shopify Partner
1245 64 131

I am not sure about this but if Shopify liquid does provide a way to check when the item went out of stock then we can check if that product has past 180 days and show or hide the product accordingly.

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.

paul_n
Shopify Staff
1666 183 380

"out of stock" is not tracked that way, so you would need to store the date in a metafield when something goes out of stock. And then build an automation to check that date at some point.

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.