diff --git a/Helper/Data.php b/Helper/Data.php index 1ec6120f..5f97c860 100755 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -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(); } @@ -749,7 +746,6 @@ public function getMergeVarsBySubscriber(\Magento\Newsletter\Model\Subscriber $s } catch (\Exception $e) { $this->log($e->getMessage()); } - $this->log($mergeVars); return $mergeVars; }