The OrderPricingEngine component is a preconfigured implementation of the OrderPricingEngineImpl class. It determines the price of an entire order by invoking a series of OrderPricingCalculators. It uses the same mechanisms as the ItemPricingEngine component for determining which promotions to apply.

The following sample shows the contents of the OrderPricingEngine.properties file:

# The OrderPricingEngine service
#

$class=atg.commerce.pricing.OrderPricingEngineImpl

defaultLocale^=PricingTools.defaultLocale
priceInfoClass=atg.commerce.pricing.OrderPriceInfo
pricingModelProperties=PricingModelProperties
promotionTools=../promotion/PromotionTools
profileProperties=activePromotions
promotionsRepository=Promotions
promotionItemTypes=\
        Order Discount
globalPromotionsQuery=(global=true AND enabled=true AND (startDate IS NULL OR
startDate <= ?0) AND (endDate IS NULL OR endDate >= ?0))
preCalculators=\
        calculators/OrderSubtotalCalculator
scheduler=/atg/dynamo/service/Scheduler
updateSchedule=every 15 minutes in 15 minutes

You can view and modify this component in the ATG Control Center. Its location is /atg/commerce/pricing/OrderPricingEngine.

For more information on how to use this component, refer to the description of OrderPricingEngineImpl in the Pricing Engine Classes section.

 
loading table of contents...