No variant-images in basket
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 38
- Joined: 23 Nov 2015, 14:10
No variant-images in basket
Hi,
putting a selection-article into the basket, the image in the basket doesn't show the media-file of the chosen variant but the first media-file of the selection-element. Given that the chosen color is different to the one in the pic this is very confusing. Is there an option to show the media-file of the respective variant instead?
Thank you very much for your help (and excuse my poor English).
Ralph
putting a selection-article into the basket, the image in the basket doesn't show the media-file of the chosen variant but the first media-file of the selection-element. Given that the chosen color is different to the one in the pic this is very confusing. Is there an option to show the media-file of the respective variant instead?
Thank you very much for your help (and excuse my poor English).
Ralph
Re: No variant-images in basket
Product variant images are not yet added to the basket items. The first image of the selection product is used because of this line in the code: https://github.com/aimeos/aimeos-core/b ... rd.php#L99.franzrudolf wrote: putting a selection-article into the basket, the image in the basket doesn't show the media-file of the chosen variant but the first media-file of the selection-element. Given that the chosen color is different to the one in the pic this is very confusing. Is there an option to show the media-file of the respective variant instead?
To use images assigned to product variants, here (https://github.com/aimeos/aimeos-core/b ... .php#L1092) the same should be done to assign the correct image like there: https://github.com/aimeos/aimeos-core/b ... d.php#L678
A pull request changing this behavior is welcome
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star