In this post I am going to explain how to get sub-categories from parent category id in PrestaShop 1.7. // Your Product id $id_parent_category = 3; // Fetch parent category $categoryObj = new Category($id_parent_category); // Validate category object if (Validate::isLoadedObject($categoryObj)) { $categoryList = $categoryObj->getSubCategories($this->context->language->id); if ($categoryList && count($categoryList) > 0) { foreach ($categoryList AS…


Recent Comments