?> " /></td> </tr> <tr> <td><label for="">Categories</label></td> <td> <?php $categories = array(); if ($product->categories) { foreach ($product->categories as $category) { $categories[] = $category->id; } } $cat = new Category_Model(1); //outputs the tree structure in a un-ordered html list echo $cat->get_descendants_chk($categories); ?> </td> </tr> <tr> <td><label for="">Packagings</label></td> <td> <?php $ppModel = new Products_packaging_Model(1); echo $ppModel->getPackagingsByProduct($product->id); ?> </td> </tr>