avionicom Posted September 21, 2013 Share Posted September 21, 2013 Every product in my shop have several combinations and each combination have 4 different images. I loaded and positioned all the images. Below is an example of a product with two cominations (8 images): IMG(ID) - POSITION - COVER 13 - 1 - YES 14 - 2 - NO 15- 3 - NO 16- 4 - NO 19- 5 - NO 18- 6 - NO 17- 7 - NO 20- 8 - NO For the first combination I used images 13,14,15,16 while for the second combination I used images 17,18,19,20 The problem is that if I add the second combination of the product to my cart, in the checkout page it is shown the third image instead of the first one. It seems that the Prestashop logic is to choose the image with the lower ID, not the first image in position like I want. I think it should be logic to have displayed in the order checkout page the first image, not the image loaded first... Anyone experimented the same problem? I think the problem is on the file shopping-cart-product-line.tpl in the following line (27): <td class="cart_product"> <a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small_default')|escape:'html'}" alt="{$product.name|escape:'htmlall':'UTF-8'}" {if isset($smallSize)}width="{$smallSize.width}" height="{$smallSize.height}" {/if} /></a> </td> But I don't know how to do. Anyone can help to solve it? Link to comment Share on other sites More sharing options...
Rollk1 Posted June 3, 2014 Share Posted June 3, 2014 Having the same issue. Too bad no one replied Link to comment Share on other sites More sharing options...
fberti Posted December 10, 2014 Share Posted December 10, 2014 I confirm the same issue, after a migration to 1.6.0.9, when I add a product to cart, the images are placed in the basket at random from the pictures set combinations, sometimes (most worrying) is inserted the image of a question mark, as if it did not find the image. I deleted the cache, regenerated thumbnails, but nothing. Link to comment Share on other sites More sharing options...
jabdnor Posted July 8, 2015 Share Posted July 8, 2015 (edited) s Edited September 18, 2015 by jabdnor (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts