• Priority: Medium
  • Status: Waiting on customer
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 21.04.22, 16:51
  • Opened by: Benjamin WEPPE

Ticket #23288 - CategoryTree - Subcategories showing on current category

Hi there,

On the category tree (left sidebar on category page) I’d like to show (opened) by default the subcategories of the current category.

Please find enclosed 2 files :
1_current
2_what-i-want

Cheers

Attachments:

1_current.png (23.1 KiB)

Comments

Fred 22 Apr 2022, 11:15

Hi, Benjamin.
Tr following CSS code

body .root_li ul li div {display:block}
Benjamin WEPPE 22 Apr 2022, 13:57

Hi Fred !
Thanks for coming back to me quickly.
Those CSS work but it expands all the subcategories, which make my menu huge.

I just need to expand the first-level subcategories of the current category.
Let's see img enclosed.

On my previous shop, I followed these steps : https://www.sunnytoo.com/8222/how-to-set-the-category-tree-links-module-to-expand-the-brunch-containing-current-category-in-prestashop-1-7 But categorytree.php is pretty different with Alysum theme and it does not work.

Thanks a lot

PS : I'm currently working on local so can't send you a link

Fred 23 Apr 2022, 11:30

try this CSS

body .root_li ul > li div {display:block}
Benjamin WEPPE 25 Apr 2022, 09:16

Hi Fred,
Same results... sorry. It expands the rest too.

Please find the staging link : http://b2c.la-loutre.com/fr/11-affiches

When browsing on the Affiches category, i'd like to show only the 4 subcategories under Affiches :
- Affiche ville
- Les inspirantes
- Sans rouler des mécaniques
- L'Homme

Attachments:

Fred 25 Apr 2022, 10:47

Try to reconfigure the Category Tree module - https://take.ms/xYBYy

Benjamin WEPPE 25 Apr 2022, 14:23

Hi Fred,

Sorry but you misunderstood.
I want to have all parent categories showing up, and have ONLY the subcategories of the current category expanded.

Just like the picture enclosed.

Thanks

Attachments:

Fred 25 Apr 2022, 23:23

Category Tree is a native Prestashop module and we are not able to change it's behavior. You have to find another module that will work as you want.