Unexpected behaviour when clicking the image on a product page

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Dochr
Posts: 8
Joined: 03 Nov 2021, 17:18

Unexpected behaviour when clicking the image on a product page

Post by Dochr » 06 Apr 2022, 16:02

This issue happens on Aimeos demo site:

https://laravel.demo.aimeos.org/default ... -article/1

When you click on an image, instead of showing it, it defaults to the last image from the set.
In other words: If there are 2 images: Image1, and Image2, when I click on the main image, to the left of the description, even if the image is Image 1, I see Image2 in another view.
I have tested that in case there are more images uploaded to the product, the problem still occurs, and it seems that the last image is displayed as a default.


Is it possible to set the behaviour to remember which image was clicked when displaying the images view?
Attachments
aimeosImageQuestion.jpg
aimeosImageQuestion.jpg (102.32 KiB) Viewed 1502 times

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: Unexpected behaviour when clicking the image on a product page

Post by aimeos » 08 Apr 2022, 07:16

Yes, that's not the expected behavior. Guess, there's something wrong with the indexes here:
https://github.com/aimeos/ai-client-htm ... il.js#L175

Can you have a look what's the problem?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: Unexpected behaviour when clicking the image on a product page

Post by aimeos » 12 Apr 2022, 12:32

Problem has been fixed in aimeos/ai-client-html:2021.10.x-dev:

Code: Select all

composer req aimeos/ai-client-html:2021.10.x-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply