More Category Boxes 1.0
June 29, 2005
Author: Jared Call
Dignified Contributor: Gregory Baboolal (devosc)
Support for this contribution is provided at: http://forums.oscommerce.com/index.php?showtopic=158814
What this contrib does:
========================
This contribution adds the following features:
- Add up to 10 additional category boxes to the left column, each of which can contain up to 25 admin-selectable top level categories.
- Each new category box may be enabled/disabled.
- The default categories box may be enabled/disabled.
- Each new category box has a customizable name (infobox heading).
Legend: 
Download

Report
The previous files, I had to put in the category id for the variable catid. Since I have set the product listing box to display after clicking on a specific category, I had to install one file for each category and manually change the catid number
so instead, I went to application_top and copied the code to calculate category number and pasted it into this code to see if it works. So far so good. It automatically gets the
Now you can just use one file to list all the products in the same category instead of making one for each category
follow the installation guide from the first creator
+++++Small fix for the addition of Category Box Enhancement in more_categories_50.php+++++
The addition found near the bottom of the file:
/* BoF - Contribution Category Box Enhancement 1.1
if (isset($cPath_array)) {
for ($j=0, $n=sizeof($cPath_array); $j<$n; $j++) {
$categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "'");
if (tep_db_num_rows($categories_query) > 0)
$categories = tep_db_fetch_array($categories_query);
}
$cat_name = $categories['categories_name'];
}
// EoF Category Box Enhancement*/
The section is commented out as a default.
Removing the comments causes an error.
**********************************************************************************************
To fix this find this line in more_categories.php or the 50 version(whichever you are using)
approx line#123: function tep_categories_box($boxId,&$infoBox,$follow_cPath,&$cPath_array)
Place the enhancement section directly above this line.
**********************************************************************************************
+++Don't forget to add the "Category Enhancement 1.1 fix" as well. I'll insert it here because it is needed.
**********************************************************************************************************************************************************************
Category Enhancement 1.1 Fix (as offered by Nils Petersson nilspetersson@hotmail.com- sept/03)
_______________________________________________________________________________________________
In case a shop has caching activated (which they should, AFAIK), the highlighting of the current category won't work. So please do this:
open file: catalog/includes/functions/cache.php
search for: function tep_cache_categories_box
add this to the function's globals: $cat_name
so that the first two lines of the function will look like this:
function tep_cache_categories_box($auto_expire = false, $refresh = false) {
global $cPath, $language, $languages_id, $tree, $cPath_array, $categories_string, $cat_name;
That should do the trick. You might have to empty the chache directory though to see an effect. This fix will be integrated into the next version of this contribution.
***********************************************************************************************************************************************************************
These two fixes should allow the "red highlighting" to show on your menu.
Good luck!
Sheri
AKA Muskokee
P.S. The file here is just the Enhancement fix. My fix is only available right here in this description
I made a small modification to this contribution, so that the icons of categorys are seen.
Hice una pequeña modificacion a esta contribucion, para que se vean los iconos de las categorias y subcategorias.
More Category Boxes 1.0
June 29, 2005
Author: Jared Call
Dignified Contributor: Gregory Baboolal (devosc)
Support for this contribution is provided at: http://forums.oscommerce.com/index.php?showtopic=158814
What this contrib does:
========================
This contribution adds the following features:
- Add up to 10 additional category boxes to the left column, each of which can contain up to 25 admin-selectable top level categories.
- Each new category box may be enabled/disabled.
- The default categories box may be enabled/disabled.
- Each new category box has a customizable name (infobox heading).