I have the following offer with quantity discounts for a series of my products:
- Buy 1 item and get $5 off per item
- Buy 2 items and get $10 off per item
- Buy 3 items and get $15 off per item
I set these discount rules in my control panel under "commerce" > "promotions".
Now in my product template, I would like to be able to output (for each quantity level):
- the normal (non-discounted) price
- the discounted price
- savings in terms of $
- savings in terms of %
For example it would then say on the product page (output):
"If you buy 2 items, you only pay $[discount price for 2 items] instead of $[normal price] per item. So your total today is only $[2 x discount price for 2 items] insted of $[2 x normal price]. You therefore save $[(2 x normal price)-(2 x discount price for 2 items)]. That's a discount of […]%."
The same goes for the discount offer of ordering 1 item or 3 items.
How can I accomplish this with all the discounts and math operations involved?