Is there a way to set it so that once an item is out of stock, it no longer appears on the site (without deleting it)?
My items are all handmade, and while some are one-of-a-kind, others can be recreated. I don’t want to have to delete the entire product each time something sells, but at the same time, I dont want things showing up on the site unless I definately have them available to sell. Make sense?
You might be able to do this using liquid in your template.
There’s a variant.available which you could use – but I’m not sure if you could use it in the collections page, for example?
I haven’t done it yet, but did you put a conditional into your collection.liquid to prevent the zero collection from being displayed? – something like: if product not in collection.zero, for product in products…etc. Same for product.liquid.
OK, I’ve tried it, and have now understood Blakelyn’s problem.
It seems that it’s indeed not possible to make the following smart collections:
The collection that is created from these conditions is the collection that contains all items for which stock is unlimited. I think there must be a mistake in the conditional in the code somewhere. Which means it’s not possible to make a smart collection of items which are OUT of stock
What I did is follow Tobi’s suggestion, and made a smart collection called “IN stock”, with condition:
inventory stock > 1
That works, but it will NOT include items with unlimited stock.
So – I think there’s a little glitch that needs to be fixed.