If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / Getting Products that go out of stock not to display

Getting Products that go out of stock not to display

Started by kenshirou on 19 Apr 2013, 10:32 AM · Views: 986

Results 1 to 11 of 11
19 Apr 2013, 10:32 AM
#1
kenshirou avatar

kenshirou

Zen Follower

Join Date:
Oct 2012
Posts:
109
Plugin Contributions:
0

Post #1 by kenshirou

okay I have bought this template from somebody and have been playing around for a couple of hours and the creator is not very helpful either, but when a product is out of stock, my site does NOT display the out of stock. So what I would like to do his automatically disable and not show products out of stock, however when we do get it back in stock it will display.

Can this be done?

19 Apr 2013, 10:48 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #2 by stevesh

What's your setting for Admin - Configuration - Stock - Products status in Catalog when out of stock should be set to ? If 0, switch to the Classic template and see if things work properly.

19 Apr 2013, 10:57 AM
#3
kenshirou avatar

kenshirou

Zen Follower

Join Date:
Oct 2012
Posts:
109
Plugin Contributions:
0

Post #3 by kenshirou

yeah they work properly on classic template, just not this one.

Products status in Catalog when out of stock should be set to 0

19 Apr 2013, 11:44 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #4 by stevesh

Then you're probably at the mercy of the template designer. Post a link to the site, and we might be able to spot something.

19 Apr 2013, 12:09 PM
#5
kenshirou avatar

kenshirou

Zen Follower

Join Date:
Oct 2012
Posts:
109
Plugin Contributions:
0

Post #5 by kenshirou

http://www.kidsartandcraft.co.uk/

the template designer is not very helpful at all. All the changes and bugs I have done on this site have been on my own without any help. Only a few hints and tip s I've read off other peoples posts.

19 Apr 2013, 1:20 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #6 by ajeh

Be aware that Products without a quantity are switched from products_status 1 to products_status 0 when Orders are completed and the products_quantity drops to <= 0 ...

Changing the switch to have the products_status switched to 0 when products_quantity goes to <= 0 has no affect on current products_status ...

You can resolve this by running the SQL command in the Tools ... Install SQL Patches ...

UPDATE products SET products_status = 0 WHERE products_quantity <= 0;

and from now on, when Orders are completed, they will manage the products_status, providing you are setup in the stock to track stock ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Apr 2013, 1:41 PM
#7
kenshirou avatar

kenshirou

Zen Follower

Join Date:
Oct 2012
Posts:
109
Plugin Contributions:
0

Post #7 by kenshirou

how do I track stock? I have currently these settings

http://screencast.com/t/k2y9HDRgum

19 Apr 2013, 1:47 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #8 by ajeh

You appear to have all the correct settings ... you just need to update your database so that the current Products are set right for the products_status based on their current products_quantity ...

From there, it will be managed as Orders are made ...

You might make a test Product with quantity 1 and then make a test Order for that Product and make sure it is then set to products_status 0 so that it no longer appears in the Catalog ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Apr 2013, 2:00 PM
#9
kenshirou avatar

kenshirou

Zen Follower

Join Date:
Oct 2012
Posts:
109
Plugin Contributions:
0

Post #9 by kenshirou

Hi there, thank you very much for this. However I do have a question about using this piece of code, if I update the stock back on a product that does not appear will it appear live again?

Alternatively I have another site, I wish to check some products out which are out of stock. Could this be done? I'm using an Abagon Template with 1.5?

19 Apr 2013, 11:24 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #10 by ajeh

No, if you update a Product for the products_quantity then you will need to set its status yourself, this is not automatic ...

What are you asking here?

Alternatively I have another site, I wish to check some products out which are out of stock. Could this be done? I'm using an Abagon Template with 1.5?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Apr 2013, 11:48 PM
#11
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #11 by rbarbour

KenshiroU:

Alternatively I have another site, I wish to check some products out which are out of stock. Could this be done? I'm using an Abagon Template with 1.5?

ADMIN > CONFIGURATION > STOCK > Allow Checkout