Oksydan / falcon

Prestashop starter theme that provides great development experience.
GNU General Public License v3.0
250 stars 60 forks source link

🚀 [REQUEST] - Correct expand category in ps_categorytree #420

Open Blaaszkovsky opened 1 month ago

Blaaszkovsky commented 1 month ago

Summary

At default we have ps_category tree where not expanded children at all. Ex. If you have category with 3-4 depth and you go to 4 depth, category tree is sttill collapsed.

Actaully simple resolve is manipulate with $category.id and $node.id, but this solution work only on 1 depth.

More "advanced" solution is override ps_categorytree.php from this tutorial: https://www.sunnytoo.com/8222/how-to-set-the-category-tree-links-module-to-expand-the-brunch-containing-current-category-in-prestashop-1-7 and all works fine.

It would be nice if such a function appeared by default in the template.

Feature target required module/theme

theme

Drawbacks

I think this could be a basic functionality of Prestashop, but you know how it is. All in all, there are no disadvantages here, and the advantage itself, because easy navigation through the category tree on the store is something required by online stores these days. We can implement this ourselves as developers, but I think it would be nice to see it in the main template release.

Oksydan commented 4 weeks ago

Hi @Blaaszkovsky,

thank you for creating a feature request. To do it properly it will be much better to create, a dedicated module. It would be possible to do it entirely inside a templete but I don't want to put to mich logic in the view.