Skip to content

Commit

Permalink
https://github.com/thehcginstitute-com/m1/issues/589
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed May 4, 2024
1 parent 352ff87 commit 0657406
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ function getMailChimpTagValue(string $key)
return $mailchimpTagValue;
}

/**
* @return Ebizmarts_MailChimp_Helper_Webhook
*/
function getMailchimpWebhookHelper() {return $this->_mcWebhookHelper;}

/**
* @return int
*/
Expand Down Expand Up @@ -820,11 +815,6 @@ private function order():?O {return dfc($this, function() {/** @var OC $c */ ret
*/
private function setMailChimpDateHelper():void {$this->_mcDateHelper = Mage::helper('mailchimp/date');}

/**
* @param $mageMCWebhookHelper
*/
private function setMailChimpWebhookHelper():void {$this->_mcWebhookHelper = Mage::helper('mailchimp/webhook');}

/**
* @param $mapFields
* @return mixed
Expand Down Expand Up @@ -877,10 +867,6 @@ private function unserializeMapFields($mapFields) {return hcg_mc_h()->unserializ
* @var Ebizmarts_MailChimp_Helper_Date
*/
private $_mcDateHelper;
/**
* @var Ebizmarts_MailChimp_Helper_Webhook
*/
private $_mcWebhookHelper;

/**
* @var Ebizmarts_MailChimp_Model_Api_Subscribers_InterestGroupHandle
Expand Down
3 changes: 2 additions & 1 deletion app/code/local/HCG/MailChimp/Tags/ProcessMergeFields.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
namespace HCG\MailChimp\Tags;
use Ebizmarts_MailChimp_Helper_Webhook as WebhookH;
use Ebizmarts_MailChimp_Model_Api_Subscribers_MailchimpTags as T;
# 2024-05-04 Dmitrii Fediuk https://upwork.com/fl/mage2pro
# "Refactor `Ebizmarts_MailChimp_Model_Api_Subscribers_MailchimpTags`": https://github.com/cabinetsbay/site/issues/589
Expand Down Expand Up @@ -68,7 +69,7 @@ static function p(array $data, bool $subscribe = false):void {
private static function _addSubscriberData($subscriber, $fname, $lname, $email, $listId):void
{
$helper = hcg_mc_h();
$webhookHelper = $this->getMailchimpWebhookHelper();
$webhookHelper = \Mage::helper('mailchimp/webhook'); /** @var WebhookH $webhookHelper */
$scopeArray = $helper->getFirstScopeFromConfig(
\Ebizmarts_MailChimp_Model_Config::GENERAL_LIST,
$listId
Expand Down

0 comments on commit 0657406

Please sign in to comment.