Get current category ID on category page in magento
Get current category ID and name on category page in magento.
We used this code :
<?php echo Mage::getModel(‘catalog/layer’)->getCurrentCategory()->getName(); ?>
<?php echo Mage::getModel(‘catalog/layer’)->getCurrentCategory()->getId(); ?>
Leave a Reply
Want to join the discussion?Feel free to contribute!