I'm trying to display brands on my store. I sell both men and women clothing so I have two separate brand categories.
My category structure looks like this:
Men
Brands
x-brand
Women
Brands
y-brand
I would like to display the brand of the product.
I found this code:
$children = Mage::getModel('catalog/category')->getCategories(10);
foreach ($children as $category) {
echo $category->getName();
}
However, it works for only one category and displays all subcategories in the parent category not the one owned by the product.
How can I modify this to show the subcategory of the current brand category.
I hope this made sense and I appreciate any help!
Best Answer
To display sub-category listing for a give category
See more @ Magento: Display sub-category list