echo Mage::getModel('catalog/category')->load($this->getProduct()->
getCategoryIds($_item->getProductId()))->getName();
This is the code to get category name in cart page
getCategoryIds($_item->getProductId()))->getName();
This is the code to get category name in cart page
Bang On.....Great works like charm on magento 1.7.2 Community...Many Thanks.
ReplyDeleteNiranjan
its not work in left_coloumn.phtml
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHellow frnds use this code
ReplyDeletehelper('catalog/output');
$_category_detail=Mage::registry('current_category');
echo $_category_detail->getName(); //gives current category name
echo $_category_detail->getId(); //gives current category id
?>
Not working
ReplyDelete