- Posts: 11
- Thank you received: 1
Problem with thumbnail in cart module and chechout
11 years 6 months ago - 11 years 6 months ago #192649
by hahovec
Problem with thumbnail in cart module and chechout was created 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:
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.
11 years 6 months ago #192768
by nicolas
Replied by nicolas on topic Problem with thumbnail in cart module and chechout
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.
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