Skip to content

Commit

Permalink
Customer opt-in sent correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiagoebizmarts committed Jun 20, 2016
1 parent 9a81fa7 commit 0c1eedd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/community/Ebizmarts/MailChimp/Model/Api/Orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

Expand Down

0 comments on commit 0c1eedd

Please sign in to comment.