Community Add-Ons

Add file to this package
Top » InfoBoxes

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!

Legend:  Download   Report
Expand All / Collapse All
display only top categories with product count 1.3 edgy 14 Jan 2009  

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'

display only top categories v1.0 with product count edgy 18 Dec 2008  
top categories v1.0 with product count edgy 18 Dec 2008  
Categories : display only top categories v1.0 Christian Lescuyer 9 Apr 2003