Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Blaaszkovsky opened this issue Aug 9, 2024 · 1 comment
Open

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

Blaaszkovsky opened this issue Aug 9, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Blaaszkovsky
Copy link

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
Copy link
Owner

Oksydan commented Aug 19, 2024

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.

@Oksydan Oksydan added the enhancement New feature or request label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants