Select Page

Add category ID as a class to the body tag in Prestashop

Within CategoryController.php’s initContent() function find “$this->context->smarty->assign(array(” and add a new line: 'parent_category_chain' => $this->category->getParentsCategories(), In your header.tpl you can use a foreach...