Community Add-Ons
Categories : display only top categories v1.0
for osCommerce Online Merchant v2.2
This "Categories" box displays only top-level categories.
1) Unzip in catalog/includes/boxes.
2) Edit catalog/includes/column_left.php and change 'categories.php' to 'top_categories.php'
That's it!
A small modification to this nice and neat contribution - I wanted to have a sum of all the products in the top category and its subcategories displayed after the top category name.
With the following corrections:
-correct count even if product is in multiple categories
-no longer counts disabled products
So if you don't want a product count behind the category name then use Christian's contribution below.
Installation:
1) Unzip in catalog/includes/boxes.
2) Edit catalog/includes/column_left.php and change 'categories.php' to 'top_categories.php'
