Keep Products Displayed When Out of Stoc

for osCommerce Online Merchant v2.2

Here is how to make items stay displayed in your product listings, even if they are out of stock. Some people reported not being able to do this, while others had just the opposite problem. For my own site, there was no other way except to delete a few lines of code. remove these lines from catalog/checkout_process.php: if ( ($stock_left < 1) && (STOCK_ALLOW_CHECKOUT == 'false') ) { tep_db_query("update " . TABLE_PRODUCTS . " set products_status = // '0' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"); } -just put // in front of each line. This will stop the .php file from writing the products_status as out of stock in the database. Glad I figured this out, it was driving me crazy!

Files