Default variant selection
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!
-
- Posts: 41
- Joined: 03 Jun 2023, 17:30
Default variant selection
Laravel Framework v10.45.1, php8.1-fpm, aimeos/aimeos-laravel 2023.10.7
Hello,
I have a product that has 3 variants. When I look at the product page on the front end, I am able to click the dropdown and choose my variant.
Is it possible to configure the default variant that is selected when arriving at the product page? Currently there is no selection and I must choose.
Hello,
I have a product that has 3 variants. When I look at the product page on the front end, I am able to click the dropdown and choose my variant.
Is it possible to configure the default variant that is selected when arriving at the product page? Currently there is no selection and I must choose.
Re: Default variant selection
You could extend the JS code and add a new method to pre-select variant attributes of the first article after page load here:
https://github.com/aimeos/ai-client-htm ... -detail.js
If you can create a pull request, we would be happy to merge your change into the Aimeos core
https://github.com/aimeos/ai-client-htm ... -detail.js
If you can create a pull request, we would be happy to merge your change 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