Answer the question
In order to leave comments, you need to log in
Table structure for property mini-filter?
How to store correctly, so that later you can choose the relationship.
Answer the question
In order to leave comments, you need to log in
In any case, all these properties are tied to a specific product.
Therefore, you can make two tables:
"Products", with fields:
- id
- product name
"Properties", with fields:
- id
- product id
- Property name
- Property value
Dump all product properties into the property table. Further, everything is simpler: the user made a choice of color (according to your picture) - a request for a selection was sent: what properties the products with the selected color have. Based on the sample, fill in the fields for the sample below. Etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question