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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether to always treatIncludedProductsas not discountable.voidsetIncludedProductNeverDiscountable(boolean includedProductNeverDiscountable) Whether to always treatIncludedProductsas not discountable.
-
Constructor Details
-
CartItemConfigurationProperties
public CartItemConfigurationProperties()
-
-
Method Details
-
isIncludedProductNeverDiscountable
public boolean isIncludedProductNeverDiscountable()Whether to always treatIncludedProductsas not discountable. Default istrue. When set tofalse,IncludedProduct.isDiscountAllowed()will be consulted.IncludedProductsrepresent 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 treatIncludedProductsas not discountable. Default istrue. When set tofalse,IncludedProduct.isDiscountAllowed()will be consulted.IncludedProductsrepresent 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.
-