View Single Post
  #5  
Old 08-02-2005, 08:42 AM
 
jburba2000 jburba2000 is offline
 

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

Default

Lite-commerce, Ive had zero experience with. What I basically did was this:

1. Copy the menu.tpl (which is basically just the html look of it) and paste it as submenu.tpl, making minor changes to the template just for the looks.
2. Create customer/subcat.tpl and add the following:
Code:
{* $Id: subcat.tpl,v 1.0 2005/04/23 10:25:49 jburba2000 Exp $ *} {capture name=subcatdiag} {assign var="tmp" value="0"} {section name=cat_num loop=$subcategories} {if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if} {/section} {foreach from=$subcategories item=subcat} {if $tmp ne "1"} {$lng.lbl_my_account}{else} <FONT class="SubCategoriesList">{ $subcat.category|escape }</FONT> {*** section name=mid loop=$manufacturers} <FONT class="SubCategoriesList">{$products.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}

(the quoted out part being the manufacturers listing for all products in that category and subcategories, because I do not have it working yet.)

3. Change home.tpl from:
Code:
{ include file="customer/categories.tpl" } {/if}
to:
Code:
{if $current_category.category ne ""} { include file="customer/subcat.tpl" } {/if} { include file="customer/categories.tpl" } {/if}
__________________
Mindells.com - Your Style. Your Comfort. Your Way.
X-Cart Platinum - 4.6.1
Reply With Quote