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?


You can use magento registry variable


or use

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

Second option is best

  • Thanks! Isn't there any stock functionality to show the current category in state.phtml? I see it in lot of other themes, but it's not present in my theme. – user2806026 Oct 6 '15 at 10:08

you can get the current category like that


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.