preselect (non-first) option for attribute
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 42
- Joined: 14 Sep 2017, 09:59
preselect (non-first) option for attribute
How do you specify a preselect other than the (default) first option for an attribute?
Re: preselect (non-first) option for attribute
Only if you add some logic for your options in your own attribute partial:
https://github.com/aimeos/ai-client-htm ... t.php#L159
The easiest way would be to use position "0" for that attribute you want to have pre-selected.
https://github.com/aimeos/ai-client-htm ... t.php#L159
The easiest way would be to use position "0" for that attribute you want to have pre-selected.
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