Uses of Class
com.broadleafcommerce.cartoperation.domain.AttributeChoice
Packages that use AttributeChoice
Package
Description
-
Uses of AttributeChoice in com.broadleafcommerce.cartoperation.domain
Methods in com.broadleafcommerce.cartoperation.domain that return AttributeChoiceModifier and TypeMethodDescriptionProductOption.getAttributeChoice()Configuration when theProductOption.typeof this option is one of:ProductOptionType.VARIANT_DISTINGUISHING- drives customer further specifying their choices into a specificVariantthat contains a unique SKU code, pricing concerns, etc.ProductOptionType.CART_ITEM_ATTRIBUTE- Customer input will flow directly in the item attributes within their cartProductOptionType.CART_ATTRIBUTE.Methods in com.broadleafcommerce.cartoperation.domain with parameters of type AttributeChoiceModifier and TypeMethodDescriptionvoidProductOption.setAttributeChoice(AttributeChoice attributeChoice) Configuration when theProductOption.typeof this option is one of:ProductOptionType.VARIANT_DISTINGUISHING- drives customer further specifying their choices into a specificVariantthat contains a unique SKU code, pricing concerns, etc.ProductOptionType.CART_ITEM_ATTRIBUTE- Customer input will flow directly in the item attributes within their cartProductOptionType.CART_ATTRIBUTE. -
Uses of AttributeChoice in com.broadleafcommerce.cartoperation.service.configuration
Methods in com.broadleafcommerce.cartoperation.service.configuration with parameters of type AttributeChoiceModifier and TypeMethodDescriptionDefaultAttributeChoiceConfigurationService.determineMatchedValue(@NonNull AttributeChoice attributeChoice, String chosenValue) If there are anygetAllowedValues(), make sure that the chosen value matches.protected voidDefaultAttributeChoiceConfigurationService.performRegexValidation(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, @NonNull AttributeChoice attributeChoice, @NonNull String chosenValue) Perform regex validation fromgetValidationRule()against the cart.protected voidDefaultAttributeChoiceConfigurationService.performValidationStrategy(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, @NonNull AttributeChoice attributeChoice, @NonNull String chosenValue) Perform thegetValidationStrategy()on the cartItem and the chosen value.