Skip to content

Commit

Permalink
Comparing getMCIsSyncing result with 1, instead assuming not valuing …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
roberto-ebizmarts committed Jan 29, 2020
1 parent 55ed06f commit 1926584
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1926584

Please sign in to comment.