View Single Post
  #1  
Old 03-20-2009, 05:19 AM
 
c.vogels c.vogels is offline
 

Member
  
Join Date: Sep 2006
Posts: 18
 

Default 3 level of categories disappears after selecting 1

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?
__________________
x-cart 4.1.10 gold
Reply With Quote