Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

category path
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

how to display category name and sub category name ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Anjanesh
Sr. Member
 
Avatar
Total Posts:  136
Joined:  2008-03-15
Mumbai, India
 

foreach ($this->getStoreCategories() as $_category)
{
       $_category
->getName() // will give the name of the category
       
$children $category->getChildren();
       
$hasChildren $children && $children->count();
}
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top