Hi,
Here is the code in the current version:
$page_title = $this->params->get('page_title');
$document =& JFactory::getDocument();
if((empty($page_title) && !empty($element->category_name)) || !$this->params->get('use_module_name')){
@$this->params->set('page_title',$element->category_name);
$document->setTitle( strip_tags($element->category_name) );
}else{
$document->setTitle( $page_title );
}
Here is the code that will be in next version of HikaShop:
$document =& JFactory::getDocument();
$title = $this->params->get('page_title');
if(empty($title)){
$title = $this->params->get('title');
}
$use_module = $this->params->get('use_module_name');
if(empty($use_module) && !empty($element->category_name)){
$title = $element->category_name;
}
$document->setTitle(strip_tags($title));
$this->params->set('page_title',$title);
I'm not sure if it will be ok to just replace it but you should try.