Category listing panel operation

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
12 years 9 months ago #20444

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');
	}

Please Log in or Create an account to join the conversation.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
12 years 9 months ago #20456

indeed :)
We'll add that fix.
Thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum