Jump to content

Error displaying product images in cart when product combinations


Recommended Posts

hi, 

  I detected a serious fault in the cart when the product images on that cart is. Only happens when the product has combinations. 

 

  It turns out that when we have a product with different images on each combination and add the product to cart, instead of showing the first image of the combination, usually the third show as a general rule. It would be logical to always display the first.

 

  In my particular case, where I have the error, it's a clothing store where we have a garment in different colors, each color has a minimum of 3 images (front, profile, rear). The images in the data sheet are shown in the correct order specified by the administrator. The problem comes when the user adds the product to cart. In the cart instead of showing the first picture (which would be the front), the third sample (back picture), that makes it is very rare. 

 

  I've been testing various prestashop shops using the internet and have the same problem does not show the first picture, I mean, it's not a problem of the template used. 

 

  The call to the image of the cart is in the template folder and the file is shopping-cart-product-line.tpl 

 

  <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'tm_small_default')|escape:'html':'UTF-8'}" alt="{$product.name|escape:'html':'UTF-8'}" />  

 

  For an example of what I say http: //www.gallegodemontiel.com

 

 

  Has anyone found the solution?

Link to comment
Share on other sites

  • 1 month later...

I confirm the problem even I with my products with combinations, 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. is strange.

Link to comment
Share on other sites

Newbie here too but I'll try to help...

 

I see two basic elements that affect this:

 

(1) When you load images for a product, one image will be selected as "Cover". The cover image is displayed when there is no reason to display one of the other images (i.e., no link to associated product image).

(2) When you create combinations for a product, one combination will be selected as "Default". The default combination is selected when the user has not selected a different combination.

 

I would look first at those two basic selections (cover image and default combination) for one of the products showing this problem and see if there is a relationship.

Link to comment
Share on other sites

×
×
  • Create New...