Amazing
Glenn you are real Zen Guru
It exactly what my client had in mind and its working great.
Also, as you mentioned in your post, it outputed numbers like 'first: 147_199' I notice that part of code and uncomment it, so code now looks like this:
Code:
case 7:// active subtree, active branches only, only 1st & 4th level - treat first subcat like top - customized 20100205 for madijelovi
if($cPath_top != $path_top){//only 1 top cat's subs
$skip_cat = 1;
break;
}
if($cat_depth == 1){//show all first level subs
//echo '<br />first: '.$path;//debug
break;
}
if($cat_depth == 4){//check 4th level for active parent
$path_ids = explode('_',$path);
$path_parent = $path_ids[count($path_ids)-2];
if (in_array($path_parent,explode('_',$_GET['cPath']))) break;//show only subcats w parent in $cPath
}
$skip_cat = 1;//skip all others
break;
and now its not shows paths, is this OK?
p.s. I just noticed that categories.php in right column is also showing when I am on 4th level subcategorie: when I am viewing Car Parts Types for example 'Brakes'; 'Engine Parts' 'Suspension' etc in main/center page, I am also seeing classic categories on right side (in right column) which is showing same list - Car Parts Types. I am not sure what part of code we should change so the categories on right side wouldnt be visible when users are viewing Car Parts Types..
Thank you!
Bookmarks