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 Jun 6, 2024
1 parent 75d4d95 commit 9bf5004
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/local/HCG/MailChimp/Tags/ProcessMergeFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
3 changes: 2 additions & 1 deletion app/code/local/HCG/MailChimp/lib/subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9bf5004

Please sign in to comment.