Problem with thumbnail in cart module and chechout

  • Posts: 11
  • Thank you received: 1
9 years 8 months ago #192649

-- HikaShop version -- : 2.3.5

Show diferent thumbnail in cart module and checkout. In administration all pictures are with 0 in position.

Code for the thumbnails:

<?php
	$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($row->images[0]->file_path, array('width' => $width, 'height' => $height), $image_options);
	if($img->success) {
		echo '<img title="'.$this->escape(@$row->images[0]->file_description).'" alt="'.$this->escape(@$row->images[0]->file_name).'" src="'.$img->url.'"/>';
	} ?>

Attachments:
Last edit: 9 years 8 months ago by Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 8 months ago #192768

Hi,

In your products, you should set the order values of your images with numbers instead of 0s. The lower number will be the one used on both listings. If you have several images with the same lower number, you might get a different image used as the queries loading the data of the images from the database need to be done differently.

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum