Hi,
This request is used for the Breadcrumb.
It allow to get all the parent categories and fill the breadcrumb correctly.
If you don't use breadcrumb or you use the simplified one, you can potentially edit the file "components/com_hikashop/views/product/view.html.php"
And in the "'listing()" function replace the code:
$categoryClass = hikashop_get('class.category');
$pathway = $app->getPathway();
$category_pathway = '&'.$pathway_sef_name.'='.JRequest::getVar('menu_main_category');
$categories = $categoryClass->getParents(reset($pageInfo->filter->cid));
$one = true;
if(!empty($categories)){
foreach($categories as $category){
if($one){
$one = false;
}else{
$categoryClass->addAlias($category);
$pathway->addItem($category->category_name,hikashop_completeLink('category&task=listing&cid='.(int)$category->category_id.'&name='.$category->alias));
}
}
}
By:
And in the "listing()" function of the file "components/com_hikashop/views/category/view.html.php" you can comment the code:
$one = true;
if(is_array($categories)){
foreach($categories as $category){
if($one){
$one = false;
}
else{
$class->addAlias($category);
$alias = $category->alias;
$pathway->addItem($category->category_name,hikashop_completeLink('category&task=listing&cid='.(int)$category->category_id.'&name='.$alias.$menu_id));
}
}
}