View Single Post
  #15  
Old 03-30-2009, 04:03 AM
 
user1 user1 is offline
 

Member
  
Join Date: Feb 2009
Posts: 29
 

Default Re: Subcategory Mods on 4.2.0

Quote:
Originally Posted by Victor D
try to replace
Code:
function func_getallsubcat(){ $a =func_get_categories_list("", true, "all"); $b=$a['all_categories']; $c=array(); foreach ($b as $k=>$v){ if($v['parentid']!="0") $c[$v['parentid']][]=$v; } return $c; } $smarty->assign("allsubcategories", func_getallsubcat());

with
Code:
function func_getallsubcat(){ $a =func_get_categories_list("", true); $b=$a['all_categories']; $c=array(); foreach ($b as $k=>$v){ if($v['parentid']!="0") $c[$v['parentid']][]=$v; } return $c; } $smarty->assign("allsubcategories", func_getallsubcat());

Thank you for your answer. Still, I get the same result with this change.

I cleaned up the templates' cache but same result.

You can see the problem in my shop.


Best regards,
Andrew
__________________
x-cart v4.3.2 gold
http://www.FarMoreThanGames.com
Reply With Quote