Monique_cl Posted November 17, 2015 Share Posted November 17, 2015 (edited) Hallo, ik wil graag de subcategorieën van de categorie pagina verwijderen. Ik heb al geprobeerd om een stuk van "category.tpl" file te verwijderen zoals hier staat http://phpmysqlkit.blogspot.nl/2014/09/prestashop-remove-subcategories-list.html Maar dat werkt niet. Iemand een idee hoe ik het wel weg krijg? Edited November 17, 2015 by Monique_cl (see edit history) Link to comment Share on other sites More sharing options...
Monique_cl Posted November 17, 2015 Author Share Posted November 17, 2015 Staat de instelling 'Template-compilatie' wel op 'Hercompileer templates als de files zijn bijgewerkt?' Op de pagina 'Geavanceerde instellingen > Prestaties'. Dit stond idd niet goed. Ik heb het aangepast maar nu geeft hij Serverfout 500 aan Link to comment Share on other sites More sharing options...
Monique_cl Posted November 17, 2015 Author Share Posted November 17, 2015 Ja ik heb een back-up gemaakt Link to comment Share on other sites More sharing options...
Monique_cl Posted November 17, 2015 Author Share Posted November 17, 2015 (edited) I removed this part of the file. {if isset($subcategories)} {if (isset($display_subcategories) && $display_subcategories eq 1) || !isset($display_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}{$lang_iso}-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'}</a></h5> {if $subcategory.description} <div class="cat_desc">{$subcategory.description}</div> {/if} </li> {/foreach} </ul> </div> {/if} Edited November 17, 2015 by mdekker Uitlijning (see edit history) Link to comment Share on other sites More sharing options...
Monique_cl Posted November 17, 2015 Author Share Posted November 17, 2015 Dank je ! dat was idd het probleem. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now