NOTE: The only way to test is to place breakpoint at OrderCalculator::getDiscountInfo method.
- in Admin Console:
- go to E-commerce → Discounts & Certificates section
- create 15% discount for Whole Order to Everybody user group on Discounts tab
- create 15% coupon for Whole Order on Coupons tab
- go to Website & Content → Structure & Data → Products section
- create Tangible product with 39.5 price
- go to E-commerce → Discounts & Certificates section
- on Front-End:
- add product created before to cart
- confirm, that $discounted_price variable value is 33.5750
- disable discount in Admin Console
- confirm, that $discounted_price variable value no longer contains discount
- enter code of previously created coupon
- confirm, that $couponed_price variable value is 33.5750