Alberto97 Posted June 28, 2022 Share Posted June 28, 2022 (edited) Hi all, my prestashop version is 1.7.8.6 , and i want to hide subcategories list on the top of category page (see image below). So i don't know how to do. Can someone help me, please? thanks to who reply me Edited June 30, 2022 by Alberto97 (see edit history) Link to comment Share on other sites More sharing options...
Ress Posted June 29, 2022 Share Posted June 29, 2022 In default theme: your_prestashop/themes/classic/templates/catalog/listing/product-list.tpl You can comment on the part where the subcategories are added. {block name='subcategory_list'} {*{if isset($subcategories) && $subcategories|@count > 0}*} {*{include file='catalog/_partials/subcategories.tpl' subcategories=$subcategories}*} {*{/if}*} {/block} 1 2 Link to comment Share on other sites More sharing options...
Alberto97 Posted June 30, 2022 Author Share Posted June 30, 2022 On 6/29/2022 at 8:22 AM, Ress said: In default theme: your_prestashop/themes/classic/templates/catalog/listing/product-list.tpl You can comment on the part where the subcategories are added. {block name='subcategory_list'} {*{if isset($subcategories) && $subcategories|@count > 0}*} {*{include file='catalog/_partials/subcategories.tpl' subcategories=$subcategories}*} {*{/if}*} {/block} Thanks, work it! 1 Link to comment Share on other sites More sharing options...
lazabi Posted July 1, 2022 Share Posted July 1, 2022 On 6/30/2022 at 5:03 AM, Alberto97 said: Thanks, work it! Hello, I have the same problem, how do you access the default theme and where do you go to remove this: {block name='subcategory_list'} {*{if isset($subcategories) && $subcategories|@count > 0}*} {*{include file='catalog/_partials/subcategories.tpl' subcategories=$subcategories}*} {*{/if}*} {/block} Thank you ! Zabi Link to comment Share on other sites More sharing options...
Ress Posted July 4, 2022 Share Posted July 4, 2022 On 7/1/2022 at 10:51 PM, lazabi said: Hello, I have the same problem, how do you access the default theme and where do you go to remove this: {block name='subcategory_list'} {*{if isset($subcategories) && $subcategories|@count > 0}*} {*{include file='catalog/_partials/subcategories.tpl' subcategories=$subcategories}*} {*{/if}*} {/block} Thank you ! Zabi Do you have PrestaShop 1.7? Link to comment Share on other sites More sharing options...
lazabi Posted July 16, 2022 Share Posted July 16, 2022 Yes, 1.7.8.5 Thank you ! 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