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 onSalePropertyName
, which is the Boolean property of the price source that determines if the price source is on sale. A price source is the catalogRef
or productRef
of a CommerceItem
.
The ItemPriceCalculator section includes an example of how the ItemSalePriceCalculator
determines a price.