j.volk Posted September 29, 2009 Share Posted September 29, 2009 Hello,I'm running Prestashop 1.2.2 and I'd like to remove the section that contains subcategories when a category is selected. In case this isn't clear I have a screenshot of the section I'm talking about.Thanks,Jason Link to comment Share on other sites More sharing options...
first1 Posted September 29, 2009 Share Posted September 29, 2009 This Topic was moved Link to comment Share on other sites More sharing options...
j.volk Posted October 1, 2009 Author Share Posted October 1, 2009 I forgot to mention, I'm using the default Prestashop template. I've seen sites with subcategories in their category menu, but no subcategories shown at the top of the main category page... I'm pretty sure some of them were using the same template I am using. I'm also pretty sure it's a simple thing to do once the lines of code that need to be edited are identified. I'm just having some trouble identifying them.Any help will be greatly appreciated as I am under some pressure to have this site finished by the end of the weekend.Thanks in advance,Jason Link to comment Share on other sites More sharing options...
rocky Posted October 1, 2009 Share Posted October 1, 2009 You need to go to category.tpl in your theme's directory and {* comment out *} the following code: {if isset($subcategories)} <!-- Subcategories --> {l s='Subcategories'} {foreach from=$subcategories item=subcategory} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}"> {if $subcategory.id_image} getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" /> {else} {/if} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'} {/foreach} {/if} Link to comment Share on other sites More sharing options...
j.volk Posted October 2, 2009 Author Share Posted October 2, 2009 Thank you so very much for your help! I spent a good amount of time trying to figure this one out with no success. Your solution works well... and I like how easy it will be to get my subcategories to appear again if I decide to go that direction.Thanks again,Jason 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