Hi,
Please take a look at:
http://www.kledingmetzorg.nl and click on the category "
Beauty/wellness", you see the following categories appear:
- shirts
- schorten
- jassen
- broeken
Now, when you choose one of these subcategories, they will dissapear from the menu on the new loaded page:
http://www.kledingmetzorg.nl/Shirts-p-1-c-5.html
My code:
fancy_subcategories.tpl:
HTML Code:
{* $Id: fancy_subcategories.tpl,v 1.21.2.4 2008/04/08 13:03:25 max Exp $ *}
{foreach from=$categories item=c key=catid}
<li><a href="home.php?cat={$c.categoryid}">{$c.category}</a>
{if ($c.expanded || $config.Fancy_Categories.fancy_js eq "Y") && $c.subcategory_count > 0}
<ol>
<li>{include file="`$fc_skin_path`/fancy_subcategories_sub.tpl" parent=$c categories=$c.childs}</li>
</ol>
{/if}
</li>
{/foreach}
fancy_subcategories_sub.tpl:
HTML Code:
{foreach from=$categories item=c key=catid}
<a href="home.php?cat={$c.categoryid}">{$c.category}</a>
{if ($c.expanded || $config.Fancy_Categories.fancy_js eq "Y") && $c.subcategory_count > 0 && $cat == $c.categoryid}
<ol>
<li>{include file="`$fc_skin_path`/fancy_subcategories_sub.tpl" parent=$c categories=$c.childs}</li>
</ol>
{/if}
{/foreach}
Can someone help me?