The atg.commerce.pricing.OrderDiscountCalculator class implements the OrderPricingCalculator. It calculates OrderPriceInfo values for orders when the calculator is invoked. This calculator receives a MatchingObject and DiscountStructure from the pricing engine, then computes an OrderPriceInfo based on the input PricingModel (RepositoryItem).

See the ATG Platform API Reference for detailed information on OrderDiscountCalculator and its related classes.

The OrderDiscountCalculator component is a preconfigured instance of the class atg.commerce.pricing.OrderDiscountCalculator. It is the default discount calculator for order promotions.

The following table describes the properties of the OrderDiscountCalculator component.




Specifies a bean that hosts the names of all of the properties of a pricing model repository item. pricingModelProperties are used so you do not have to hard code the properties into a pricing model.


Specifies a Qualifier that performs the actual evaluation of a pmdlRule of the PricingModel against the running environment.


Determines what happens when discounts cause the amount of an item to be negative.

True: Throw an exception when a discount causes an amount to be negative.

False: (default) Log a warning message and set the amount to 0.0 when a discount causes an amount 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.