lawnwrangler Posted August 8, 2005 Share Posted August 8, 2005 Does anyone know of an easy way to list only the products that have a stock level of > 0? I'm assuming I'll have to modify index.php, but I'm not sure where. -M Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 8, 2005 Share Posted August 8, 2005 Does anyone know of an easy way to list only the products that have a stock level of > 0? I'm assuming I'll have to modify index.php, but I'm not sure where. -M <{POST_SNAPBACK}> I use these settings in admin-->mystore-->stock, and items not in stock are not shown: Check stock level true Subtract stock true Allow Checkout false :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
lawnwrangler Posted August 8, 2005 Author Share Posted August 8, 2005 thanks, that worked! the thing that confused me was that those settings only work after new products have been added. They didin't seem to apply to the products that already existed in my store. matt I use these settings in admin-->mystore-->stock, and items not in stock are not shown:Check stock level true Subtract stock true Allow Checkout false <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
wheeloftime Posted August 9, 2005 Share Posted August 9, 2005 thanks, that worked! the thing that confused me was that those settings only work after new products have been added. They didin't seem to apply to the products that already existed in my store. matt <{POST_SNAPBACK}> Those products which already had a quantity of 0 before you made this change will stay visible because the check on zero stock level only happens when a product is ordered. You'll have to manually make these products 'invisible' by clicking the red dot for each to make them unavailable. Link to comment Share on other sites More sharing options...
Rob123 Posted August 9, 2005 Share Posted August 9, 2005 Those products which already had a quantity of 0 before you made this change will stay visible because the check on zero stock level only happens when a product is ordered.You'll have to manually make these products 'invisible' by clicking the red dot for each to make them unavailable. <{POST_SNAPBACK}> An alternative method is to write a php or mySQL script that makes the changes en masse. HTH, Robert Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 9, 2005 Share Posted August 9, 2005 An alternative method is to write a php or mySQL script that makes the changes en masse. HTH, Robert <{POST_SNAPBACK}> yup, one update statement in phpmyadmin will take care of it and make them all status=0 if quantity=0 :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.