Skip to content

Commit

Permalink
https://github.com/thehcginstitute-com/m1/issues/590
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed May 2, 2024
1 parent 9d38e24 commit a2986a3
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions app/code/community/Ebizmarts/MailChimp/Model/ProcessWebhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,6 @@ private function _clean(array $data):void {
}
}

/**
* Subscribe email to Magento list, store aware
*
* @param array $data
* @return void
*/
private function _subscribe(array $data):void {
try {
$subscribe = true;
$this->getMailchimpTagsModel()->processMergeFields($data, $subscribe);
} catch (Exception $e) {
Mage::logException($e);
}
}

/**
* Unsubscribe or delete email from Magento list, store aware
*
Expand Down Expand Up @@ -183,6 +168,21 @@ private function _getStoreId()
*/
private function _profile(array $d):void {$this->getMailchimpTagsModel()->processMergeFields($d);}

/**
* Subscribe email to Magento list, store aware
*
* @param array $data
* @return void
*/
private function _subscribe(array $data):void {
try {
$subscribe = true;
$this->getMailchimpTagsModel()->processMergeFields($data, $subscribe);
} catch (Exception $e) {
Mage::logException($e);
}
}

/**
* 2024-05-02 Dmitrii Fediuk https://upwork.com/fl/mage2pro
* "Refactor `Ebizmarts_MailChimp_Model_ProcessWebhook`": https://github.com/cabinetsbay/site/issues/590
Expand Down

0 comments on commit a2986a3

Please sign in to comment.