By Daniel Smith on Saturday, 20 September 2014
Replies 1
Likes 0
Views 806
Votes 0
I have a client that is using EasySocial and Payplans. When a new user signs up I use the EasySocial Registration for Payplans. This works great. My issue is that when it sends the user info to MailChimp It maps the "Display name" from EasySocial. If I have it set to "real name" it maps that to the "fname" field in MailChimp. Is there a way to map the First Name to the "fname" field and the last name to the "lname" field?

I have a support ticket in with Ready Bytes and their thoughts on the solution are below but is didn't seem to work.

Go to file plugins/mailchimp/mailchimp/app/mailchimp/mailchimp.php

near line 115, you will find the code
$merge_vars = array( 'FNAME' => $user->name);

replace it with below. Also test it and If the require_once condition doesn't work, then please verify it from easysocial team about how to include the easysocial as we don't have much knowledge of easysocial code.

require_once(JPATH_ROOT . '/administrator/components/com_easysocial/includes/foundry.php');

$field =FD::model('Fields');
$data = $field->getFieldsData(array('uid' => $userid, 'type' => SOCIAL_TYPE_USER, 'key' => JOOMLA_FULLNAME));

$merge_vars = array( 'FNAME' => $data[0]['data'], 'LNAME' => $data[2]['data']);


Just as it is done for subscribing the list do it for unsubscribe.
Hello Daniel,

I am really sorry for the delay of this reply as it is a weekend for us here. Ah, unfortunately right now the Mailchimp custom field doesn't know the user's first name or last name but I will log this as an issue and see if we can add this into the next release of 1.3.5
·
Saturday, 20 September 2014 22:19
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post