Skip to content

Commit

Permalink
Merge pull request #1892 from mailchimp/Issue1891-2.4
Browse files Browse the repository at this point in the history
closes #1891 for 2.4
  • Loading branch information
gonzaloebiz committed Feb 27, 2024
2 parents ed765f7 + 9fd5d4a commit 9527ff7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Helper/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public function saveEcommerceData(
) {
if (!empty($entityId)) {
$chimpSyncEcommerce = $this->getChimpSyncEcommerce($storeId, $entityId, $type);
if ($modified==0) {
$sent = \Ebizmarts\MailChimp\Helper\Data::SYNCED;
}
if ($chimpSyncEcommerce->getRelatedId() == $entityId ||
!$chimpSyncEcommerce->getRelatedId() && $modified != 1) {
$chimpSyncEcommerce->setMailchimpStoreId($storeId);
Expand Down
2 changes: 1 addition & 1 deletion Model/Api/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ private function _updateSyncData($mailchimpStoreId, $listId, $type, $id, $error,
$type,
null,
$error,
null,
0,
null,
null,
$status
Expand Down

0 comments on commit 9527ff7

Please sign in to comment.