wide-eyed Posted July 4, 2015 Share Posted July 4, 2015 How do I turn off the subcategories from displaying on the product pages? I did this once from the back office dashboard but can't find it now. Link to comment Share on other sites More sharing options...
Dh42 Posted July 5, 2015 Share Posted July 5, 2015 It is not an option in the default theme. Some aftermarket themes will allow for it. You have to edit the template now to make it happen. Link to comment Share on other sites More sharing options...
Paulito Posted July 5, 2015 Share Posted July 5, 2015 Hello As Dh42 has said, you need to go to: (assuming you are using PS 1.6 default) your shop/themes/default-bootstrap/category.tpl and <!-- comment out --> or delete this code around Lines 76 to 98 (I prefer to comment out code as it's faster to put back at a later date) <!-- <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} --> Before http://screencast.com/t/8G4hq18skyxA After http://screencast.com/t/A9qXDvmD2s Paul 1 Link to comment Share on other sites More sharing options...
razaro Posted July 5, 2015 Share Posted July 5, 2015 (edited) Not sure if this depends of module, theme or Prestashop version but in module Theme configurator one of options is to Display/hide subcategories. And Paulito code hides them for sure. Edited July 5, 2015 by razaro (see edit history) 1 Link to comment Share on other sites More sharing options...
wide-eyed Posted July 8, 2015 Author Share Posted July 8, 2015 Not sure if this depends of module, theme or Prestashop version but in module Theme configurator one of options is to Display/hide subcategories. And Paulito code hides them for sure. This is where it is! Yes Paulito code will hide them too. Thanks everyone! Link to comment Share on other sites More sharing options...
Recommended Posts