Hi,
We're also experiencing the exact same problem. Top level category images are not displaying on sub category / product index pages. We have checked the settings listed earlier in this post.
Andy
Have you an URL where we can peek at this?![]()
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
add the following code after LINE 43 at the file -\includes\templates\YOUR TEMPLATE\sideboxes\tpl_categories.php
// categories_image
$categorySelect = str_replace('cPath=','',$box_categories_array[$i]['path']);
$categories_image = zen_get_categories_image($categorySelect);
$myCategoryImage = zen_image(DIR_WS_IMAGES . $categories_image, 'Click for details', '275', '275');
//
$content .= $myCategoryImage;
$content .= '<br /> <br />' . "\n";
// end adding image code
i hope this is the right solution, i do the same thing. can refer to the site
http://www.tom2u.com
see if this is the categories image you want.
hope it help...thank you
Hi, solved the problem, might not be the most elegant solution but here we go:
comment out the original if{ statement on line 22 in tpl_index_product_list.php (IN YOUR TEMPLATE FOLDER) then paste the following below it:
That's it. Although you may need some CSS styling to get it to look how you want it. Hope this helps others.PHP Code:// ~~~~~~~~~~~~~~~~~~~~~~~~~~~
// REDPAINT MODIFICATION TO SHOW TOP CATEGORY IMAGE
define(TOP_CATEGORY_ID,substr($cPath, 0, strpos($cPath, '_')));
$top_image_exists = zen_get_categories_image(TOP_CATEGORY_ID);
if(!empty($top_image_exists)) {
$categories_image = zen_get_categories_image(TOP_CATEGORY_ID);
// END MODIFICATION
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~