Find this near the top of your tpl_categories.php:
PHP Code:
$current_path = str_replace("cPath=","",$box_categories_array[$i]['path']);
if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
// skip if this is for the document box (==3)
} else {
and add
$current_path == 15 or $current_path == 16 or
to get:
PHP Code:
$current_path = str_replace("cPath=","",$box_categories_array[$i]['path']);
if ($current_path == 15 or $current_path == 16 or zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
// skip if this is for the document box (==3)
} else {
This will skip those categories in the sidebox output.
You may need to add a bit of code to hide subcategories of those top cats. If this is the case, one thing that may work correctly is to use (int)$current_path in place of $current_path.
If that does not do the right job, there is another method thai I know will work.