Originally Posted by
Congerman
I have looked at the code in tpl_index_categories.php
Mine has this
<?php
if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS == 'true') {
// categories_image
if ($categories_image = zen_get_categories_image($current_category_id)) {
?>
<div class="cover">
<?php echo zen_image(DIR_WS_IMAGES . $categories_image, ''); ?>
</div>
<?php
}
} // categories_image
?>
<h1 id="indexCategoriesHeading" class="page-title"><?php echo $breadcrumb->last(); ?></h1>
<?php } ?>
I have tried changing it to this (from one of my other sites) but it did not work either
<?php
if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP == 'true') {
// categories_image
if ($categories_image = zen_get_categories_image($current_category_id)) {
?>
<div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div>
<?php
}
} // categories_image
?>
I think the code you've shown is for category images on a product listing page (which are in turn activated in Admin>Configuration>Product Listing>'Include Product Listing Sub Categories Image' & 'Include Product Listing Top Categories Image'). From your link, that's not the page displayed.
The code controlling category images on a 'category listing' page is in includes\modules\YOUR_TEMPLATE\category_row.php (if it's not there it will be at includes\modules\category_row.php
Code:
$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => '<h3><a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '' . $categories->fields['categories_name'] . '</a></h3>');
You could check and see if the code is present/complete.
Bookmarks