The ItemPricingEngine component is a preconfigured implementation of the ItemPricingEngineImpl class. It determines the price of one or more items by retrieving applicable promotions from the customer’s profile and invoking one or more ItemPricingCalculators.

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

# The ItemPricingEngine service
#
$class=atg.commerce.pricing.ItemPricingEngineImpl
defaultLocale^=PricingTools.defaultLocale
priceInfoClass=atg.commerce.pricing.ItemPriceInfo
pricingModelProperties=PricingModelProperties
promotionTools=../promotion/PromotionTools
profileProperties=activePromotions
promotionsRepository=Promotions
promotionItemTypes=\
        item-discount
globalPromotionsQuery=global=true AND (beginUsable IS NULL OR beginUsable <= ?0)
AND (endUsable IS NULL OR endUsable >= ?0)
preCalculators=\
        calculators/ItemListPriceCalculator
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/ItemPricingEngine.

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

 
loading table of contents...