View Single Post
  #55  
Old 02-25-2007, 01:11 PM
 
onlineweb onlineweb is offline
 

Newbie
  
Join Date: Dec 2006
Posts: 4
 

Default Re: V4 - keeping first level subcategories viewable at all times

hi
followed your instructions but it doesnt appear to work - changed the categories.php - then the categories.tpl ? im sure im missing something, can you help

$subcategories[$k]['product_count_global'] = $subcategories[$k]['product_count'];
$subcategories[$k]['product_count'] = isset($product_counts[$k]) ? intval($product_counts[$k]) : 0;
}
}
//Subcategories in menu
function func_getallsubcat()
{
$raj =func_get_categories_list("", true, "all");
$raj1=$raj['all_categories'];
$ll=array();
foreach ($raj1 as $k=>$val)
{
if($val['parentid']!="0")
{
$ll[$val['parentid']][]=$val;
}
}
return $ll;
}
$smarty->assign("allsubcategories", func_getallsubcat());
//Subcategorie in menu - end
//if (!empty($subcategories))
// $smarty->assign("subcategories", $subcategories);
//$smarty->assign("cat", $cat);
?>
__________________
Version 4.1.3
Reply With Quote