Skip to content

Commit

Permalink
use click or open to retrieve the campaign #1866 for 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Feb 19, 2024
1 parent e16b294 commit 514e642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Api/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ protected function getCampaign($store, $email)
$activity = $api->lists->members->memberActivity->get($this->_helper->getDefaultList($store), md5($email), null, null);
if ($activity) {
foreach ($activity['activity'] as $act) {
if (key_exists('action', $act) && $act['action'] == 'click' && key_exists('campaign_id', $act) && $act['campaign_id']) {
if (key_exists('action', $act) && ($act['action'] == 'click' || $act['action'] == 'open')&& key_exists('campaign_id', $act) && $act['campaign_id']) {
$campaign_id = $act['campaign_id'];
break;
}
Expand Down

0 comments on commit 514e642

Please sign in to comment.