Class ValidateProductOptionsCheckoutExtensionHandler

java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.core.checkout.service.workflow.extension.AbstractValidateCheckoutActivityExtensionHandler
org.broadleafcommerce.core.checkout.service.workflow.extension.ValidateProductOptionsCheckoutExtensionHandler
All Implemented Interfaces:
org.broadleafcommerce.common.extension.ExtensionHandler, ValidateCheckoutActivityExtensionHandler

@Service("blValidateProductOptionsCheckoutExtensionHandler") public class ValidateProductOptionsCheckoutExtensionHandler extends AbstractValidateCheckoutActivityExtensionHandler
Re-validates the product options of each order item at checkout, as a defense-in-depth check for items that may have entered the cart without going through the add workflow (e.g. a cart merge, a CSR tool or an import). Disabled by default, since an option value that was valid when the item was added can become invalid if the catalog changes afterwards, and rejecting it would block checkout. Enable with validate.checkout.product.options.enabled.