The following steps describe how to price items using price lists.
Assign a price list to a user.
The price list that is used to price an order is stored in the user’s profile. There will be a property called
priceList
of typepriceList
.Note: ATG Business Commerce users can also store this price list in the contract used by the customer’s organization.
Price an item with a price list.
There are price list-specific versions of each of the precalculators used by the
ItemPricingEngine
.ItemPriceListCalculator
is the precalculator for list pricing.ConfigurableItemPriceListCalculator
is the precalculator for configurable item pricing.View a price through JSP code in JSPs.
The
PriceDroplet
servlet bean is used for looking up the price of an item. For more information on thePriceDroplet
servlet bean, see the PriceDroplet section in this chapter in the ATG Commerce Guide to Setting Up a Store.
Caching Price Lists
PriceCache
allows you to cache the prices in price lists. Price lists can contain a large number of prices. If you do not want the PriceCache
to hold all the prices in the prices list, adjust the PriceCache
settings in your liveconfig
directory. The PriceCache
settings are located in liveconfig/atg/commerce/pricing/priceLists/PriceCache.properties
.