What's New
You must be logged in to reply to this topic.
Hi @yobo, this thread is old but I wanted to get your help on hiding my categories. When I run my cronjob I do not see any changes happening to my categories even though they have no products.
Prestashop 1.7.8.0 / CPanel / php 7.3 (ea-php73)
Cronjob: 0011*/usr/bin/curl https://mysite.com/update_categories.php (Set at 1 year for now until I can figure this out)
Hi,
Please use the file on the reply: https://www.sunnytoo.com/forums/topic/hide-disable-empty-category/#post-72282
Best regards.
Thanks for the response @yobo. I tried it and when it ran it turned off all menus with no products then it reactivated menus that were already deactivated with products in it. I was hoping to just turn off all categories with no products. I was super excited that it work, it just somehow did not work for me. Can you break down what each sql statement is doing from that link that you sent to me? Looks like I may just need the first statement. Screenshot attached. I also wanted to add that I have to go to the performance tab and click Clear Cache before the menu is gone.
Should I used the following after all is ran or is this too much?
clearSmartyCache
clearXMLCache
clearCache
generateIndex
You must be logged in to reply to this topic.