Tag Archives: magento get current category name on product page
Magento get current category name
Magento get current category name: You can get the category id and category name on product detail page as below
Magento get current category name Example
Use the following code to get current category detail.
getCurrentCategory()->getId(); $catName = Mage::getModel('catalog/layer')->getCurrentCategory()->getName(); ?>
Which will give the category name and id.