Category listing panel operation
- brainforge
-
Topic Author
- Offline
Less
More
15 years 2 months ago #20444
by brainforge
Category listing panel operation was created 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
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.
15 years 2 months ago #20456
by nicolas
Replied by nicolas on topic Re: Category listing panel operation
indeed 
We'll add that fix.
Thanks
We'll add that fix.
Thanks
Please Log in or Create an account to join the conversation.
Time to create page: 0.155 seconds