$root_id = Mage::app()->getStore()->getRootCategoryId();
$categories = Mage::getModel(‘catalog/category‘)->getCategories($root_id);
获得分类名称
foreach($categories as $sub_cat){
echo $sub_cat->getName();
}
magento 获得root categories,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/echofrank/p/3927100.html