Dependent custom options relation (parent-> child relation)
To make relationship between custom attributes.
The parent option is the major product variant, or the key product in the product option hierarchy.
Set AND/OR custom options dependencies. Create products with a wide range of options (e.g., size, color, dimensions, etc.) and display them depending on the customer's initial choice. Apply OR dependency to let shoppers select the child product option only after they have picked up the parent one
Child choices are product variants that are dependent on the parent option; that is, they become available (and occasionally shown) if the consumer only selects the main parent product.
In the meanwhile, they may be unavailable or even hidden from the shopper in some cases.
As an example:
You offer t-shirts in three colours: blue, red, and yellow.
Each colour option is available in a variety of sizes.
If the buyer choose red, the t-shirt is available in XS and M sizes.
If the buyer selects a blue t-shirt, just M size will be presented because it is the only size available in that colour.