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. To do one modification and add one new function to the \modules\ps_categorytree\ps_categorytree.php file, see this picture. Here is modification, replace this code 1234return [ ‘categories’ => $this->getCategories($category), ‘currentCategory’ => $category->id, ]; By this one 123456$categories = $this->getCategories($category); return […