Skip to content

Commit

Permalink
Merge pull request #1826 from mailchimp/Issue1822-2.3
Browse files Browse the repository at this point in the history
closes #1822 for magento 2.3
  • Loading branch information
gonzaloebiz authored Sep 12, 2023
2 parents e93115f + c4da927 commit e6c73f8
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions Observer/Sales/Order/SaveAfter.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,16 @@ public function execute(\Magento\Framework\Event\Observer $observer)
\Ebizmarts\MailChimp\Helper\Data::XML_MAILCHIMP_STORE,
$order->getStoreId()
);
if ($order->getMailchimpSent() != \Ebizmarts\MailChimp\Helper\Data::NEVERSYNC) {
$this->syncHelper->saveEcommerceData(
$mailchimpStoreId,
$order->getId(),
\Ebizmarts\MailChimp\Helper\Data::IS_ORDER,
null,
null,
1,
null,
null,
\Ebizmarts\MailChimp\Helper\Data::NEEDTORESYNC
);
}
$this->syncHelper->saveEcommerceData(
$mailchimpStoreId,
$order->getId(),
\Ebizmarts\MailChimp\Helper\Data::IS_ORDER,
null,
null,
1,
null,
null,
\Ebizmarts\MailChimp\Helper\Data::NEEDTORESYNC
);
}
}

0 comments on commit e6c73f8

Please sign in to comment.