Making product attribute selection mandatory

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
boettner
Advanced
Posts: 136
Joined: 09 Feb 2015, 17:49

Making product attribute selection mandatory

Post by boettner » 29 Apr 2020, 08:08

Hi,

we set up product variants via attribute options like shown in the attached screenshot:
Bildschirmfoto 2020-04-29 um 09.59.45.png
Bildschirmfoto 2020-04-29 um 09.59.45.png (89.14 KiB) Viewed 1122 times

Is there an easy way to make all options a mandatory selection? By default currently it´s currently optional.
I would go the Basket Decorator way but wanted to ask beforehand if it´s maybe more easily achievable?
If not and if I have to decorate the basket I suppose it would have to go into basket.standard, right?

Best
Robert.

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

Re: Making product attribute selection mandatory

Post by aimeos » 30 Apr 2020, 10:31

Use that configuration:

Code: Select all

client/html/catalog/attribute/preselect/tractionsheave -> true
It's used in that template:
https://github.com/aimeos/ai-client-htm ... #L130-L132
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply