OK, here is what I came up with so far:
In a simmilar article (http://www.zen-cart.com/forum/showthread.php?t=39440) I found some clues, but still I'm not sure how to incorporate it.
I use the example here from 'to-be-alterated' categories.php page. Also, I'm using jscript for image rollover (MM_swapImage), which is already incorporated in other pages on the site. The zen cart version is 1.3.7.
on line 67, starting with
$content .= '<a class="' . $new_style . '" href="'
To the '">' end part, I'm adding the code that calls jscript:
'" onmouseover="MM_swapImage(''. REGULAR_IMAGE_NAME . '','','' . **ROLLOVER_IMAGE_LOCATION_AND_IMAGE_NAME_WHICH_IS_THE_SAME **. '_.gif',1)" onmouseout="MM_swapImgRestore()">'
The text in bold represents the part that gives me so much headache (I know that in some instances it is the "$box_categories_array[$i] ['name']" part that need to be substituted, but I'm not sure how).
So far, we have indentified the "a href" tag.
Next, we need to supplement the text part of the category with an image:
This part of code is on lines 75, 79, and 85 in categories.php
We need to substitute the: $box_categories_array[$i]['name'], which calls the category name (defined in admin > categories/products) in text format.
Here is my img tag in full html:
<img src="**IMAGE_SOURCE**" name="**IMAGE_NAME**" width="**IMAGE_WIDTH**" height="**IMAGE_HEIGHT**" alt="**IMAGE_ALT_TEXT**" border="0" />
The full (current) line 75 looks like this:
$content .= '<span class="category-subs-parent">' . $box_categories_array[$i]['name'] . '</span>';
Now, I'm experimenting: Here is what I would do with it (and again, the bold text is the part I don't know how to write in 'zen code'; I will, however attempt something for a discussion):
$content .= '<span class="category-subs-parent"><img src="' . **zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['IMAGE_NAME?'] **. '" name="' . IMAGE_NAME . '" width="' . IMAGE_WIDTH . '" height="' . IMAGE_HEIGHT . '" alt="' . CATEGORY_NAME . '" border"0" /></span>';
So, what I would like from you guys, my gurus and masters, to please help me understand and substitute the missing parts... I'm sure it is pretty simple... one just need to 'call' the correct function or format... and voila!
Thanks,