Sebwite / magento2-category-sidebar

Magento2 category sidebar extension
63 stars 58 forks source link

Subcategories Not showing #15

Open madhusudan-indusa opened 7 years ago

madhusudan-indusa commented 7 years ago

Hello i have just installed this extension but i am unable to view subcategories. Please help.

Antisly commented 7 years ago

I managed to fix it by replacing return $category->getChildrenCategories(); with return $category->getChildren(); in function getSubcategories in Block/Sidebar.php

ameniconi commented 6 years ago

Im facing the same issue, but my Block/Sidebar.php already contains your solution, Any ideas?

Antisly commented 6 years ago

Check CSS. They may have display:none for the sidebar categories.

ameniconi commented 6 years ago

Thanks for the reply, unfortunately it doesn't seem to be the CSS,

A couple of weeks ago I created another issue/question which on the admin there is no option to select the depth of child categories, no answer to that yet, but i assume there is something wrong there, i install via composer, not sure if that makes a difference or not.

Antisly commented 6 years ago

Please re-check getSubcategories() function in Block/Sidebar.php Here on GitHub it has wrong function call. See my first message in this thread.

Antisly commented 6 years ago

As for CSS then in module.css they have .sidebar .o-list {display: none;}

Should be display:block

babyasishhira commented 6 years ago

Thank you @Antisly Your solution to replace return $category->getChildrenCategories(); with return $category->getChildren(); works perfect

digital6666 commented 6 years ago

I have made following changes in line 105 Block/Sidebar.php change $recursionLevel = 1 to 2,3,4 or more it depends how many child levels you have. This works for me.

wcousin commented 6 years ago

I installed this on Magento 2.2.5 and in the configuration it only has one dropdown with 'Default Category'. It doesn't show the subcategories because it does not give me the option to select the child depth level.

All the other options above look to be implemented already in the repository. Any help?

lapiski commented 6 years ago

I have the same error. I installed this on Magento 2.2.6 but I can see only "Default Category" in the dropdown. Any solution?