How to set the Category tree links module to expand the brunch containing current category in PrestaShop 1.7.
1. Set the “Category root” option to “Home category” in the “Category tree links” module.
2. Edit the \modules\ps_categorytree\ps_categorytree.php file. See this picture which includes one modification marked in red and one new function.
Here is modification, replace this code