Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiagoebizmarts committed Dec 15, 2016
2 parents c6165b6 + 9892063 commit c63586d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/code/community/Ebizmarts/MailChimp/Model/Api/Batches.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ public function _sendEcommerceBatch($mailchimpStoreId)
$batchArray['operations'] = array_merge($batchArray['operations'], $ordersCanceledArray);
}
try {
/**
* @var $mailchimpApi \Ebizmarts_Mailchimp
*/
$mailchimpApi = Mage::helper('mailchimp')->getApi();
if (!empty($batchArray['operations'])) {
$batchJson = json_encode($batchArray);
Expand Down Expand Up @@ -152,6 +155,10 @@ protected function _sendSubscriberBatches()
break;
}
}
$this->_getResults(0, false);
if ($subscriberLimit > 0) {
list($batchResponses[], $subscriberLimit) = $this->sendStoreSubscriberBatch(0, $subscriberLimit);
}
return $batchResponses;
}

Expand Down

0 comments on commit c63586d

Please sign in to comment.