Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Node is saved as draft in My Content >> Draft
  • Getting all subcategories by parent category id in magento

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1
    Comment on it

    load(2); // 7 is the ID of Main Category $subcategory = $category->getAllChildren(true); array_shift($subcategory); if($subcategory!=null) { foreach ($subcategory as $sub) { $sub1 = Mage::getModel('catalog/category')->load( $sub); $sub1->getUrl(); $sub1->getName(); $sub1->getDescription(); ?>

                <img src="<?php echo $sub1->getImageUrl();?>"/>
                <?
    
                }?>
                <?php }?>
    
    Subcategories in Magento

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: