diff --git a/app/code/local/HCG/MailChimp/Tags/ProcessMergeFields.php b/app/code/local/HCG/MailChimp/Tags/ProcessMergeFields.php index 62476d29af..3c88bb6375 100644 --- a/app/code/local/HCG/MailChimp/Tags/ProcessMergeFields.php +++ b/app/code/local/HCG/MailChimp/Tags/ProcessMergeFields.php @@ -134,7 +134,7 @@ private static function _addSubscriberData(Sub $s, $fname, $lname, $email, $list null ); if ($member['status'] == 'subscribed') { - $h->subscribeMember($s); + hcg_mc_subscribe($s); } elseif ( 'unsubscribed' === $member['status'] diff --git a/app/code/local/HCG/MailChimp/lib/subscriber.php b/app/code/local/HCG/MailChimp/lib/subscriber.php index e43e89466b..32370a09fe 100644 --- a/app/code/local/HCG/MailChimp/lib/subscriber.php +++ b/app/code/local/HCG/MailChimp/lib/subscriber.php @@ -44,8 +44,9 @@ function hcg_mc_sub_update(S $s):void { /** * 2024-06-06 Dmitrii Fediuk https://upwork.com/fl/mage2pro * "Refactor the `Ebizmarts_MailChimp` module": https://github.com/thehcginstitute-com/m1/issues/524 - * @used-by HCG\MailChimp\Tags\ProcessMergeFields::p() * @used-by Ebizmarts_MailChimp_Model_ProcessWebhook::_updateEmail() + * @used-by HCG\MailChimp\Tags\ProcessMergeFields::_addSubscriberData() + * @used-by HCG\MailChimp\Tags\ProcessMergeFields::p() */ function hcg_mc_subscribe(S $s):void { $s->setStatus(S::STATUS_SUBSCRIBED);