Hi,
The same kind of code is used on both views. We take the first image.
Could you try to edit the view and replace that code:
$width = (int)$this->config->get('thumbnail_x');
$height = (int)$this->config->get('thumbnail_y');
if(isset($cart->images[0])) {
$image_options = array(
'default' => true,
'forcesize' => $this->config->get('image_force_size', true),
'scale' => $this->config->get('image_scale_mode','inside')
);
$img = $this->image->getThumbnail(@$cart->images[0]->file_path, array('width' => $width, 'height' => $height), $image_options);
if($img->success) {
echo '<img class="hikashop_product_cart_image" title="'.$this->escape(@$cart->images[0]->file_description).'" alt="'.$this->escape(@$cart->images[0]->file_name).'" src="'.$img->url.'"/>';
}
}
By this one:
$width = (int)$this->config->get('thumbnail_x');
$height = (int)$this->config->get('thumbnail_y');
if(!empty($cart->images)){
$image = reset($cart->images);
$this->image = hikashop_get('helper.image');
$this->image->checkSize($width,$height,$image);
$image_options = array(
'default' => true,
'forcesize' => $this->config->get('image_force_size', true),
'scale' => $this->config->get('image_scale_mode','inside')
);
$img = $this->image->getThumbnail(@$image->file_path, array('width' => $width, 'height' => $height), $image_options);
if($img->success) {
echo '<img class="hikashop_product_cart_image" title="'.$this->escape(@$cart->images[0]->file_description).'" alt="'.$this->escape(@$cart->images[0]->file_name).'" src="'.$img->url.'"/>';
}
}