The ConfigurableItemPriceListCalculator
calculator assumes the ItemListPriceCalculator
has already run. ItemListPriceCalculator
calculator sets the list price and the amount of the ItemPriceInfo
based on the price of the ConfigurableSku
. The ConfigurableItemPriceListCalculator
calculator then iterates through the subSKUs
and modifies the list price and amount accordingly.
For example, consider a situation when a parent SKU is $5, sub-SKU A is $2 and sub-SKU B is $1. If we buy two of this configurable SKU, prior to invoking the calculator the listPrice
will be $5 and the amount will be $10. After the ConfigurableItemPriceListCalculator
calculator runs the listPrice
will be $8 and the amount will be $16.
The ConfigurableItemPriceListCalculator
component is located at /atg/commerce/pricing/calculators
/ConfigurableItemPriceListCalculator
. For more information on this calculator, see the Price List Calculators section of the Using Price Lists chapter.