No Children depth level option
ameniconi opened this issue · 14 comments
Installed this with composer, I can see the top level categories but no subcategories showing. Also no children depth level option to select in the admin config page, any advice?
@ameniconi you should be able to change line 222 in the Block/Sidebar.php file from
return $category->getChildrenCategories()
to
return $category->getChildren()
This worked for me. I'm going to open up a pull request to get this updated if this works for you.
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.
Does not make sense to patch the extension -- would a PR to make this configurable be accepted?
Actuall it is in master -- question is when it will be tagged
https://github.com/Sebwite/magento2-category-sidebar/blob/master/Model/Config/Source/Depth.php
Other question is: Why limiting depth to level 5 and not just accept an integer?
Hello, I have the problem after installation, I see only category title, not categorya. Can someone help me? I change display:block , but it is dont work
Thats dont working for me, I have no idea what is wrong. I see only "category" tittle, without menu links. www.nk-collection.de Look, it s calls Kategorien in german, after this tittle is nothing ср, 15 янв. 2020 г. в 18:35, Matt6 Studios, LLC notifications@github.com:
…
@ameniconi https://github.com/ameniconi you should be able to change line 222 in the Block/Sidebar.php file from return $category->getChildrenCategories() to return $category->getChildren() This worked for me. I'm going to open up a pull request to get this updated if this works for you. This worked for me too. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19?email_source=notifications&email_token=AF7GFNHNSBEKUZRHVU54CKTQ55CMPA5CNFSM4ECD6CZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJBEVAQ#issuecomment-574769794>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF7GFNHEHIWR6R3M3DTWYALQ55CMPANCNFSM4ECD6CZA .
If you check it out using your browsers development tools you will see .sidebar .o-list display is set to none. That is part of the problem. But even after I set that to display there isn't anything listed. So you might have some kind of setting not right in the admin.
Making these changes it works for me and after changing code for the way I need it we should be good.
Can you please tell me, where I can findet this module.css file?
This is a less file that gets compiles on the fly. You'll find it here:
/view/frontend/web/css/
Stan
I found the solution, that is the wrong place to change css, the right file is in the pub directory in the actually theme
Hi,
That won't fix the problem permanently. The static folder will get overridden next time the files get re-generated. You have to change it where I listed, in the less file, and then run upgrade, di:compile and then deploy your static files.
Can you please tell me the code, how I can run update with ssh?
Hi, Google is your friend. If you Google Magento 2 how to clean your cache using ssh you will find a lot of help. Here are a few to the Magento docs:
https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cache.html
https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-index.html
Stan