Selection Variants and Image Display

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
stiller
Posts: 88
Joined: 05 Mar 2016, 15:59

Selection Variants and Image Display

Post by stiller » 18 Sep 2023, 12:45

Aimeos 22.10.8
TYPO3 11.5.30

hello.

is there a particular reason, why for displaying the selected variant image you have left the logic of displaying prices or attributes?

Display of the selected variants price and attributes is managed by "prodid" whereas sliding to the selected variant image is based on the last clicked select-option. (onImageVariant()) if using more than one attribute for the selection products this result in the display of images for variants which correspond to the last clicked option but not taking into account the previously selected attributes.

Regards

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

Re: Selection Variants and Image Display

Post by aimeos » 18 Sep 2023, 21:28

Guess, the thought behind was that variant images should be shown as soon as one variant attribute has been selected but in your case this doesn't work out well. You only want to show the variant image if all attributes are selected and only one variant article is left, don't you?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

stiller
Posts: 88
Joined: 05 Mar 2016, 15:59

Re: Selection Variants and Image Display

Post by stiller » 19 Sep 2023, 11:03

exactly. it might be rather confusing to the user, when they are presented with a yellow shirt instead of the desired color when changing size.
the topic is related to
Selection Product
we did change dependency management of selection variants as in our case all combinations are always possible. other selected options remain active when changing one attribute.
now, we need the related images to the active choice of variants.
I guess the easiest way would be to get the Product Id into the Media Data somehow and then adapt the JS according to the price logic.
How do I have to change the Standard Image Helper to achieve this or do you suggest another approach?

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

Re: Selection Variants and Image Display

Post by aimeos » 20 Sep 2023, 07:34

Best option would be to add the code that is currently in the image view helper to the template and adapt it to your needs because the product ID isn't available in the image helper.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

stiller
Posts: 88
Joined: 05 Mar 2016, 15:59

Re: Selection Variants and Image Display

Post by stiller » 16 Oct 2023, 20:37

I have done exactly that. thank you.

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

Re: Selection Variants and Image Display

Post by aimeos » 18 Oct 2023, 09:01

May you create a pull request with your changes? It might be an option to integrate it into the core if possible to give developers the choice how it works and you don't need to care about that later if you update to a newer Aimeos version :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

stiller
Posts: 88
Joined: 05 Mar 2016, 15:59

Re: Selection Variants and Image Display

Post by stiller » 14 Feb 2024, 09:58

sorry. we don't work with github on this project.
is there any other way to submit the changes?
also for Payment Option depending on Delivery Service

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

Re: Selection Variants and Image Display

Post by aimeos » 14 Feb 2024, 11:10

You can also check out a local copy of the repository, make your changes there and create a PR on Github afterwards or you can edit the files on Github directly.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply