Just another WordPress.com weblog

Posts tagged ‘Magento get cureent category’

Magento : Get Current Category – Category Id

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

vishal surani

Advertisements