I'm using JSONP to build my own cart interface, which is working well so far. However, I need to display information about the discounts being applied to the items in the cart.
The cart includes a total_discount field, but this is always 0, even when discounts are applied to items in the cart. The cart's total price reflects the discounts, as do the prices of the line items themselves, but it is as if those were the original prices of the products. The only indication of a discount is that the discount's name and amount appear as a key-value pair in each of the products' options. However, this doesn't give me access to the original prices.
Am I missing something here? Or do I have to hack together a way to recover the original prices of the products in my cart?