Hi
Many thanks for posting this mod. Exactly what I needed.
I was trying to implement this on the menu section as well.
So for categories.tpl I added
Code:
{section name=cat_num loop=$subcategories}
{if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if}
<a href="home.php?cat={ $subcategories[cat_num].categoryid }" class="ProductTitle">
{ $subcategories[cat_num].category|escape }</a> ({$subcategories[cat_num].product_count})
{if $config.Appearance.count_products eq "Y"}
{if $subcategories[cat_num].product_count}
({ $subcategories[cat_num].product_count } Products)
{elseif $subcategories[cat_num].subcategory_count}
({ $subcategories[cat_num].subcategory_count } Subcategories)
{/if}
{/if}
{/section}
This code works fine if your in the subcategory listing. However, when you go into the product details, the menu disappears.
I notice it requires {categoryid} but I think in the product menu, it needs to find the {parentid}.
For the index page, would I be able to write an if then statement to turn this code off ?
Many thanks for a great code!