Description of variant product
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Description of variant product
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.
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.
Re: Description of variant product
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
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, give us a star
If you like Aimeos, give us a star