Jump to content

list of category


Recommended Posts

hello i need list subcategory of category and sub sub category of sub category??

i have( in category.tpl) :

 {if $subcategory.id_category == 26}
{$subcategory.id_category}

 {foreach from=$subcategories item=subcategory}
 {$subcategory.name}
 {/foreach }
{/if}



but this give me this same lvl what 26

for example
cat
cat
--bb id_category=26
------cc
------cc
--bb
cat
cat

and i need list -bb

how can i check,that my category have sub category??
$category.child??

Link to comment
Share on other sites

nobody know how add subcategory in category.tpl??

{foreach from=$subcategories item=subcategory}

getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">
                   {if $subcategory.id_image}
getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" />
                   {else}

                   {/if}

[b]  HERE WHANT HAVE SUBCATEGORY OF IT CATEGORY!![/b]


       {/foreach}



plx help

Link to comment
Share on other sites

OK! I think I understand what you need.

Open your home page and via your browser get your page source
Then go to "Categories" and find the list of your links
it should be something like:

  
CAT TITLE



*10 is the whatever your category id is.

Copy that code and insert it in the product description.

I think it will work.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...