I'm creating a webshop in Drupal 7 using Commerce but I'm stuck on something. When I'm viewing my product node, I would like to activate 1 of the taxonomy terms of my vocabulary named 'category'. So when I'm viewing a product node which is a book, the menu item of 'Webshop >> Books' needs to be highlighted as 'active'.
I've tried menu_set_active_item but this will override the $_GET['q'] parameter which is not good because it affects the page content. When I use this, the taxonomy term is displayed insted of the node so that's not what I want. I only want to active the item in the menu.
I think the way to go is using menu_set_active_trail or menu_tree_set_path but I can't get it working. Maybe someone can show me an example? Maybe I'm only using the wrong hook?
PS: I'm using menu_block to render the menus.