Skip to main content

Problem with thumbnail in cart module and chechout

More
11 years 6 months ago - 11 years 6 months ago #192649 by hahovec
-- 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:
Code:
<?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.'"/>'; } ?>
Last edit: 11 years 6 months ago by Jerome.

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

More
11 years 6 months ago #192768 by nicolas
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.172 seconds
Powered by Kunena Forum