<?php
$root = Mage::getModel(‘catalog/category’)->load($cat3);
$subCat = explode(‘,’,$root->getChildren());
$collection = $root
->getCollection()
->addAttributeToSelect(“*”)
->addFieldToFilter(“entity_id”, array(“in”, $subCat) );
?>
<ul><?php
foreach($collection as $catname){
$_img_path = Mage::getBaseUrl(‘media’).’catalog/category/’;
//print_r($catname); ?><li>
<img src=”<?=$_img_path.$catname->getThumbnail();?>”/>
<a href=”<?=$catname->getUrl();?>”><?php
echo $catname->getName();
echo $catname->getThumbnailUrl();
?></a></li><?php
} ?></ul>
0