You are here:
ProductRelationshipValidationImpl
Validates line items based on defined product relationships. The implementation checks for required or excluded products when a product is added to the list of line items.
This implementation is deprecated. Use ValidationRulesImplementation instead.
For example, you can define a product relationship in which Product A requires Product B. When Product A is added to the line items, ProductRelationshipValdiationImpl checks whether Product B is also in the list of line items. If Product B is missing, then a message appears indicating that Product B is required. Similarly, an error message appears when Product A excludes Product B and both are added to the cart.
Interface
ProductValidationInterfaceProductValidationInterface
Sample Code
See ProductValidationInterfaceProductValidationInterface.
Related Implementations
-
DefaultProductValidationImplementationDefaultProductValidationImplementation
-
ValidationRulesImplementation
-
ValidationRulesFlowImplementationValidationRulesFlowImplementation

