How to display children of subcategories
I wrote a function that outputs the current category and its children in a certain order, like so: function Orderlist($param2) { $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $category = $objectManager->get(‘MagentoFrameworkRegistry’)->registry(‘current_category’);//get current category $catId =$category->getId(); $subcategory = $objectManager->create(‘MagentoCatalogModelCategory’)->load($catId); $subcats = $subcategory->getChildrenCategories(); foreach ($subcats as… Read More »How to display children of subcategories