Class CartItemProductServiceProperties

java.lang.Object
com.broadleafcommerce.cartoperation.service.mapping.CartItemProductServiceProperties

@ConfigurationProperties("broadleaf.cartoperation.service") public class CartItemProductServiceProperties extends Object
  • Constructor Details

    • CartItemProductServiceProperties

      public CartItemProductServiceProperties()
  • Method Details

    • isMatchCartItemAssetToVariant

      public boolean isMatchCartItemAssetToVariant()
      Determines whether the CartItem.getImageAsset() should match the selected Variant if possible instead of the Product.getPrimaryAsset(). The matching will be done via DefaultCartItemCatalogInformationService if the Variant has optionValues to use to match with a product asset by tag.

      Defaults to true since Cart Operation 2.2.0-GA.

    • getPreferredAssetTag

      public String getPreferredAssetTag()
      Preferred asset to use for display in the Cart. If an asset with this tag is found, it will be used. If no asset is found then the primary asset or the first variant-matching asset will be used. The default tag is cart.
      Since:
      Cart Operation Service 2.2.0, Release Train 2.2.0
      See Also:
    • isUseVariantNameInCart

      public boolean isUseVariantNameInCart()
      Whether to use the name of the variant as the display name of the cart item instead of the product's.
      Since:
      Cart Operation Service 2.2.0, Release Train 2.2.0
    • setMatchCartItemAssetToVariant

      public void setMatchCartItemAssetToVariant(boolean matchCartItemAssetToVariant)
      Determines whether the CartItem.getImageAsset() should match the selected Variant if possible instead of the Product.getPrimaryAsset(). The matching will be done via DefaultCartItemCatalogInformationService if the Variant has optionValues to use to match with a product asset by tag.

      Defaults to true since Cart Operation 2.2.0-GA.

    • setPreferredAssetTag

      public void setPreferredAssetTag(String preferredAssetTag)
      Preferred asset to use for display in the Cart. If an asset with this tag is found, it will be used. If no asset is found then the primary asset or the first variant-matching asset will be used. The default tag is cart.
      Since:
      Cart Operation Service 2.2.0, Release Train 2.2.0
      See Also:
    • setUseVariantNameInCart

      public void setUseVariantNameInCart(boolean useVariantNameInCart)
      Whether to use the name of the variant as the display name of the cart item instead of the product's.
      Since:
      Cart Operation Service 2.2.0, Release Train 2.2.0