khovj Posted November 24, 2013 Share Posted November 24, 2013 Hello! I have a problem, I need the subcategories, but I don't want to see them when i chois the product, i want to go directelly to the discription of this product, not in subcategorie. Is it possible? Best regards Link to comment Share on other sites More sharing options...
vekia Posted November 24, 2013 Share Posted November 24, 2013 to disable subcategories tree you can edit category.tpl file there is a code: {if isset($subcategories)} <!-- Subcategories --> <div id="subcategories"> <h3>{l s='Subcategories'}</h3> <ul class="inline_list"> {foreach from=$subcategories item=subcategory} <li class="clearfix"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img"> {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> {if $subcategory.description} <p class="cat_desc">{$subcategory.description}</p> {/if} </li> {/foreach} </ul> <br class="clear"/> </div> {/if} you can remove / comment out this code and subcategories will disappear Link to comment Share on other sites More sharing options...
khovj Posted November 24, 2013 Author Share Posted November 24, 2013 I removed this code, now it works like i wanted it! Thank you very much! Link to comment Share on other sites More sharing options...
vekia Posted November 24, 2013 Share Posted November 24, 2013 you're welcome glad to hear that i could help you i marked this thread as [solved] with regards, Milos Link to comment Share on other sites More sharing options...
Recommended Posts