Skip to content

Commit

Permalink
Merge pull request #572 from mailchimp/Missing_Customer_Fields_Mapping
Browse files Browse the repository at this point in the history
Missing customer fields mapping 2.3 - closes #553 for Magento 2.3
  • Loading branch information
luciaebizmarts authored Jan 30, 2019
2 parents 99434f8 + 447c3a6 commit ebac45a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Block/Adminhtml/System/Config/Form/Field/MailchimpMap.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected function _getMailchimpTags()

$api = $this->_helper->getApi($storeId);
try {
$merge = $api->lists->mergeFields->getAll($this->_helper->getConfigValue(\Ebizmarts\MailChimp\Helper\Data::XML_PATH_LIST, $storeId, $scope));
$merge = $api->lists->mergeFields->getAll($this->_helper->getConfigValue(\Ebizmarts\MailChimp\Helper\Data::XML_PATH_LIST, $storeId, $scope), null, null, \Ebizmarts\MailChimp\Helper\Data::MAX_MERGEFIELDS);
foreach ($merge['merge_fields'] as $item) {
$ret[$item['tag']] = $item['tag'] . ' (' . $item['name'] . ' : ' . $item['type'] . ')';
}
Expand Down
2 changes: 2 additions & 0 deletions Helper/Data.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
const QUO_MOD = "QuoteModified";
const QUO_NEW = "QuoteNew";

const MAX_MERGEFIELDS = 100;

protected $counters = [];
/**
* @var \Magento\Store\Model\StoreManagerInterface
Expand Down

0 comments on commit ebac45a

Please sign in to comment.