demo.abantecart.com
I managed to get some products on the menu so:
Code: Select all
"catalog/controller/common/header.php"
before
$children = $this->model_catalog_category->getCategories($category['category_id']);
add
if ($this->model_catalog_category->getCategories($category['category_id'])) {
before
// Level 1
add
} else {
$dataProduct = array(
'filter_category_id' => $category['category_id'],
'filter_sub_category' => true
);
$children = $this->model_catalog_product->getProducts($dataProduct);
foreach ($children as $child ) {
$children_data [] = array(
'name' => $child['name'],
'href' => $this->url->link('product/product', 'product_id=' . $child['product_id']),
);
}
}
... And my options are here...
Please help me...