Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How can out of stock items not be displayed in store?


bestbookshoponline

Recommended Posts

Thanks

 

In the admin go to catalog > find the product and select "out of stock". It is the first option.

It will no longer apear then.

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

What I have done is add:

 

products_status = '1'

 

to all product queries in all files that show customers products.

 

If a product is disabled or out of stock (ie. status of 0) than it will not be included / shown

 

 

If you just want to filter by in stock just add:

 

products_quantity > 0

Link to comment
Share on other sites

What I have done is add:

 

products_status = '1'

 

to all product queries in all files that show customers products.

 

If a product is disabled or out of stock (ie. status of 0) than it will not be included / shown

If you just want to filter by in stock just add:

 

products_quantity > 0

 

Is it possible to tell me which files shall I edit and add please?

 

Thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...