The ItemDiscountCalculator
component is a preconfigured instance of the class atg.commerce.pricing.ItemDiscountCalculator
. It is the default discount calculator for the following types of promotion:
Item Discount -- Percent Off
Item Discount -- Amount Off
Item Discount -- Fixed Price
The following sample shows the contents of the ItemDiscountCalculator.properties
file:
# The ItemPricingCalculator which calculates a discount # $class=atg.commerce.pricing.ItemDiscountCalculator pricingModelProperties=/atg/commerce/pricing/PricingModelProperties qualifierService=/atg/commerce/pricing/QualifierService # negativeAmountException=
The following table describes the properties of the ItemDiscountCalculator
component.
Property | Description |
---|---|
| Specifies a bean that hosts the names of all of the properties of a pricing model repository item. |
| Specifies a Qualifier that performs the actual evaluation of a |
| ATG Commerce never discounts the price of an item to less than zero. This property determines what happens when a discount would cause the amount of an item to be negative.
|
You can view and modify this component in the ATG Control Center. Its location is /atg/commerce/pricing/calculators/ItemDiscountCalculator
.
For more information, refer to the description of the ItemDiscountCalculator class.