Skip to content

Commit

Permalink
remove log #1847 for magento 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Oct 6, 2023
1 parent 072e205 commit c059c34
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -721,14 +721,11 @@ private function _getAddressValues(\Magento\Customer\Model\Address\AbstractAddre

public function getMergeVarsBySubscriber(\Magento\Newsletter\Model\Subscriber $subscriber, $email = null)
{
$this->log(__METHOD__);
$mergeVars = [];
$webSiteId = $subscriber->getStoreId();
if ($this->getConfigValue(self::XML_FOOTER_PHONE, $webSiteId, "websites")) {
$phone_field = $this->getConfigValue(self::XML_FOOTER_MAP , $webSiteId, "websites");
$this->log("Phone field [$phone_field]");
$phone = $subscriber->getPhone();
$this->log("Phone [$phone]");
if ($phone_field && $subscriber->getPhone()) {
$mergeVars[$phone_field] = $subscriber->getPhone();
}
Expand All @@ -749,7 +746,6 @@ public function getMergeVarsBySubscriber(\Magento\Newsletter\Model\Subscriber $s
} catch (\Exception $e) {
$this->log($e->getMessage());
}
$this->log($mergeVars);
return $mergeVars;
}

Expand Down

0 comments on commit c059c34

Please sign in to comment.