Prestashop: [BOOM-6068] Multistore product images from diferent shops are not displayed in cart

Created on 22 Aug 2018  路  5Comments  路  Source: PrestaShop/PrestaShop

This issue has been migrated from the Forge. Read the original ticket here.

  • _Reporter:_ sroubek
  • _Created at:_ Tue, 24 Jul 2018 09:32:39 +0200

So you have two shops in presta multistore. Shop-A and shop-B with some product in each shop. When you are in Shop-A put some product with pictures to your cart, you will see the product with image, thats OK. Then switch to shop-B add some product. Now you will se product from shop-B with picture in cart but image of product from shop-A disapear.聽

You can switch between shops and check carts you will see product mini image in cart only for product from actual selected shop you are in.

I am using multistore shops with diferent domains not with virtual directories.

  • How to reproduce the issue ?

N/A

1.7.4.0 1.7.4.1 Bug FO Minor Multistore To Do

Most helpful comment

Hi sroubek.

Your fix works excellent. Related to this issue there is a problem with the links to the product page from cart in multistores. The links that cart shows point to the current selected shop and not to the shop where the product is registered.

Have you got any fix to this problem.

Thank you

Rafael

All 5 comments

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ khouloud.belguith
  • _Created at:_ Tue, 24 Jul 2018 11:20:09 +0200

Hi Tom谩拧,

Thanks for your report.
I manage to reproduce the issue with PS1.7.4.1/1.7.3.4.

We will see how to fix it.

Best regards, Khouloud

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ sroubek
  • _Created at:_ Tue, 24 Jul 2018 12:36:23 +0200

So I have a fix but its not for pull request someone who know presta well will do it better, but this could help聽

/src/Adapter/Image/ImageRetriever.php - method聽getProductImages
from:

md5-1f54fac450aabbf456a3467799268f89

to:

md5-3fa249ea385769fd6839b6aa28fd7986

to:

md5-f00659e1ad8b1e06746861b3a2dd4b5f

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ khouloud.belguith
  • _Created at:_ Tue, 24 Jul 2018 12:37:46 +0200

Hi Tom谩拧,

Would you be willing to make a pull request on GitHub with your code suggestion?
https://github.com/PrestaShop/PrestaShop/tree/develop
Thank you!

Best regards, Khouloud

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ sroubek
  • _Created at:_ Tue, 24 Jul 2018 12:43:18 +0200

Hi Khouloud,

Yes I can but as you can see its hard-coded, so devs dont want to do it this way, probably? If you thing I should do it anyway let me know.

Hi sroubek.

Your fix works excellent. Related to this issue there is a problem with the links to the product page from cart in multistores. The links that cart shows point to the current selected shop and not to the shop where the product is registered.

Have you got any fix to this problem.

Thank you

Rafael

Was this page helpful?
0 / 5 - 0 ratings