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
). It takes non-discountable items into account when making this computation.
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.
You can view and modify the OrderDiscountCalculator
component in the ATG Control Center. The component is located in /atg/commerce/pricing/calculators/OrderDiscountCalculator
.