A PricingModel
is a RepositoryItem
that can calculate the price of an item, given a method to calculate a price and parameters to use. The pricing models available in ATG Consumer Commerce take care of the pricing needs for most store sites, but you may want to offer your own promotions. This section describes the pricing models that exist in ATG Consumer Commerce and how to create your own pricing model.
ATG Consumer Commerce supports the following types of pricing calculators:
Percent discount (for example, 5% off all helmets)
Set price (for example, buy 2 jerseys, get 1 jersey for $20)
Amount off (for example, $5 off all gloves).
Discounts can be applied to any of the following:
Items (objects in shopping cart)
Order (the order total)
Tax (tax on an order)
Shipping (cost of shipping).
A pricing model has two pieces of information, pricingCalculatorService
and adjuster
. The pricingCalculatorService
specifies which calculator to use to determine the discount. The adjuster
indicates how much to adjust. For example, in the case of a percent discount, if the adjuster
is set to 5, the calculator takes a 5% discount off an item, an order, tax, or shipping charges.