Forums / Basic Configuration / Items won't go inactive when out of stock

Items won't go inactive when out of stock

Locked

Started by gsto on 14 May 2008, 2:05 PM · Views: 1,621

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
14 May 2008, 2:05 PM
#1
gsto avatar

gsto

New Zenner

Join Date:
May 2008
Posts:
28
Plugin Contributions:
0

Items won't go inactive when out of stock

I was trying to configure the stock options for the store I work for (Mbare) , and they want the items to be taken off the site when we are sold out. I went to Configuation > Stock , and set 'Products status in Catalog when out of stock should be set to' equal to 0. The items that we are sold out of are still showing up! how can I fix this?

11 Jun 2008, 8:33 PM
#2
daver1510 avatar

daver1510

New Zenner

Join Date:
Jul 2007
Posts:
70
Plugin Contributions:
0

Re: Items won't go inactive when out of stock

I feel your pain. I've been trying for a week now to keep out of stock inventory from showing up in catalog.

14 Jun 2008, 4:22 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Items won't go inactive when out of stock

If you set the stock up so that when products_quantity hits <= 0 that the Product should be set to products_status 0 (removed from the Catalog) then this will work when Stock Tracking is turned on ...

However, existing Products that have products_quantity 0 will NOT be set to products_status 0 just because this switch is set, after the fact ...

The products_status is set during the checkout_process of the order ... and to adjust existing Products that have already gone to products_quantity <= 0 to be products_status 0 you need to do this either manually or you can issue a global update for this ...

NOTE: you can also set Products to show as Sold Out vs remove completely from the Catalog in the Stock settings as well ...

To globally update your Products to be products_status 0 when products_quantity is <= 0 you can run in the Tools ... Install SQL Patch ...

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

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!