atg.commerce.pricing.OrderPricingEngine
is an extension of the PricingEngine
interface. (See The Base Pricing Engine.) It describes an object that determines prices for Order
objects, which equal the total price of all items in a customer’s shopping cart. An OrderPricingEngine
uses the priceOrder
method to determine the price of an order.
The pricing context is defined by the priceOrder
method’s input parameters. Implementations of this interface create an OrderPriceInfo
object that accurately represents the price of an input order
. The way in which they do this depends on the implementation. The specific way in which the engine creates the order object varies according to individual implementations. For additional information on OrderPriceInfo
objects, refer to the OrderPriceInfo section.
Core Commerce provides the OrderPricingEngineImpl
class as a default implementation of the OrderPricingEngine
interface. It computes the price for an order, invoking a series of OrderPricingCalculators
.