Skip to main content
added 16 characters in body
Source Link

Magento 2 doesn't support parent-child product attribute.

Keep mainDesign table as following:

Make: ID, Name, Created_At (Honda, Audi, BMW, Ford.. )
Model: ID, Make_ID, Name, Created_At (Civic, Accord, A3, A4 ...)
Year: Make_ID, Model_ID, From, To, Created_At (2015, 2016, 2019...)

And use this table forto link product towith vehicle (Make, Model, Year)

Product_Vehicle: ID, Make_ID, Model_ID, Year_ID, Product_ID

Magento 2 doesn't support parent-child product attribute.

Keep main table:

Make: ID, Name, Created_At (Honda, Audi, BMW, Ford.. )
Model: ID, Make_ID, Name, Created_At (Civic, Accord, A3, A4 ...)
Year: Make_ID, Model_ID, From, To, Created_At (2015, 2016, 2019...)

And use table for link product to vehicle (Make, Model, Year)

Product_Vehicle: ID, Make_ID, Model_ID, Year_ID, Product_ID

Magento 2 doesn't support parent-child product attribute.

Design table as following:

Make: ID, Name, Created_At (Honda, Audi, BMW, Ford.. )
Model: ID, Make_ID, Name, Created_At (Civic, Accord, A3, A4 ...)
Year: Make_ID, Model_ID, From, To, Created_At (2015, 2016, 2019...)

And use this table to link product with vehicle (Make, Model, Year)

Product_Vehicle: ID, Make_ID, Model_ID, Year_ID, Product_ID
Source Link

Magento 2 doesn't support parent-child product attribute.

Keep main table:

Make: ID, Name, Created_At (Honda, Audi, BMW, Ford.. )
Model: ID, Make_ID, Name, Created_At (Civic, Accord, A3, A4 ...)
Year: Make_ID, Model_ID, From, To, Created_At (2015, 2016, 2019...)

And use table for link product to vehicle (Make, Model, Year)

Product_Vehicle: ID, Make_ID, Model_ID, Year_ID, Product_ID