-- HikaShop version -- : 2.6.4
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.6.20
Hi,
After updating Hikashop 2.3.3 to version 2.6.4 the language string HIKASHOP_NO_RESULT is displayed on the main page of the shop below the category listing, when there are no associated products.
Before the NO_RESULTS text only was displayed on the page with an empty result of the search filter. This was realized by adding this code to the view product/listing.php.
}elseif(( !$this->module || JRequest::getVar('hikashop_front_end_main',0) ) && (@$_REQUEST['ctrl']=='product' || @$_REQUEST['view']=='product') && (@$_REQUEST['task']=='listing' || @$_REQUEST['layout']=='listing') && !empty($this->filters) && count($this->filters)){
echo JText::_('HIKASHOP_NO_RESULT');
}
However in the 2.6.4 view of product/listing.php this code has changed into:
}elseif(( !$this->module || JRequest::getVar('hikashop_front_end_main',0) ) && ((@$_REQUEST['ctrl']=='product' || @$_REQUEST['view']=='product') || (@$_REQUEST['ctrl']=='category' || @$_REQUEST['view']=='category')) && (@$_REQUEST['task']=='listing' || @$_REQUEST['layout']=='listing') && !empty($this->filters) && count($this->filters)){
echo JText::_('HIKASHOP_NO_RESULT');
}
Apparently this new code results in showing the NO RESULT text in categories with no products too.
But that situation needs a diferent text (like ''Sorry, no products in this category') instead of 'Sorry, no results found, try another search'.
Anyway, I don't want this text on the main page with the category listing.
I solved my problem by replacing the relevant code in the 2.6.4 version by the code in the 2.3.3 override. Now it works fine,
I don't know if this is a correct solution. Perhaps it's a configuration issue?
Regards,
Udo