Magento 2 Fetch all Categories and Sub Categories

Magento 2 Fetch all Categories and Sub Categories ini_set(‘display_errors’, 1); require __DIR__ . ‘/app/bootstrap.php’; $bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER); $objectManager = $bootstrap->getObjectManager(); $state = $objectManager->get(‘Magento\Framework\App\State’); $state->setAreaCode(‘adminhtml’); …

Magento 2 Fetch all Categories and Sub Categories Read More »