Forums / General Questions / Don't show 0 quantity products.

Don't show 0 quantity products.

Locked

Started by scottb on 27 Nov 2006, 2:23 PM · Views: 2,806

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
27 Nov 2006, 2:23 PM
#1
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Don't show 0 quantity products.

I have several hundred products in a store. The products are refurbished and sometimes I have none in inventory.

How can I set the products with zero quantity to not display?

27 Nov 2006, 3:05 PM
#2
pixxi avatar

pixxi

Totally Zenned

Join Date:
Jan 2004
Location:
UK
Posts:
1,065
Plugin Contributions:
1

Re: Don't show 0 quantity products.

Admin->configuration->stock:

Check stock level true
Subtract stock true
Allow Checkout false

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

12 Feb 2007, 9:14 PM
#3
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Re: Don't show 0 quantity products.

Will this be an upgrade in future versions?

The ability for a product to turn its status to off when it reaches a predefined inventory level such as 0 or 10 or whatever.

It would save a lot of time when you have have lot of products.

:yes:

12 Feb 2007, 9:16 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Don't show 0 quantity products.

This is built in that when stock goes to <= 0 from a completed order the status can be turned to 0 to not show the product or left at 1 and then show the Sold Out vs the Add to Cart ...

You can also make your own image such as a Out of Stock ... Back Order etc. to better suit your needs ...

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!

12 Feb 2007, 9:57 PM
#5
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Re: Don't show 0 quantity products.

I understand that.

I want the product not to display at all if it is sold out. No sold out button, no not available button, or anything.

I sell refurbished cell phones. When the quantity reaches 0, I may never get that particular model phone again.

12 Feb 2007, 10:03 PM
#6
pixxi avatar

pixxi

Totally Zenned

Join Date:
Jan 2004
Location:
UK
Posts:
1,065
Plugin Contributions:
1

Re: Don't show 0 quantity products.

Pixxi:

Admin->configuration->stock:

Check stock level true
Subtract stock true
Allow Checkout false

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

It does that as standard - just change your settings in admin->configuration->stock to the above and it will work :smile:

12 Feb 2007, 10:18 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Don't show 0 quantity products.

NOTE: this setting affects stock on the order confirmation ... it does not affect existing products with products_quantity = 0 ...

You would need to update those products manually or run a global update such as:

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

This can be run in the Tools ... Install SQL Patches ...

Be sure to Backup your database before running this ...

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!

12 Feb 2007, 11:43 PM
#8
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Re: Don't show 0 quantity products.

Ajeh,

Thanks. That should do it.

12 Feb 2007, 11:52 PM
#9
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Re: Don't show 0 quantity products.

It worked like a charm. :yes:

13 Feb 2007, 12:02 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Don't show 0 quantity products.

Thanks for the update that this worked for you ... :smile:

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!

11 Jan 2008, 1:02 PM
#11
el_keef avatar

el_keef

New Zenner

Join Date:
Jan 2008
Posts:
3
Plugin Contributions:
0

Re: Don't show 0 quantity products.

I had an exactly similar requirement (posted elsewhere)

Running the update statement:
*UPDATE products SET products_status = 0 WHERE products_quantity <= 0;*was necessary to force this value for products added with zero stock, rather than decremented to zero by sales. This finally, does hide the product from listing as I required - HOWEVER:

It doesn't stop it appearing in the "new for this month" list - as it was recently added. Can I suppress zero stock from this listing?