2026 Executive BenchmarkMid-Market Enterprise Modernization: How leaders across unify Commerce, Odoo ERP & AI in 90 days.
MAGENTO COMMERCE

Get subcategories detail of parent category

Display subcategory Detail of Parent categories, Show Description of category $subcats = $cat->getChildren(); echo ' ‘ ; foreach(explode(‘,’,$subcats) as $subCatid) { $i++; $_categ...

Akshar Group Technologies
Dec 25, 2020
1 min read
Verified Source

Display subcategory Detail of Parent categories, Show Description of category

php
load(83); // Category id
$subcats = $cat->getChildren();
echo '
‘ ; foreach(explode(‘,',$subcats) as $subCatid)
{ $i++; $_category = Mage::getModel(‘catalog/category')
->load($subCatid);
$catdesc = $_category->getDescription();
$catdesc1 = implode(‘ ‘, array_slice(explode(‘ ‘,
$catdesc), 0, 100)); //get limit words in description if(
$_category->getIsActive()) {?>

<img src='getThumbnail() ?>' width='200? height='200? />
//Get image of Category
<a href='getURL();?>'>
code
getName() ;?>

//Get Category Name
<?php } } echo '
' ; ?>
Share this playbook
LET'S BUILD WHAT'S NEXT

What's Holding Your Business Back?

Tell us where you want to go, what's getting in the way, and we'll help you figure out the technology to get there.

No sales pitch. Confidential strategic advisory.