Category Listing in Magento : Category listing is very common and useful for all the magento information .Many time magento developers needs this information . So here i’ll explain to get all the categories and subcategories in magento.Open the phtml file of the magento (where you want the listing ) and add the following code
$MainCat = Mage::getModel(‘catalog/category’)->load(3)->getChildren();
foreach($cats as $opt)
Just enter your email below to subscribe and receive weekly updates about the most interesting similar articles.
Share article viaSignUp Again
<?php echo $catname->getName();?>