-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.41
I tried to edit the category listing_div.php to add subcategory images instead of the subcategory name below the current category. But I can't figure out how to get there.
This is what I already have, but I can't get the image of the subcategory:
<?php
$image_options = array('default' => true,'forcesize' => $this->config->get('image_force_size', true),'scale' => $this->config->get('image_scale_mode', 'inside'));
$img = $this->image->getThumbnail(@$this->row->file_path, array('width' => $this->image->main_thumbnail_x, 'height' => $this->image->main_thumbnail_y), $image_options);
if($img->success)
{
echo '<img class="hikashop_product_listing_image" title="'.$this->escape(@$this->row->file_name).'" alt="'.$this->escape(@$this->row->file_name).'" src="'.$img->url.'" width="60px" height="35px" />';
}
/*
echo $child->category_name;
if($this->params->get('number_of_products',0))
{
echo ' ('.$child->number_of_products.')';
}
*/
?>
Can someone please help me with this?
Thank you very much!