preselect (non-first) option for attribute

Help for integrating the Laravel package
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!
antonlinderer
Posts: 42
Joined: 14 Sep 2017, 09:59

preselect (non-first) option for attribute

Post by antonlinderer » 23 Nov 2017, 13:50

How do you specify a preselect other than the (default) first option for an attribute?

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

Re: preselect (non-first) option for attribute

Post by aimeos » 23 Nov 2017, 21:19

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply