Bonjour,
C'est étrange car ce code n'a pas été modifié depuis plus d'un an. Mais ce soucis nous à été rapporté par une autre personne aussi.
Dans la vue "cart / showcart" merci d'essayer de remplacer le 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.'"/>';
}
}
Par:
$width = (int)$this->config->get('thumbnail_x');
$height = (int)$this->config->get('thumbnail_y');
if(!empty($cart->images)){
$image = end($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(@$image->file_description).'" alt="'.$this->escape(@$image->file_name).'" src="'.$img->url.'"/>';
}
}