Skip to content

Commit

Permalink
closes #75
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Aug 29, 2017
1 parent 5474a22 commit 2aa6c88
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,10 @@ protected function _getCustomerMergeVarsValues($map, $customer, $merge_vars)
$merge_vars = array_merge($merge_vars, $this->_getCustomerGroup($customer, $key, $merge_vars));
break;
case 'store_id':
$merge_vars[$key] = $customer->getStoreId();
$storeId = $customer->getStoreId();
if($storeId) {
$merge_vars[$key] = $storeId;
}
break;
}
return $merge_vars;
Expand Down Expand Up @@ -523,7 +526,9 @@ protected function _getSubscriberMergeVarsValues($map, $subscriber, $merge_vars)
$merge_vars = $this->_getCustomerGroup($subscriber, $key, $merge_vars);
break;
case 'store_id':
$merge_vars[$key] = $subscriber->getStoreId();
if($subscriber->getStoreId()) {
$merge_vars[$key] = $subscriber->getStoreId();
}
break;
}
return $merge_vars;
Expand Down

0 comments on commit 2aa6c88

Please sign in to comment.