From 3a4d7e80deababc8eb7245a38d01152e49c2c0b1 Mon Sep 17 00:00:00 2001 From: Pablo Keller Date: Tue, 27 Feb 2018 16:25:53 -0300 Subject: [PATCH] Add abs for discount_amount --- app/code/community/Ebizmarts/MailChimp/Model/Api/Orders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/community/Ebizmarts/MailChimp/Model/Api/Orders.php b/app/code/community/Ebizmarts/MailChimp/Model/Api/Orders.php index 80e1cf5bd..95d15acbd 100644 --- a/app/code/community/Ebizmarts/MailChimp/Model/Api/Orders.php +++ b/app/code/community/Ebizmarts/MailChimp/Model/Api/Orders.php @@ -680,7 +680,7 @@ public function getPromoData($order) $promo = array(array( 'code' => $couponCode, - 'amount_discounted' => $amountDiscounted, + 'amount_discounted' => abs($amountDiscounted), 'type' => $type ));