Class CartItemProductServiceProperties
java.lang.Object
com.broadleafcommerce.cartoperation.service.mapping.CartItemProductServiceProperties
@ConfigurationProperties("broadleaf.cartoperation.service")
public class CartItemProductServiceProperties
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether theCartItem.getImageAsset()
should match the selectedVariant
if possible instead of theProduct.getPrimaryAsset()
.void
setMatchCartItemAssetToVariant
(boolean matchCartItemAssetToVariant) Determines whether theCartItem.getImageAsset()
should match the selectedVariant
if possible instead of theProduct.getPrimaryAsset()
.
-
Constructor Details
-
CartItemProductServiceProperties
public CartItemProductServiceProperties()
-
-
Method Details
-
isMatchCartItemAssetToVariant
public boolean isMatchCartItemAssetToVariant()Determines whether theCartItem.getImageAsset()
should match the selectedVariant
if possible instead of theProduct.getPrimaryAsset()
. The matching will be done viaDefaultCartItemCatalogInformationService
if theVariant
hasoptionValues
to use to match with aproduct asset
by tag. -
setMatchCartItemAssetToVariant
public void setMatchCartItemAssetToVariant(boolean matchCartItemAssetToVariant) Determines whether theCartItem.getImageAsset()
should match the selectedVariant
if possible instead of theProduct.getPrimaryAsset()
. The matching will be done viaDefaultCartItemCatalogInformationService
if theVariant
hasoptionValues
to use to match with aproduct asset
by tag.
-