wolflet Posted April 30, 2014 Share Posted April 30, 2014 (edited) Currently, when i click on a category on my shop, it goes into another page showing the subcategories. I would like it to display all products within the category without the subcategories. Is that possible? Thanks in advance. my shop url is http://www.eboutiques.sg Edited May 11, 2014 by wolflet (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 30, 2014 Share Posted April 30, 2014 it is. turn on block layered navigation module. and from category.tpl file located in your theme directory remove this code: {if isset($subcategories)} <!-- Subcategories --> <div id="subcategories"> <p class="subcategory-heading">{l s='Subcategories'}</p> <ul class="clearfix"> {foreach from=$subcategories item=subcategory} <li> <div class="subcategory-image"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> </div> <h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'|truncate:350}</a></h5> {if $subcategory.description} <div class="cat_desc">{$subcategory.description}</div> {/if} </li> {/foreach} </ul> </div> {/if} 1 Link to comment Share on other sites More sharing options...
wolflet Posted April 30, 2014 Author Share Posted April 30, 2014 Thank vekia, that helped remove the sub categories, but the products from the subcategories won't show unless i add the association as the main category. I have selected show products from subcategories under the block layered navigation module. Did i do something wrong somewhere? Link to comment Share on other sites More sharing options...
vekia Posted April 30, 2014 Share Posted April 30, 2014 no you did everything that is necessary try to clear shop cache and turn on froce compile check your category page once again then Link to comment Share on other sites More sharing options...
Recommended Posts