From 511bdf0d7c231349c29f669872ab01c5385ff4e6 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Tue, 10 Jun 2014 16:00:46 +0200 Subject: [PATCH] Order total may be calculated with or without discounted items --- core/lib/Thelia/Coupon/FacadeInterface.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/lib/Thelia/Coupon/FacadeInterface.php b/core/lib/Thelia/Coupon/FacadeInterface.php index 40e4e2948..8a4d004a3 100644 --- a/core/lib/Thelia/Coupon/FacadeInterface.php +++ b/core/lib/Thelia/Coupon/FacadeInterface.php @@ -68,17 +68,19 @@ interface FacadeInterface /** * Return Products total price * CartTotalPrice = Checkout total - discount - postage + * @param bool $withItemsInPromo true (default) if item in promotion should be included in the total, false otherwise. * * @return float */ - public function getCartTotalPrice(); + public function getCartTotalPrice($withItemsInPromo = true); /** * Return Product total tax price + * @param bool $withItemsInPromo true (default) if item in promotion should be included in the total, false otherwise. * * @return float */ - public function getCartTotalTaxPrice(); + public function getCartTotalTaxPrice($withItemsInPromo = true); /** * Return the Checkout currency EUR|USD