I'm trying to get my navigation category to stay "highlighted" when I'm in a sub category or product page. The general categories_tree.tpl has some code in it to check if the current category matches category ID:
{if $category.category_id == $smarty.get.category_id}
This is pretty basic and lets me set a class for my HTML element (which is what I want to do). I also want to be able to check if the current category and/or product id has a parent ID...How do I access this variable? In the Smarty Debug I can see this:
4 => Array (6) category_id => "122" parent_id => "85" id_path => "85/122" category => "Desktops" position => "0" level => 1
I want to have some code work that looks like this:
If current category = current category or current category parent id then do this
Anyone dealt with this before?
Thanks,
B