DVBHardware Posted January 10, 2005 Posted January 10, 2005 When someone buys the remaining stock of a product and the quanity becomes zero, the product listing is deactivated. How can I keep it listed in the catalog ? Then the regular routine showing *** Out of Stock or Back ordered will do its thing that I know how to configure. Jimmy I'm not a coder just a splicer.
Simmy Posted January 10, 2005 Posted January 10, 2005 admin->configuration->stock check stock level =false allow checkout =true One or both of these settings look promising!
radders Posted January 10, 2005 Posted January 10, 2005 On mine it's not the stock level. But I may have made changes to the code. I'll check.
DVBHardware Posted January 10, 2005 Author Posted January 10, 2005 I read in a old post that this problem was only in MS1 but fixed in MS2. Thanks for looking in to it. I'm not a coder just a splicer.
DVBHardware Posted January 11, 2005 Author Posted January 11, 2005 Found it after 8 hours of searching; Checkout_process.php Change: "set products_status = '0' " to a 1 in below code tep_db_query("update " . TABLE_PRODUCTS . " set products_quantity = '" . $stock_left . "' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"); if ($stock_left < 1) { tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '1' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"); } } I'm not a coder just a splicer.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.