X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   3 level of categories disappears after selecting 1 (https://forum.x-cart.com/showthread.php?t=46407)

c.vogels 03-20-2009 05:19 AM

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?

JWait 03-21-2009 09:10 AM

Re: 3 level of categories disappears after selecting 1
 
I am not sure what you are asking.... "Beauty/wellness" is a subcategory of "C.R. Design"

c.vogels 03-22-2009 11:31 PM

Re: 3 level of categories disappears after selecting 1
 
Quote:

Originally Posted by JWait
I am not sure what you are asking.... "Beauty/wellness" is a subcategory of "C.R. Design"


Yes... the structure:

- C.R. Design
---- Beauty/Wellness
-------- shirts
-------- schorten
-------- etc. etc.

- Profashional
---- Tandartsen / apotheken
-------- shirts
-------- schorten
-------- etc etc
---- verzorgingscentra
-------- etc etc

The first 2 category levels schould be displayed on the website as default. When i click on "Beauty/Wellness" i wil see the subcategories (shirts, shorten etc.). This is ok.

Now the issue:
When i click on Beauty/Wellness > Shirts (3d level category) 3d level categories dissapears, while they shouldn't.


All times are GMT -8. The time now is 11:47 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.