I'm afraid you don't, at least not that way. Zencart doesn't support 'dependent' attributes, where the selection of one attribute determines the display of others.
I'm afraid you don't, at least not that way. Zencart doesn't support 'dependent' attributes, where the selection of one attribute determines the display of others.
Since there are innumerable ways that attributes could be "dependent", it is not possible to have generic code that will handle all or most situations. Any setup can be custom-coded with javascript to fit your particular case.
I have similar product options as you. The easiest way I found was to create a sql patch to define the individual combinations so anytime there are changes in the products/options, I just edit the sql file and upload it once to effect the changes to all products.
Warning: Depending on the number of combinations of products/options, this file could be quite large.