appleguru Posted December 27, 2005 Share Posted December 27, 2005 Is there any way I can make entirely categories "Out of Stock" and invisible much like individual products? Link to comment Share on other sites More sharing options...
wheeloftime Posted December 27, 2005 Share Posted December 27, 2005 Is there any way I can make entirely categories "Out of Stock" and invisible much like individual products? This is the only contributions I am aware off which will give you the ability to do something like that. Link to comment Share on other sites More sharing options...
appleguru Posted December 28, 2005 Author Share Posted December 28, 2005 Mm, perfect! I tried searching for it but couldn't find it.. hope it works well.. Thanks! Link to comment Share on other sites More sharing options...
Iggy Posted December 28, 2005 Share Posted December 28, 2005 Mm, perfect! I tried searching for it but couldn't find it.. hope it works well.. Thanks! I wasn't able to get that contrib to work on a heavily modded store I maintain. If you end up in that same situation here's the note I made to myself in /includes/boxes/categories.php // Next is orginal cat line. To Hide additional categories add and c.categories_id != '29' changing the category number as appropriate // $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id != '29' and c.categories_id != '30' and c.categories_id != '31' and c.categories_id != '32' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); HTH, Iggy Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
appleguru Posted December 28, 2005 Author Share Posted December 28, 2005 Worked for me (I used the latest rls and added the changes noted in the last post); my store is somewhat heavilly modded as well.. manually edited everything... But.. it worked peeerrrrrfect! And... That's EXACTLY what I was looking for :) Thannks again for the quick reply! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.