Description of variant product

How to configure and adapt Aimeos based shops as developer
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!
sirick
Posts: 3
Joined: 23 Feb 2024, 21:11

Description of variant product

Post by sirick » 01 Mar 2024, 13:53

Hello,
If I have a select product and 2 variants associated with this product, how can I show the description of each variant at the frontend product page when a user selects the options of variant 1 or variant 2? Currently the description doesn't change. It retrieves only the description of the select product.

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

Re: Description of variant product

Post by aimeos » 04 Mar 2024, 08:02

You need to amend this method:
https://github.com/aimeos/ai-client-htm ... #L570-L598

In the template, add the long descriptions of all variant articles and in CSS, hide them until the CSS class is added by the JS method.

If you get it working, we would love to get a pull request with your changes to merge them into the Aimeos core :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply