beluafi.ilustracion Posted October 24, 2023 Share Posted October 24, 2023 (edited) I would like to hide the subcategories that appear on the category pages. Not the tree that appears on the left margin but the other list that comes out in the central body. In fact, I would like to hide everything that appears between the header and the products. I have been looking for several hours and all the solutions that appear to me are for old versions of Prestashop and it is possible that none of the solutions that I have found work for me. I am using 8.1.1. Thank you! Edited October 30, 2023 by beluafi.ilustracion (see edit history) Link to comment Share on other sites More sharing options...
Zohaib-fk Posted October 25, 2023 Share Posted October 25, 2023 Hi, You need to search for code in the categories tpl file which shows the results of sub-categories in the listing page, then need to comment code in the tpl file of categories products listing. I found below forum post useful. The post has a solution for 1.7, I think it will work for version 8 as well as the new version has old version code and some enhancements. Link to comment Share on other sites More sharing options...
ps8modules.com Posted October 25, 2023 Share Posted October 25, 2023 (edited) 17 hours ago, beluafi.ilustracion said: I would like to hide the subcategories that appear on the category pages. Not the tree that appears on the left margin but the other list that comes out in the central body. In fact, I would like to hide everything that appears between the header and the products. I have been looking for several hours and all the solutions that appear to me are for old versions of Prestashop and it is possible that none of the solutions that I have found work for me. I am using 8.1.1. Thank you! Hi. Did you mean to hide the subcategories as crossed out? ./themes/your_theme/templates/catalog/listing/product-list.tpl (The placement of the subcategory block may be different, depending on your template) Find and comment: An asterisk is added after the first character { and before the last character } {*block name='subcategory_list'} {if isset($subcategories) && $subcategories|@count > 0} {include file='catalog/_partials/subcategories.tpl' subcategories=$subcategories} {/if} {/block*} Edited October 25, 2023 by ps8moduly.cz (see edit history) Link to comment Share on other sites More sharing options...
beluafi.ilustracion Posted October 28, 2023 Author Share Posted October 28, 2023 I have already comentented the tpl and it still appears.😖 On 10/25/2023 at 7:46 AM, ps8moduly.cz said: Hi. Did you mean to hide the subcategories as crossed out? ./themes/your_theme/templates/catalog/listing/product-list.tpl (The placement of the subcategory block may be different, depending on your template) Find and comment: An asterisk is added after the first character { and before the last character } {*block name='subcategory_list'} {if isset($subcategories) && $subcategories|@count > 0} {include file='catalog/_partials/subcategories.tpl' subcategories=$subcategories} {/if} {/block*} Link to comment Share on other sites More sharing options...
ps8modules.com Posted October 28, 2023 Share Posted October 28, 2023 In that case, it is necessary to clear the cache and recompile the template. Link to comment Share on other sites More sharing options...
alexmiami Posted October 29, 2023 Share Posted October 29, 2023 I have the same issue, i tried with * but still there, how to clear the cache and recompile the template.? thanks a lot, Im a beginner Link to comment Share on other sites More sharing options...
alexmiami Posted October 29, 2023 Share Posted October 29, 2023 Hehe, i found a way to clear the cache and recompile the template and it is working, thanks a lot @ps8moduly.cz 1 Link to comment Share on other sites More sharing options...
beluafi.ilustracion Posted October 30, 2023 Author Share Posted October 30, 2023 Everyting working propperly also for me! Thank you so much!!! 1 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