<?php
$rootCategoryId = Mage::app()->getStore()->getRootCategoryId();
$_category = Mage::getModel(‘catalog/category’)
->load($rootCategoryId);
// You can then get all of the top level categories using:
$_subcategories = $_category->getChildrenCategories();
?>
$rootCategoryId = Mage::app()->getStore()->getRootCategoryId();
$_category = Mage::getModel(‘catalog/category’)
->load($rootCategoryId);
// You can then get all of the top level categories using:
$_subcategories = $_category->getChildrenCategories();
?>
(Visited 55 times, 1 visits today)