cycy Posted May 16, 2019 Share Posted May 16, 2019 hello, I wish I could hide the subcategory if it is empty (contains no article) in my menu. Who could help me please I've been looking for a while but I can not see how to modify the ps-categorytree module. Thanks for your help Link to comment Share on other sites More sharing options...
cycy Posted May 16, 2019 Author Share Posted May 16, 2019 1 minute ago, Crezzur said: Something like this? automatically hide subcategories in my menu when this subcategory contains no products I will try this module thank you ! Link to comment Share on other sites More sharing options...
cycy Posted May 16, 2019 Author Share Posted May 16, 2019 i try this module but i would juist hide subcategories ... Link to comment Share on other sites More sharing options...
cycy Posted May 16, 2019 Author Share Posted May 16, 2019 this module desactivate alle empty category in backoffice Link to comment Share on other sites More sharing options...
cycy Posted May 16, 2019 Author Share Posted May 16, 2019 This module is very good to disable everything, however, I am asked to hide the subcategory automatically if no products so that this sub category is not visible in the menu. Here it deactivates suddenly I have to manually reactivate the categories fields that I want to see (it should just see hiding sub categories not categories) This module will allow me to do it, I look in the code to know only disable sub categories but for the moment I can not. That said a big thank you for this great module that really deserves all the attention Link to comment Share on other sites More sharing options...
cycy Posted May 16, 2019 Author Share Posted May 16, 2019 1 hour ago, Crezzur said: if you do not want to disable categories just change the configuration page "categories" to "no" i don't understand. If I put the categories to no, when there will be an automatic update of products, this category will remain disabled, so this method does not help me for later. Basically I create a program with several categories and in this one we have subcategories not containing products for the moment and I need to be able to automate the addition of fields under categories once the products added. 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