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 1234return [ ‘categories’ => $this->getCategories($category), ‘currentCategory’ => $category->id, ]; By this one 123456$categories = $this->getCategories($category);…