View Single Post
  #21  
Old 08-03-2004, 04:46 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

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
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote