How to get current category name and id on product page in magento.?
Following is the code to get current Category name and id on product page in Magento. <?php $catname = Mage::getModel(‘catalog/layer’)->getCurrentCategory()->getName(); //gives current category name $catid = Mage::getModel(‘catalog/layer’)->getCurrentCategory()->getId(); //gives current category...