Selection Variants and Image Display
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!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Selection Variants and Image Display
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
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
Re: Selection Variants and Image Display
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, give us a star
If you like Aimeos, give us a star
Re: Selection Variants and Image Display
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?
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?
Re: Selection Variants and Image Display
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, give us a star
If you like Aimeos, give us a star
Re: Selection Variants and Image Display
I have done exactly that. thank you.
Re: Selection Variants and Image Display
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, give us a star
If you like Aimeos, give us a star
Re: Selection Variants and Image Display
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
is there any other way to submit the changes?
also for Payment Option depending on Delivery Service
Re: Selection Variants and Image Display
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, give us a star
If you like Aimeos, give us a star