I see what's going on. You didn't put my code in the right spot. Maybe it would be better explained to say to put it infront of this code:
Code:
#
# Put subcategory_count to $subcategories array
#
if (!empty($subcategories))
foreach($subcategories as $key =>$subcategory) {
$subcategory["subcategory_count"]=0;
foreach($all_categories as $all_category) {
if ($all_category["categoryid"]==$subcategory["categoryid"]) {
$cur_dir_len = strlen($all_category["category"]);
$current_subcategory=$all_category["category"];
}
}
The code depends on the subcategories being created (or not created). So it has to go below the subcategory creation.
Otherwise, it looks like you have it if you notice browsing down the categories to say here:
http://www.solutionsforliving.biz/customer/home.php?cat=131
you have the parent's subcategories on the left side.
Also, since you have the root categories across the top, I have fixed my code to allow for that. So recopy the php code in my original fix so you don't have 2 copies of the root categories at the top.
Carrie