Contributions

InfoBoxes (Category Index)
Search: 

Categories Box Images

What does it do:

This modification to the code allows the category and sub-category images to be used in the categories box.
If a category or sub-category has no image then the textual name is shown.
The code can be ammended to give both a category or sub-category image and textual name.
I have included some files that can be used as replacements, these files if used require to be renamed categories.php and would replace the file in catalog/includes/boxes/categories.php

categories_main_images.php -- This gives main category images only.
categories_main_images_text.php -- This gives main category images with text.
categories_main_sub_images.php -- This gives main category and sub-category images.
categories_main_sub_images_text.php -- This gives main category images with text and sub-category images with text.

Expand All / Collapse All

Fix in function call 7 Sep 2005

This .zip have the same files that the other, I just change this:

$categories_string .= tep_image(DIR_WS_IMAGES . $tree[$counter]['image'], '30', '30');

to

$categories_string .= tep_image(DIR_WS_IMAGES . $tree[$counter]['image'], $tree[$counter]['name'], '30', '30');

Because the thirt parameter of the function tep_image require the "alt" text of the image.

Categories Box Images with screenshot Steve (aka 241) 27 Aug 2004
Categories Box Images Steve (aka 241) 26 Aug 2004

Note: Contributions are used at own risk.