Posts Tagged ‘Magento get cureent category’

$layer = Mage::getSingleton(‘catalog/layer’);
$_category = $layer->getCurrentCategory();
$currentCategoryId= $_category->getId();

Bijal Bhavsar 🙂

Advertisements