Key files and controls
Overview of cart object
Accessing/adding cart items
Workflows/How totals are calculated
The workflow updates a number of properties of the Cart to indicate various totals. These properties allow you to easily display the price for a line item, the discount amount, and the after-discount-price. These include
Cart.SubTotal is the total for the cart, after discounts are applied.
LineItem.ListPrice is the price before discount
LineItem.ExtendedPrice is the price for a lineitem, given the quantity of the item and applicable discounts.
LineItem.LineItemDiscountAmount is the total amount of discount for a LineItem.