The problem is that the breadcrumbs duplicate the name of the root category.
Mkeravi opened this issue · comments
In the catalog /catalog/controller/product/category.php
$category_info = $this->model_catalog_category->getCategory($path_id);
if ($category_info) {
$data['breadcrumbs'][] = [
'text' => $category_info['name'],
'href' => $this->url->link('product/category', 'language=' . $this->config->get('config_language') . '&path=' . $path . $url)
];
}
and change to
$parent_info = $this->model_catalog_category->getCategory($path_id);
if ($parent_info) {
$data['breadcrumbs'][] = [
'text' => $parent_info['name'],
'href' => $this->url->link('product/category', 'language=' . $this->config->get('config_language') . '&path=' . $path . $url)
];
}
wqhat the hell u talking about the code was already like that