If you want to display only the child (sub categories) in a dhtml menu , use this code. this will hide the parent category
Use at your own risk and always back up
Just change
$categories_query_catmenu = 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 = '" . $currentParID . "' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id
."' order by sort_order, cd.categories_name");
to
$categories_query_catmenu = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " .
TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' order by sort_order,
cd.categories_name");
Thats all
Easy and Simple
Same instruction is in a text file to download..no other additions
- Sarath
More...




LinkBack URL
About LinkBacks









Bookmarks