Get Three Level Category and Subcategories through Category id in Root file Magento2
Create a File in Root of Magento2 <?php use Magento \ Framework \ App \ Bootstrap ; require __DIR__ . '/app/bootstrap.php' ; $params = $_SERVER ; $bootstrap = Bootstrap : : create ( BP , $params ) ; $obj = $bootstrap - > getObjectManager ( ) ; $state = $obj - > get ( 'Magento\Framework\App\State' ) ; $state - > setAreaCode ( 'frontend' ) ; /*$params = (array) json_decode(file_get_contents('php://input'), TRUE); print_r($params); ////////// Get Data From Postman Api///////// $catid=$params['caterory']; echo "string+++++".$catid;*/ /*echo"<pre>++"; print_r($_GET['caterory']);*/ //// Get Data Through URL//////// $catid = $_GET [ 'cateroryid' ] ; $obj...