Removal of inventory when no longer have it

Highlighted
New Member
6 0 0
I was wondering how to edit my inventory. I sell alot of one of a kind items and would like to keep the site really clean and not keep things showing when they have been sold. When I started the site, it had a tshirt listed as a sample and I havent figure out how to remove that either. Thank you....I am a newbie and lost as usual and have no programing experience. Lee Ann
0 Likes
Highlighted
Shopify Staff
Shopify Staff
2002 0 48

When you hover of the name of a product there should be a little garbage bin to delete it.

We call those things hover tools and they are largely on their way out. It works well in theory but in praxis they are way to unobvious.

Tobias Lütke - Shopify CEO // http://twitter.com/tobi
0 Likes
Highlighted
New Member
36 0 0

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?

0 Likes
Highlighted
Shopify Partner
283 0 2

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?

Richard Quick - Finalist: SxSW Web Awards 2009 (CSS Category) - SEO and Web design - http://www.successfulsites.co.uk - http://www.mailright.co.uk
0 Likes
Highlighted
Shopify Staff
Shopify Staff
2002 0 48

You can also use a smart collection which uses inventory > 0 as one of its conditions.

Tobias Lütke - Shopify CEO // http://twitter.com/tobi
0 Likes
Highlighted
Excursionist
699 0 9

brilliant, Tobi!

been looking for a solution for that situation too.

operation absurdist feature requests: terminated (http://en.wikipedia.org/wiki/Absurdism)
0 Likes
Highlighted
New Member
36 0 0

This didnt work for me.

When I created the smart collection, the item that had “0” available was still pulled into the collection. Interestingly enough, one of the items was mistakenly listed as “unlimited” and it WASN’T pulled into the smart collection. What am I doing wrong?

0 Likes
Highlighted
Excursionist
699 0 9

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.

operation absurdist feature requests: terminated (http://en.wikipedia.org/wiki/Absurdism)
0 Likes
Highlighted
Excursionist
699 0 9

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:

  • inventory stock < 1
  • inventory stock = 0

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.

operation absurdist feature requests: terminated (http://en.wikipedia.org/wiki/Absurdism)
0 Likes
Highlighted
Excursionist
699 0 9

correction:

inventory stock > 1 shows nothing. same for anything above 1, i.e.

inventory stock > 2 etc.

inventory stock > 0 shows all items for which stock is given as limited, even when the number is 0.

operation absurdist feature requests: terminated (http://en.wikipedia.org/wiki/Absurdism)
0 Likes