Example
T-shirt
Color: Red, Green, Blue
Size: L, XL, XXL
Style: A, B
So for this I would want to hide the Style attribute entirely if the customer select Green or Blue for the color. I'm currently on 2.3, does this exist in 2.4 or 2.5?
If you were going to custom develop this, how would you model it? My initial thought is a new table to define the dependencies from one attribute to another:
ProductVariant_ProductAttribute_Dependencies
Id int,
ProductVariantAttributeId int (FK to ProductVariant_ProductAttribute_Mapping)
DependentProductVariantAttributeValueId int
In the JS change() function that each attribute triggers, I would check to see if the selected ProductVariantAttributeValue.Id matches this table and hide the DIV that matches the ProductVariantAttribute.Id. I imagine I would also need to modify the function that generates cart warnings to not throw an error because that attribute is missing.
Any better ideas? (I'm kinda using this post to do some [url="http://en.wikipedia.org/wiki/Rubber_duck_debugging"]Rubber Duck Designing[/url])