I am trying to create a custom menu block that displays depending on what the root category the user is browsing.
So far I have came up with a few ways to display the custom menu when they are in a specific category, but when they browse to a subcategory - the menu is gone.
Here are the different ways I have found so far, but again it only works for the current category that they are in:
Code:
{if $current_category.category eq "Livestock"}
{ include file="customer/menu_livestock.tpl" }
{/if}
{if $current_category.categoryid eq "2"}
{ include file="customer/menu_horse.tpl" }
{/if}
{if $cat eq "3"}
{ include file="customer/menu_pet.tpl" }
{/if}
How can I create something like this, but will work acrosss the subcategories of the specific root category?
Also there is only 3 root categories if that makes it simple...