Options as required field

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!
skillig-wco
Posts: 4
Joined: 26 Jun 2020, 08:10

Options as required field

Post by skillig-wco » 10 Mar 2021, 14:18

Hi,

i have different attributes of my own attribute type.
These are assigned to the product (event) as options.
In the shop, the options are also displayed for selection.

Can I define this selection as a mandatory field?

Best regards
Sven
Attachments
options-frontend.jpg
options-frontend.jpg (74.42 KiB) Viewed 876 times
product-options.jpg
product-options.jpg (48.26 KiB) Viewed 876 times

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

Re: Options as required field

Post by aimeos » 12 Mar 2021, 07:20

You can set the "preselect" option for your attribute type and then, it's mandatory:
https://aimeos.org/docs/2020.x/config/c ... #preselect
For variant attributes it's:
https://aimeos.org/docs/2020.x/config/c ... #preselect
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply