Class CartItemConfigurationProperties

java.lang.Object
com.broadleafcommerce.cartoperation.service.configuration.CartItemConfigurationProperties

@ConfigurationProperties("broadleaf.cartoperation.service.item.configuration") public class CartItemConfigurationProperties extends Object
Author:
Nathan Moore (nathandmoore)
  • Constructor Details

    • CartItemConfigurationProperties

      public CartItemConfigurationProperties()
  • Method Details

    • isIncludedProductNeverDiscountable

      public boolean isIncludedProductNeverDiscountable()
      Whether to always treat IncludedProducts as not discountable. Default is true. When set to false, IncludedProduct.isDiscountAllowed() will be consulted.

      IncludedProducts represent Bundle items in Broadleaf and, therefore, are never discountable. Instead, discounts should target the Bundle itself. Bundle items are different than add-ons which are optional and not integral to the Bundle itself.

    • setIncludedProductNeverDiscountable

      public void setIncludedProductNeverDiscountable(boolean includedProductNeverDiscountable)
      Whether to always treat IncludedProducts as not discountable. Default is true. When set to false, IncludedProduct.isDiscountAllowed() will be consulted.

      IncludedProducts represent Bundle items in Broadleaf and, therefore, are never discountable. Instead, discounts should target the Bundle itself. Bundle items are different than add-ons which are optional and not integral to the Bundle itself.