The atg.commerce.pricing.ItemSalePriceCalculator
class extends the ItemPriceCalculator
. It determines the sale price of an item and discounts the itemPriceInfo
to that amount. This class also maintains the audit trail of the ItemPriceInfo
. There is no rule associated with this calculator. If one of the pricing methods of ItemSalePriceCalculator
is invoked, all input items are discounted to the sale price.
The ItemSalePriceCalculator
class also contains the following property:
onSalePropertyName
: The boolean property of the price source that determines if the price source is on sale. A price source is thecatalogRef
orproductRef
of aCommerceItem
.
The ItemPriceCalculator section includes an example of how the ItemSalePriceCalculator
determines a price.