If you are using the built-in Zen Cart categories navigation, there are classes that can be styled to distinguish the current category path even when a product info page is open. We can advise what to do if we can see your site live.
If you are using the built-in Zen Cart categories navigation, there are classes that can be styled to distinguish the current category path even when a product info page is open. We can advise what to do if we can see your site live.
Sent you a pm with the link to the domain. Domain is still under construction.
Thanks
I can look at it in detail when I get home tomorrow.
Have you figured it out since you posted? Your categories-tabs navigation corectly shows the active top category, even when in an individual product page (as it should be able to do by default).
If you are looking to have the sidebox "Departments" menu do this, it will not be possible in your current configuration, as you have used Categories Dressing headings to mimic a complete second-level subcategory menu without actually using any real categories. If you want those to show the active category, you will need to reconfigure it to use the ch_categories option, and set the define to show only the second-level subcategories.
It appears that the "departments" are a mix of various levels, with some categories not represented at all. You are not going to be able to have this highlighted without new custom coding, or possibly some very fancy styling applied to ch_categories.
Last edited by gjh42; 28 Dec 2010 at 07:46 PM.
Hello,
Yeah, managed to figured it out myself. Copied the script from the tpl_main_page.php and just edited it according to the category id.
As for the "departments" menu, it will probably stay as it is as the active tab on the top menu will be enough to tell visitors where they are on the site. This menu is also not done yet so some of the categories are not represented, they are just a list of what categories im planning on having.
Thanks for taking the time to have a look.
All the best
Huh... looks like you reinvented the wheel by creating custom categories and other links menus for the header. Did you know that you could have just applied a bit of styling in the stylesheet (and possibly moved those sections of code a bit in the standard tpl_header.php) to result in the identical functions as what you built?
Didnt know that. But would I be using the built in categories tab to do that?