Hi,
1. To display the category of the product, it must be present in the table, else when you have many products in the cart from different categories, it will be unreadable.
So you have to put the code before:
<tr class="row<?php echo $k; ?>">
And the code to use is something like:
<tr class="row<?php echo $k; ?>">
<?php
$productClass = hikashop_get('class.product');
$categoryClass = hikashop_get('class.category');
$fullProduct = $productClass->get($row->product_id);
$category = $categoryClass->get($fullProduct->category_id);
?>
<td colspan="5"><?php echo $category ->category_name; ?></td>
</tr>
ps: it can be optimized by moving the php code:
$productClass = hikashop_get('class.product');
$categoryClass = hikashop_get('class.category');
Before the foreach.