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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether to always treatIncludedProducts
as not discountable.void
setIncludedProductNeverDiscountable
(boolean includedProductNeverDiscountable) Whether to always treatIncludedProducts
as not discountable.
-
Constructor Details
-
CartItemConfigurationProperties
public CartItemConfigurationProperties()
-
-
Method Details
-
isIncludedProductNeverDiscountable
public boolean isIncludedProductNeverDiscountable()Whether to always treatIncludedProducts
as not discountable. Default istrue
. When set tofalse
,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 treatIncludedProducts
as not discountable. Default istrue
. When set tofalse
,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.
-