d.huijberts Posted March 3, 2013 Share Posted March 3, 2013 Hoi, Ik heb een hoofdcategorie met producten, en daar bij 2 sub categorieen. Als ik de hoofdcategorie open, dan zie ik aan de linkerkant het menu "uitklappen" maar ook in het midden zie ik de sub categorieen, en daar onder pas mijn producten die in de hoofd categorie staan. Hoe kan ik de sub categorieen in het midden weg krijgen Link to comment Share on other sites More sharing options...
Carlsen Posted March 8, 2013 Share Posted March 8, 2013 Hi, This is for Prestashop 1.4: open category.tpl (www/themes/default/category.tpl) delete everything from {if isset($subcategories)} to and including {/if} save and force recompile your prestashop This is the code that you must delete, depending on your theme and Prestashop version, it might differ a bit: {if isset($subcategories)} <!-- Subcategories --> <div id="subcategories"> <h3>{l s='Subcategories'}</h3> <ul class="inline_list"> {foreach from=$subcategories item=subcategory} <li> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}"> {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img src="{$img_cat_dir}default-medium.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a><br /> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> </li> {/foreach} </ul> <br class="clear"/> </div> {/if} 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