+++++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