Home > Magento > Get Current Category Id in Magento

Get Current Category Id in Magento

  

Use the below code to get the current category id category ID in magento

 echo Mage::getModel('catalog/layer')->getCurrentCategory()->getId(); 

Cheers!
Amjath

Categories: Magento Tags:
  1. No comments yet.
  1. No trackbacks yet.