You can use dynamic pricing for the following types of pricing object:
Items - Each item has a list price that can be specified in the
listPrice
property of the Product Catalog repository. Oracle ATG Web Commerce pricing services adapt the list price by applying any discounts or other promotions that you have set up. For example, you might set up a “2-for-1” sale for a limited period on a specific type of item. (Note that an “item” is aCommerceItem
, which represents a quantity of a SKU or a product).Orders - Commerce pricing services calculate the total cost of an order and can apply any discounts that are applicable (for example, a customer might have a coupon offering a 10% discount on a total order).
Shipping price - Commerce pricing services can calculate the price of shipping for an order and apply discounts if applicable.
Tax - Commerce pricing services can calculate the sales tax for an order.
Commerce uses the same basic structure for pricing each type of object. The structure includes the following:
A pricing engine
One or more calculators
A helper method in the qualifier service
An item-descriptor in the Promotions repository
For example, the structure for pricing and discounting catalog items includes the following:
An Item Pricing Engine
An Item List Price Calculator, an Item Sale Price Calculator, and an Item Discount Calculator
The
findQualifyingItems
call inatg.commerce.pricing.Qualifier
The
Item Discount
item-descriptor in the repository/atg/commerce/pricing/Promotions
.
Note: The structure for determining sales tax is slightly different because Oracle ATG Web Commerce does not support offering discounts on tax. For this reason, there is no item-descriptor for tax discounts in the default Promotions repository. You could add such an item-descriptor if necessary.
The ATG Business Commerce Reference Application Guide contains extensive descriptions of how dynamic pricing was implemented in the Motorprise reference application. Also see the sections on the PriceItem and the PriceEachItem servlet beans in the ATG Commerce Guide to Setting Up a Store.