From 0c1eedd93c0e99514b817c8a843f4cab7f1e87b0 Mon Sep 17 00:00:00 2001 From: Santiago Date: Mon, 20 Jun 2016 15:08:12 -0300 Subject: [PATCH] Customer opt-in sent correctly. --- app/code/community/Ebizmarts/MailChimp/Model/Api/Orders.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/community/Ebizmarts/MailChimp/Model/Api/Orders.php b/app/code/community/Ebizmarts/MailChimp/Model/Api/Orders.php index 249c7085f..c1fac3516 100644 --- a/app/code/community/Ebizmarts/MailChimp/Model/Api/Orders.php +++ b/app/code/community/Ebizmarts/MailChimp/Model/Api/Orders.php @@ -87,13 +87,13 @@ protected function GeneratePOSTPayload($order_from_collection) $data["customer"] = array( "id" => "GUEST-" . date('Y-m-d-H-i-s'), "email_address" => $order->getCustomerEmail(), - "opt_in_status" => Ebizmarts_MailChimp_Model_Api_Customers::DEFAULT_OPT_IN + "opt_in_status" => false ); } else { $data["customer"] = array( "id" => $order->getCustomerId(), "email_address" => $order->getCustomerEmail(), - "opt_in_status" => false + "opt_in_status" => Ebizmarts_MailChimp_Model_Api_Customers::DEFAULT_OPT_IN ); }