Alright, I know I'm on the verge of this. What I am trying to get it to say is "If no subcategories under current category, show manufacturers for all products in this subcategory" This is my first mod, and I really think it is a major one once I get it completed. I'd think Boomer or someone might know how to appreciate this one, and would probably have a bit more knowledge on the 'ifs and thens' than I.
customer/subcat.tpl
Code:
{* $Id: subcat.tpl,v 1.0 2005/04/23 10:25:49 jburba2000 Exp $ *}
{capture name=subcatdiag}
{assign var="tmp" value="0"}
{assign var=lowermostcat value=$current_category.categoryid_path|regex_replace:"/\/.*/":""}
{section name=cat_num loop=$subcategories}
{if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if}
{/section}
{foreach from=$subcategories item=subcat}
{if $subcategories[cat_num].category ne "1"}
<FONT class="SubCategoriesList">{ $subcat.category|escape }</FONT>
{else}
{section name=mid loop=$manufacturers_menu}
<FONT class="SubCategoriesList">{$manufacturers_menu[mid].manufacturer}</FONT>
{/section}
{/if}
{if $config.Appearance.count_products eq "Y"}
{*** if $subcat.product_count gt "0" ***}<FONT class="Text">({ $subcat.product_count})</FONT>{*** /if ***}
{/if}
{/foreach}
{/capture}
{ include file="submenu.tpl" menu_title=$current_category.category menu_content=$smarty.capture.subcatdiag}