Random wrong image in the cart list

  • Posts: 84
  • Thank you received: 0
11 years 9 months ago #90577

Hello, as I read in some post of some months ago( goo.gl/apnno ) another user had the same problem and should be fix in the new version(at that time).
The problem is that the image of the product in the cart list is random, it's not the main image of the product.
I have products with several images and according to something that I dont know, when I add the product to the cart, the image displayed is not the main one(not always).
I have the versione Essential 2.1.0.
Url: goo.gl/gzaAc user action pass style2012
How can I fix?
Thank you

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

  • Posts: 12953
  • Thank you received: 1778
11 years 9 months ago #90663

Hi,

Did you edited your Cart file of your checkout view of your front-end template ?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #90669

Hi,

Had you edited the view "checkout / cart" ?
Have you this line:
<?php echo $this->image->display($image->file_path,true,$image->file_name,'style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"', '', $width, $height); ?>

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

  • Posts: 84
  • Thank you received: 0
11 years 9 months ago #90676

Mohamed Thelji wrote: Hi,

Did you edited your Cart file of your checkout view of your front-end template ?


No I'm not.

Xavier wrote: Hi
Had you edited the view "checkout / cart" ?
Have you this line:
<?php echo $this->image->display($image->file_path,true,$image->file_name,'style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"', '', $width, $height); ?>


Yes I have it.
I didnt edit the ckecout/cart, it's the original one.

Thank you

Last edit: 11 years 9 months ago by davideventurini.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
11 years 9 months ago #91014

Please make sure that you entered the order of each image in the images area of your products. The image with the smaller order will be the one displayed in the cart. If several images of the same product have the same ordering, the result might be unexpected.

The following user(s) said Thank You: davideventurini

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

  • Posts: 84
  • Thank you received: 0
11 years 9 months ago #91051

Yes you're right, Thank you.
After I modifyed the order the showed image is correctly.
Thanks

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

Time to create page: 0.080 seconds
Powered by Kunena Forum