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

No Children depth level option #19

Open
ameniconi opened this issue Nov 3, 2017 · 14 comments
Open

No Children depth level option #19

ameniconi opened this issue Nov 3, 2017 · 14 comments

Comments

@ameniconi
Copy link

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?

@christian-walker
Copy link

christian-walker commented Dec 14, 2017

@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.

@digital6666
Copy link

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.

@amenk
Copy link

amenk commented May 10, 2019

Does not make sense to patch the extension -- would a PR to make this configurable be accepted?

@amenk
Copy link

amenk commented May 10, 2019

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?

@nbmedien
Copy link

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

@nbmedien
Copy link

nbmedien commented Jan 15, 2020 via email

@webusat
Copy link

webusat commented Jan 15, 2020

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 [email protected]:

@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.

@nbmedien
Copy link

nbmedien commented Jan 15, 2020 via email

@webusat
Copy link

webusat commented Jan 15, 2020

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

@nbmedien
Copy link

nbmedien commented Jan 15, 2020 via email

@nbmedien
Copy link

nbmedien commented Jan 16, 2020 via email

@webusat
Copy link

webusat commented Jan 16, 2020

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.

@nbmedien
Copy link

nbmedien commented Jan 16, 2020 via email

@webusat
Copy link

webusat commented Jan 16, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants