jeremiash Posted January 11, 2011 Share Posted January 11, 2011 Hello,I want to show in categories block only specyfic categories - not all of them.Probably have to change php database query - but dunno how to start.thank You. Link to comment Share on other sites More sharing options...
rocky Posted January 12, 2011 Share Posted January 12, 2011 Why are you wanting to show only specific categories? You can click on the tick icon in the "Displayed" column for a category to hide it, or edit a category and make it accessible only to certain customer groups. If you are wanting to hide the category from the category block, but make it still browsable by entering the URL manually, you will need to edit modules/blockcategories/category-tree-branch.tpl and add the following to the top: {if $node.id != 2 AND $node.id != 3} and the following at the bottom: {/if} This will hide category 2 and 3 from the category block. Change the IDs and add more as required. Link to comment Share on other sites More sharing options...
PrestaShopDeveloper Posted January 12, 2011 Share Posted January 12, 2011 You should start from:modules/blockcategories/blockcategories.phpThere's one select query which should be changed. Link to comment Share on other sites More sharing options...
kreasta Posted February 15, 2011 Share Posted February 15, 2011 can you be more specific? please! Link to comment Share on other sites More sharing options...
Guest danielias Posted January 24, 2012 Share Posted January 24, 2012 hi rocky, it works! but i need to hide 3 categories, how can i do that? thanks Link to comment Share on other sites More sharing options...
comprausa Posted August 7, 2012 Share Posted August 7, 2012 Rocky it works but only if Force Compile ON and Cache OFF. Once you switch back to production settings ForceComplie OFF and Cache ON it will display the hidden category again. Any ideas? PS1.4.6.2 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