Skip to content

Commit

Permalink
Merge pull request #1827 from mailchimp/Issue1822-2.3.6-p1
Browse files Browse the repository at this point in the history
closes #1822 for magento 2.3.6-p1
  • Loading branch information
gonzaloebiz authored Sep 12, 2023
2 parents c999957 + 2b0ad90 commit 5ea57c5
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 5ea57c5

Please sign in to comment.