Quote:
Originally Posted by dalmuti
Here is my categories.tpl file:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *}
{capture name=menu}
{if $active_modules.Fancy_Categories ne ""}
{include file="modules/Fancy_Categories/categories.tpl"}
{assign var="fc_cellpadding" value="0"}
{else}
{if $config.General.root_categories eq "Y"}
{foreach from=$categories item=c}
<font class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category}</a></font><br />
{foreach from=$allcategories item=cat}
{if $cat.parentid eq $c.categoryid}<font class="CategoriesList"><a href="home.php?cat={$cat.categoryid}" class="VertMenuItems">{$cat.category}</a>
</font>
<br />
{/if}
{/foreach}
{/foreach}
{else} {foreach from=$subcategories item=c key=catid}
<font class="CategoriesList"><a href="home.php?cat={$catid}" class="VertMenuItems">{$c.category}</a></font><br />
{/foreach}
{/if}
{/if}
The text in bold will correct both issues for you.
Thanks,
Louise
|
I got this one working on our shop site.
But as we have up to 50 sub categories, your talking a very long list when a user goes into a root category, means having to scroll, scroll and yet more scrolling, just isnt feasible for our shop.
Is there anyone that knows of a way (I think this may have been posted previously but as I am rushed to get this working, I thought I would post this question).
Is there anyway of displaying a list drop down menu at the top, above the welcome message, of root level categories and then when a user selects a root category, it then displays the relevant sub categories, magically appears and then are able to select products from that sub category?
Thanks for your help,
Jeremy.