The ShippingPricingEngine component is a preconfigured implementation of the ShippingPricingEngineImpl class. It determines the price of shipping for an order by invoking a series of ShippingPricingCalculators. It uses the same mechanisms as the ItemPricingEngine component for determining which promotions to apply.

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

# The ShippingPricingEngine service
#

$class=atg.commerce.pricing.ShippingPricingEngineImpl

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

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

 
loading table of contents...