hello
it's easy to achieve,
in this case we have to modify block top menu module .php file.
at the moment there is no other way because this addon generates code to display in php file (not in tpl as it is in other modules)
so, open module directory, then go to subdirectory named "blocktopmenu"
open file named blocktopmenu.php
search for code which looks like code that i pasted below:
$html .= $this->generateCategoriesMenu($category['children']);
if ((int)$category['level_depth'] == 2)
{
$files = scandir(_PS_CAT_IMG_DIR_);
if (count($files) > 0)
{
$html .= '<li id="category-thumbnail">';
foreach ($files as $file)
if (preg_match('/'.$category['id_category'].'-([0-9])?_thumb.jpg/i', $file) === 1)
$html .= '<div><img src="'.$this->context->link->getMediaLink(_THEME_CAT_DIR_.$file)
.'" alt="'.Tools::SafeOutput($category['name']).'" title="'
.Tools::SafeOutput($category['name']).'" class="imgm" /></div>';
$html .= '</li>';
}
}
change it to:
if ((int)$category['level_depth'] == 2)
{
$files = scandir(_PS_CAT_IMG_DIR_);
if (count($files) > 0)
{
$html .= '<li id="category-thumbnail">';
foreach ($files as $file)
if (preg_match('/'.$category['id_category'].'-([0-9])?_thumb.jpg/i', $file) === 1)
$html .= '<div><img src="'.$this->context->link->getMediaLink(_THEME_CAT_DIR_.$file)
.'" alt="'.Tools::SafeOutput($category['name']).'" title="'
.Tools::SafeOutput($category['name']).'" class="imgm" /></div>';
$html .= '</li>';
}
}
$html .= $this->generateCategoriesMenu($category['children']);