View Single Post
  #2  
Old 04-27-2005, 10:48 PM
 
jburba2000 jburba2000 is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: Oklahoma
Posts: 66
 

Default

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}
__________________
Mindells.com - Your Style. Your Comfort. Your Way.
X-Cart Platinum - 4.6.1
Reply With Quote