Skip to main content

Category listing panel operation

More
15 years 2 months ago #20444 by brainforge
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
Code:
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.

More
15 years 2 months ago #20456 by nicolas
indeed :)
We'll add that fix.
Thanks

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

Time to create page: 0.155 seconds
Powered by Kunena Forum