Hello Peter,
Can you please share a screenshot of your “Sync” setting page?
Thread Starter
anagio
(@anagio)
Hello anagio,
I would need to check few more things. Since this is a public forum it would be best to share those details privately. Can you please email us at “support @mc4wp.com” with a link to this post?
Hello Anagio,
Can you please try adding this code to the “functions.php” file in your active theme:
add_filter( 'mailchimp_sync_user_data', function( $data, $user ) {
$data['MMERGE3'] = 'Member';
return $data;
}, 10, 2 );
Hi Peter,
On the settings screen, you’ve entered “Member” and configured the plugin to send this to the MailChimp MMERGE3 / Member Type field. However, this will actually tell the plugin to look for a user profile field called “Member” and send the value of that field to MailChimp, so it will not work.
Removing that setting from the field map and adding the following code snippet to your theme its functions.php file should do the trick.
add_filter( 'mailchimp_sync_user_data', function( $data, $user ) {
$data['MMERGE3'] = 'Member';
return $data;
}, 10, 2 );
Hope that helps. If not, let me know!
Thread Starter
anagio
(@anagio)
Hi,
tried that but gor
Parse error: syntax error, unexpected ‘&’, expecting ‘]’ in /var/sites/s/surbitonbusiness.com/public_html/wp-content/themes/franz-josef-child-01/functions.php on line 64
this was added, the line with $data[ is #64
add_filter( 'mailchimp_sync_user_data', function( $data, $user ) {
$data['MMERGE3'] = 'Member';
return $data;
}, 10, 2 );
Thread Starter
anagio
(@anagio)
Sorry, copied from an email where the code was shown as
add_filter( 'mailchimp_sync_user_data', function( $data, $user ) {
$data['MMERGE3'] = 'Member';
return $data;
}, 10, 2 );
Thanks for the fix, it is working now.
Thread Starter
anagio
(@anagio)
Paste didn’t quite work,
it showed :
& # 0 3 9 (without the blanks) as soon as I pasted the code from the previous posts here, it worked a treat.