Configure Child or Grandchild Products Based on Parent Product
Use the parent keyword to configure child and grandchild products dynamically based on the parent product.
Use the parent keyword to configure child and grandchild products dynamically based on the parent product. Control visibility or availability for the child or grandchild using the keyword.
The parent keyword isn’t supported with Group Type. When you organize components in Product Component Groups, the Group Type becomes an intermediate parent in the hierarchy. To reach the bundle root, use parent(attribute, 1) to skip the group, or use the dot-notation pattern from the bundle level, groupVariable.childRelation.attribute, instead of parent(). See Group Type.
In this example, grandchild products are excluded based on which parent product they belong to.