The atg.commerce.pricing.ItemPriceInfo
class contains information about the price of an item (a CommerceItem
). It also contains detailed price information about how individual quantities of the CommerceItem
were priced. For example, if an item’s quantity is 5, and 3 items received Discount A and the other two received Discount B, there would be two DetailedItemPriceInfo
entries in currentPriceDetails
:
One
DetailedItemPriceInfo
entry for the quantity of 3, describing the changes discount A made to the price.One
DetailedItemPriceInfo
entry for the quantity of 2, describing the changes discount B made to the price.
The amount
property of ItemPriceInfo
(inherited from AmountInfo
) should always equal the sum of the amounts of the DetailedItemPriceInfo
entries in currentPriceDetails
.
For information about ItemPriceInfo
properties, see the ATG Platform API Reference.