Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Make Categories Invisible...


appleguru

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...