Magento – Show current category in layered navigation

layered-navigationmagento-1.9

In layered navigation view, my themes show which filters are currently applied to the view. However, it doesn't show which category you are currently in.

I guess I have to edit the state.phtml, but what would I add in order to get current category?

Best Answer

You can use magento registry variable

Mage::registry('current_category')

or use

Mage::getSingleton('catalog/layer')->getCurrentCategory() for getting current category object

Second option is best

Related Topic