Thank you, that worked, although I had to code
$productClass = hikashop_get('class.product');
$productClass->getProducts($cart->product_id);
$products = $productClass->products;
$product = reset($products);
since the var contained an array of products with one single product.
Now another question, how do I load the image helper? I have this code to display the images for the product
if (!empty($product->images)) {
$image = reset($product->images);
$width = $this->config->get('thumbnail_x');
$height = $this->config->get('thumbnail_y');
$this->image->checkSize($width,$height,$image);
if (!$this->config->get('thumbnail')) {
echo '<img src="'.$this->image->uploadFolder_url.$image->file_path.'" alt="'.$image->file_name.'" id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" />';
} else { ?>
<div class="hikashop_cart_product_image_thumb" >
<?php echo $this->image->display($image->file_path,true,$image->file_name,'style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"', '', $width, $height); ?>
</div><?php
}
}
but it doesn't work since $this->image is not defined.