Community Add-Ons

Add file to this package
Top » InfoBoxes

Category Box Enhancement
for osCommerce Online Merchant v2.2

This contribution is supposed to improve the look and feel of the categories box, improve navigation and help users to keep their bearings on the site.

1. It will add a small image ('bullet') to the left of every category in the category box. There are two different images, one for categories that have subcategories, one for those that don't.

2. It will get rid of the funny-looking ASCII-arrow ( -> ) that used to indicate categories containing subcategories.

3. It will highlight the current category in the box. Users will have an easier time telling where they are on the site.

Here's a screenshot of what the box will look like in an otherise standard 2.2 MS2 installation:
http://www.leer.privat.t-online.de/pics/CatBoxEnh.gif

Legend:  Download   Report

Expand All / Collapse All

Enhanced Category Box wdepot 16 Mar 2011  

I've rewritten the code for the enhanced categories box to be more efficient. As originally written with the added dropdown the categories were being loaded from the database twice. In addition, the osCommerce category product count function is inefficient when categories are deeply nested since the nested categories being shown are counted multiple times, once for each level down.

With this version all category information needed is retrieved from the database once. If counts are shown each category is counted once in the database and then the counts for nested categories are added to their parent category's counts without further database access being necessary. This should decrease the page load time on large sites with a lot of nested categories and a lot of products.

Visually the only change is that when counts are displayed the count of specials is also shown, zero counts are now displayed, and the category counts also appear in the category drop down.

Complete install with all previous language instruction files is attached. Just replace the boxes/categories.php if you already have an earlier version installed.

Category Box Enhancement - added spanish lang akaxunux 19 Jan 2008  
Category Box with Dropdown Fix v2 Portugues joelm 7 Apr 2007  
Category Box Enhancement - added slovenian lang gregy 20 Apr 2006  
Category Box with Dropdown Fix v2-german Conny Schlicht 11 Oct 2005  
Category Box with Dropdown Fix v2 mpi-caraudio.nl 14 Sep 2005  
Category Box with Dropdown Fix Kevin L. Shelton 3 Jun 2005  
Category Box + New Product Links + DropDown Joma Webdesign 28 May 2005  
small Update for the final version of the small extension Kurt Dunzinger 20 May 2005  
final version of the small extension to Category box Enhancement 1.1 Kurt Dunzinger 12 Apr 2005  
fixed small extension to Category box Enhancement 1.1 Kurt Dunzinger 11 Apr 2005  
small extension to Category box Enhancement 1.1 Kurt Dunzinger 10 Apr 2005  
Fix for Category Box Enhancement v1.1 Nils Petersson 2 Sep 2003  
CategoryBoxEnhancement_v1.1_for_the_BTSv1.0a.zip Paul Mathot 2 Sep 2003  
Category Box Enhancement 1.1 Nils Petersson 29 Aug 2003  
Category Box Enhancement Nils Petersson 25 Aug 2003