Unexpected behaviour when clicking the image on a product page
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Unexpected behaviour when clicking the image on a product page
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?
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 (102.32 KiB) Viewed 1502 times
Re: Unexpected behaviour when clicking the image on a product page
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?
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,
give us a star
If you like Aimeos,

Re: Unexpected behaviour when clicking the image on a product page
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,
give us a star
If you like Aimeos,
