The OrderDiscountCalculator
component is a preconfigured instance of the class atg.commerce.pricing.OrderDiscountCalculator
. It is the default discount calculator for the following types of promotion:
Order Discount -- Percent Off
Order Discount -- Amount Off
Order Discount -- Fixed Price
The following sample shows the contents of the OrderDiscountCalculator.properties
file:
# # The OrderPricingCalculator which calculates a discount # $class=atg.commerce.pricing.OrderDiscountCalculator pricingModelProperties=/atg/commerce/pricing/PricingModelProperties qualifierService=/atg/commerce/pricing/QualifierService # negativeAmountException=
The following table describes the properties of the OrderDiscountCalculator
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 |
| Determines what happens when discounts cause the amount of an item to be negative.
|
You can view and modify the OrderDiscountCalculator
component in the ATG Control Center. The component is located in /atg/commerce/pricing/calculators/OrderDiscountCalculator
.
For more information, refer to the description of the OrderDiscountCalculator class.