Archive Products?

Trailblazer
620 0 70
Right now we can make a product "out of stock" or delete it. Might there be a way to archive it so I don't lose the data (discriptions, prices, photos, etc) but not have my customers see a whole bunch of old stock that is not available? I have a rotating stock that is similar, but not exact. Maybe a tag of "archive" that through liquid would not shop products with that tag? I have tried not showing out of stock items (or out of stock variations) but my code never works. I would love for this to be a feature, but a hack would work :)
John Nanci www.ChocolateAlchemy.com The Art and Science of Homemade Chocolate
0 Likes
New Member
19 0 0

What about creating a collections called “out of stock” and adding all your out of stock items into there.

Unless you add the collection as a link, then it won’t get displayed?

I guess you’d have to remove tags though…

0 Likes
Trailblazer
620 0 70

So Funny. I JUST thought of that today on the drive in. Yes, that is what I am going to do.

Thank – great minds and all….;)

John Nanci www.ChocolateAlchemy.com The Art and Science of Homemade Chocolate
0 Likes
Tourist
79 0 1

It’s a solution, but many carts have a “hide” function, which is what I would prefer too, or perhaps if stock reaches zero it’s no longer being displayed…

Rudolf Helder http://metropix.net/ http://hawaiiandays.com/ http://vintagesignfactory.com/ http://eschool.k12.hi.us/ http://metropixie.blogspot.com/ http://bebackhawaii.com/ http://hulalampshawaii.com/ http://bamboostorehawaii.com/ http://bamboobeadcurtain.com/ http://nihonshi-eitaigura.com/
0 Likes
Trailblazer
620 0 70

I would like a zero = does not show, but could never seem to work out he code.

John Nanci www.ChocolateAlchemy.com The Art and Science of Homemade Chocolate
0 Likes
Tourist
327 0 2

John

Try this in collection.liquid (and in the ‘for’ loop to show frontpage collection in index.liquid if you use it)...

back up your theme first :)


{% for product in collection.products  %}
<!-- add this if condition -->
{% if product.available == true %}

...stuff to display products...

{% endif %}
{% endfor %}

As long as you have Shopify tracking availability of items product.available will return ‘false’ for products with a stock level of zero if you check the option ‘Deny purchases when stock level equals 0…’ (I think that’s what it says). Any products that have a stock level of zero for all variants would not be shown. Products with more than one variant available will still show up.

Mike

Mike www.anothervision.co.uk
0 Likes
Tourist
126 0 3

If you just add it to a hidden collection it will still show up in search. I am not sure how to implement this liquid thing.

-Jared

0 Likes