The panels in category listing_list.php do not appear to be working correctly.
Never able to select the first panel.
After applying modifications shown below worked ok.
PHP 5.3, Hikashop 1.5.2
case 'allchilds':
jimport('joomla.html.pane');
// MODIFIED
// $found = 0;
$found = -1;
if(JRequest::getString('option',HIKASHOP_COMPONENT) && JRequest::getString('ctrl','category') && $cid = JRequest::getInt('cid',0)){
$i=0;
if(!empty($this->rows)){
foreach($this->rows as $k => $row){
if($row->category_id==$cid){
$found = $i;
break;
}
if(!empty($row->childs)){
foreach($row->childs as $child){
if($child->category_id==$cid){
$found = $i;
break 2;
}
}
}
$i++;
}
$app =& JFactory::getApplication();
// MODIFIED
// if($found){
if($found >= 0){
$app->setUserState(HIKASHOP_COMPONENT.'.last_category_selected',$found);
}else{
$found = (int)$app->getUserState(HIKASHOP_COMPONENT.'.last_category_selected');
}