Wednesday, 3 July 2013

Magento get subcategories by category ID


$catID = "15"; 
$children = Mage::getModel('catalog/category')->getCategories($catID);
foreach ($children as $category) {
        echo $category->getId();
        echo $category->getName();
        print_r($category->getData());
}

No comments:

Post a Comment

Thanks for your comments.