-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Unable to get children categories when use the option "Use Flat Catalog Category" set to "Yes" #4191
Comments
Note for me ... https://magento.stackexchange.com/a/58450/46249 I'll test it later. |
When we will get this fix? |
Can you provide a pull request? |
Which pull request you want? I don't have any PR. I just tested the below line of code by enabling the "Category Flat Data". |
It seems to be default/normal behavoir. Suggestion: Enable Flat |
Closed. Feel free to add a PR, but i think it works as it should. |
Steps to reproduce
Login as admin
Go To "System" -> "Configuration" -> "Catalog" -> "Frontend" -> "Use Flat Catalog Category" and please set to "Yes".
Reindex the "Category Flat Data" option and try to run the below code.
$childCategories = Mage::getModel('catalog/category')->load($anyCatID)->getChildrenCategories()
It will not give any child categories and if you change the above option to "No" you will get all the sub-categories;
The text was updated successfully, but these errors were encountered: