Hi Vekia,
I think no, how I can see it?
I added in category.tpl "{hook h='category' category=$subcategory}" and than I created a new module with this function:
public function hookCategory($params) {
$category = $params['category'];
$id_category = $category['id_category'];
$parent_category = new Category($id_category);
$children = $parent_category->getSubcategories($this->context->language->id);
$this->context->smarty->assign('category', $category);
$this->context->smarty->assign('children', $children);
if ($this->psversion()==5 || $this->psversion()==6){
$this->context->controller->addCSS(($this->_path).'css/menucategory.css', 'all');
} else {
Tools::addCSS(($this->_path).'css/menucategory.css', 'all');
}
return $this->display(__FILE__, 'menucategory.tpl');
}
I forgot something?
Thanks