Guest bluesphee Posted April 16, 2011 Share Posted April 16, 2011 This may come in handy for someone... I wanted to hide the stock warnings that show up in the admin home page if the product was marked to disabled. To make this change I just had to modify both SELECT statements in the home/index.inc.php file. The code was changed to look like this: if ($config['stock_warn_type'] == 1) { $query = "SELECT name, stock_level, productId FROM ".$glob['dbprefix']."CubeCart_inventory WHERE useStockLevel = 1 AND stock_level <= stockWarn AND disabled != 1 ORDER BY stock_level ASC"; } else { if (!is_numeric($config['stock_warn_level'])) $config['stock_warn_level'] = 5; $query = "SELECT name, stock_level, productId FROM ".$glob['dbprefix']."CubeCart_inventory WHERE useStockLevel = 1 AND stock_level <= ".$config['stock_warn_level']." AND disabled != 1 ORDER BY stock_level ASC"; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.