The atg.commerce.pricing.ItemPriceInfo
class contains information about the price of a CommerceItem
. It also contains detailed price information about how individual quantities of the CommerceItem
were priced, including whether or not the item was flagged as non-discountable at the time of purchase.
The ItemPriceInfo
object describes the price for an entire CommerceItem
in an order. The amount
property of the ItemPriceInfo
is the final price for the given CommerceItem
. If part of the quantity of the CommerceItem
was discounted due to a promotion, this information is reflected in the ItemPriceInfo
. For example, if the order contains 10 shirts at $10.00 each, and there was a promotion “Buy 9 shirts, get 1 free” then the amount
property of the ItemPriceInfo
would be $90.00. The PricingAdjustments
in the ItemPriceInfo
would contain one PricingAdjustment
for the list price, and one for the promotion.
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.