From 1926584b605c2c7a7c648355754fc6632812909a Mon Sep 17 00:00:00 2001 From: Roberto Sarmiento Date: Wed, 29 Jan 2020 12:09:51 -0300 Subject: [PATCH] Comparing getMCIsSyncing result with 1, instead assuming not valuing 0, null. This was avoiding the syncing of abandoned carts. Using the magentoStoreId as scopeId (param of getMCIsSyncing) in order to check the abandoned carts in the proper scope. Closes #1144 --- app/code/community/Ebizmarts/MailChimp/Model/Api/Batches.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/community/Ebizmarts/MailChimp/Model/Api/Batches.php b/app/code/community/Ebizmarts/MailChimp/Model/Api/Batches.php index 62b54d32e..fc6692074 100644 --- a/app/code/community/Ebizmarts/MailChimp/Model/Api/Batches.php +++ b/app/code/community/Ebizmarts/MailChimp/Model/Api/Batches.php @@ -362,7 +362,7 @@ public function _sendEcommerceBatch($magentoStoreId) $productAmount = count($productsArray); $batchArray['operations'] = array_merge($batchArray['operations'], $productsArray); - if ($helper->getMCIsSyncing($mailchimpStoreId)) { + if ($helper->getMCIsSyncing($mailchimpStoreId, $magentoStoreId) === 1) { $helper->logBatchStatus('No Carts will be synced until the store is completely synced'); } else { //cart operations