Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Getting current category ID in the header
 
leruss
Jr. Member
 
Total Posts:  21
Joined:  2008-08-13
 

Hi all,

I’m stuck in an apparently trivial question : how to get the current category ID and use it in the header ?

The final goal is to change the header’s banner with the current category image only if we’re in an eligible category, so I need the category ID in my header to test that with PHP code.

I almost managed to get it works, for the categories / subcategories / products pages, but not on the Home / Client account / etc…

Read http://www.magentocommerce.com/boards/viewthread/4693/ for my incomplete solution…

And please advice ! smile

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top