You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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: