Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

List Only Products That Are In Stock


lawnwrangler

Recommended Posts

Does anyone know of an easy way to list only the products that have a stock level of > 0?

 

I'm assuming I'll have to modify index.php, but I'm not sure where.

-M

 

I use these settings in admin-->mystore-->stock, and items not in stock are not shown:

Check stock level true

Subtract stock true

Allow Checkout false

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

thanks, that worked! the thing that confused me was that those settings only work after new products have been added. They didin't seem to apply to the products that already existed in my store.

 

matt

 

I use these settings in admin-->mystore-->stock, and items not in stock are not shown:

Check stock level true 

Subtract stock true 

Allow Checkout false

Link to comment
Share on other sites

thanks, that worked! the thing that confused me was that those settings only work after new products have been added. They didin't seem to apply to the products that already existed in my store.

 

matt

 

Those products which already had a quantity of 0 before you made this change will stay visible because the check on zero stock level only happens when a product is ordered.

You'll have to manually make these products 'invisible' by clicking the red dot for each to make them unavailable.

Link to comment
Share on other sites

Those products which already had a quantity of 0 before you made this change will stay visible because the check on zero stock level only happens when a product is ordered.

You'll have to manually make these products 'invisible' by clicking the red dot for each to make them unavailable.

 

An alternative method is to write a php or mySQL script that makes the changes en masse.

 

HTH,

Robert

Link to comment
Share on other sites

An alternative method is to write a php or mySQL script that makes the changes en masse.

 

HTH,

Robert

 

 

yup, one update statement in phpmyadmin will take care of it and make them all status=0 if quantity=0

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...