-
$_category = $this->getCurrentCategory();
$collection = Mage::getModel(‘catalog/category’)->getCategories($_category->entity_id);
$helper = Mage::helper(‘catalog/category’);
foreach ($collection as $cat):
if($_category->getIsActive()):
$cur_category = Mage::getModel(‘catalog/category’)->load($cat->getId()); ?> <a href=”<?php echo $helper->getCategoryUrl($cat);?>”> <?php echo $cat->getName();?> <?php endif; endforeach; ?> -
$_category = $this->getCurrentCategory();
$collection = Mage::getModel(‘catalog/category’)->getCategories($_category->entity_id);
$helper = Mage::helper(‘catalog/category’);
foreach ($collection as $cat):
$cur_category = Mage::getModel(‘catalog/category’)->load($cat->getId()); ?> <a href=”<?php echo $helper->getCategoryUrl($cat);?>”> <?php echo $cat->getName();?> <?php endforeach; ?> -
$_helper = Mage::helper(‘catalog/category’);
$_categories = $_helper->getStoreCategories();
if (count($_categories) > 0):
foreach($_categories as $_category): ?> <a href=”<?php echo $_helper->getCategoryUrl($_category) ?>”> <?php echo $_category->getName() ?> <?php endforeach; endif; ?> -
None of the above.
Mage_Catalog_Model_Resource_Category::getChildrenCategories()
точно не работает: