V2.x, how to display subcategories like rootcategories

After entering a catalog, there are 2 parts displayed:



1)Catalog infomation: Image of this catalog and the list of its subcategories



2)Products in the catalog



[COLOR=“Red”]How to change the way of displaying Catalog infomation like the way of displaying rootcategories. So, there are Its subcategories’ pictures and the names of them at the bottom?[/COLOR]



I have replaced the following code in the views/categories/view.tpl


[QUOTE]

{if $subcategories}



{if $subcategories|@count < 6}



    {/if}

    {foreach from=$splitted_subcategories item=“ssubcateg”}

    {if $subcategories|count >= 6}





      {/if}

      {foreach from=$ssubcateg item=category name=“ssubcateg”}

      {if $category.category_id}
    • {$category.category}
    • {/if}

      {/foreach}

      {if $subcategories|count >= 6}





    {/if}

    {/foreach}

    {if $subcategories|count < 6}



{/if}



{/if}[/QUOTE]



by this following code


[QUOTE]

{if $subcategories}

{include file=“views/categories/components/categories_multicolumns.tpl” categories=$subcategories }

{/if}

[/QUOTE]



But the only the names of subcategories are displayed. There is NO categories’ pictures:sad:

[url]CS-Cart Documentation — CS-Cart 4.15.x documentation

[quote name=‘joe’][url]CS-Cart Documentation — CS-Cart 4.15.x documentation



This does not work corectly! Only the picture of last catalog in the list of subcategories is displayed. The link (id) of all subcategories assign as the last catalog’s link (id).





Thank you any way!

[url]http://forum.cs-cart.com/showthread.php?t=11307[/url]