Class CartItemProductServiceProperties
java.lang.Object
com.broadleafcommerce.cartoperation.service.mapping.CartItemProductServiceProperties
@ConfigurationProperties("broadleaf.cartoperation.service")
public class CartItemProductServiceProperties
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether theCartItem.getImageAsset()should match the selectedVariantif possible instead of theProduct.getPrimaryAsset().voidsetMatchCartItemAssetToVariant(boolean matchCartItemAssetToVariant) Determines whether theCartItem.getImageAsset()should match the selectedVariantif possible instead of theProduct.getPrimaryAsset().
-
Constructor Details
-
CartItemProductServiceProperties
public CartItemProductServiceProperties()
-
-
Method Details
-
isMatchCartItemAssetToVariant
public boolean isMatchCartItemAssetToVariant()Determines whether theCartItem.getImageAsset()should match the selectedVariantif possible instead of theProduct.getPrimaryAsset(). The matching will be done viaDefaultCartItemCatalogInformationServiceif theVarianthasoptionValuesto use to match with aproduct assetby tag. -
setMatchCartItemAssetToVariant
public void setMatchCartItemAssetToVariant(boolean matchCartItemAssetToVariant) Determines whether theCartItem.getImageAsset()should match the selectedVariantif possible instead of theProduct.getPrimaryAsset(). The matching will be done viaDefaultCartItemCatalogInformationServiceif theVarianthasoptionValuesto use to match with aproduct assetby tag.
-