<?php $_helper = Mage::helper( 'catalog/category' ) ?> <?php $_categories = $_helper ->getStoreCategories() ?> <?php $currentCategory = Mage::registry( 'current_category' ) ?> <?php if ( count ( $_categories ) > 0): ?> <ul> <?php foreach ( $_categories as $_category ): ?> <li> <a href= "<?php echo $_helper->getCategoryUrl($_category) ?>" > <?php echo $_category ->getName() ?> </a> <?php if ( $currentCategory && $currentCategory ->getId() == $_category ->getId()): ?> <?php $_category = Mage::getModel( 'catalog/category' )->load( $_category ->getId()) ?> <?php $_subcategories = $_category ->getChildrenCategories() ?> <?php if (
Magento helper blog is created for the help of magento developers, magento helper provide all type problem solution like magento extensions problem, magento compilation process or magento related any help.