What I'd like to do is grab all of the child categories of a specific parent category. I'm assuming the best way to do this is by using the parent's ID and of those child categories that are returned, I'd like to grab their child categories as well.
Magento – Magento 2 – Get Subcategories of Specific Parent Category
categorycategory-treemagento2magento2.2PHP
Best Answer
Check below example to get the list of all subcategories of specific parent category using parent category ID using objectManager.
=====
Check below example to list of all subcategories of specific parent category using parent category ID using the repository.
First of all add CategoryRepository in construct:
Now you can use the following way: