Add 1:1 relation to product

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!
MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Add 1:1 relation to product

Post by MikaelNazarenko » 29 Jun 2021, 05:34

I need to add several relations 1:1 to product. Field must be selectable. The list of options must be possible to populate from admin panel. What could you suggest in this case ?

To understand better this is animal food shop. The all fields are selectable and have only 1 possible option, could look like this:

field 1: kind of food (several options, only one can be selected)
field 2: animal type (several options, only one can be selected)
field 3: Production method (several options, only one can be selected)

Should I use aimeos lists mechanism (but it supposes many to many), or better use attributes or properties ?

Please clear this moment for me

Thanks !

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

Re: Add 1:1 relation to product

Post by aimeos » 29 Jun 2021, 05:46

If you want to create a product where customers can select between several options, you should use configurable attributes from the "Options" tab in the product detail panel of the admin backend.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: Add 1:1 relation to product

Post by MikaelNazarenko » 29 Jun 2021, 06:01

Great! And will not be the problem to filter or search products on frontend by attributes ?

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

Re: Add 1:1 relation to product

Post by aimeos » 29 Jun 2021, 06:13

Attributes of any (list) type are the only ones that can build filters in the frontend.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply