Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

How to make "out of stock" show before viewing the cart


Recommended Posts

Hi All,


I am almost ready to make my site "live" but I have one more problem.


How do I make "out of stock" show (for items out of stock) on the products listing page? I do not want to show item in stock numbers on this page, but I just want to show if it is out of stock. "out of stock" does not show until you go to the shopping cart page.


Thanks for any help



Link to comment
Share on other sites

you need to edit your catalog\index.php and catalog\includes\modules\product_listing.php


For the first file you edit the sql query string to remove the p.products_status = '1' from the where clause and you move the p.products_status to the select clause.


Then in your product_listing.php you check the products_status field from the query and you display out of stock or in stock.


you may also want to check the contributions there might be something there that does that.

Link to comment
Share on other sites


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

  • Create New...