Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not updating profile / Not adding new members #119

Open
arquera opened this issue Mar 2, 2021 · 3 comments
Open

Not updating profile / Not adding new members #119

arquera opened this issue Mar 2, 2021 · 3 comments

Comments

@arquera
Copy link

arquera commented Mar 2, 2021

Hello!

The plugin is not updating on profile save when a user change their profile.
– (I had select “YES” for “update on profile save” on the add on's settings page)
– Merge Tags were previously created on Mailchimp.

I'm using Custom Fields recipe, but the addon is not updating the "stardard" fields like LNAME, neither.
When a user update their profile is updated ONLY on the WP site. But not in mailchimp.


Here is the code for the Custom Fields:

function mytheme_add_fields_to_signup(){
//don't break if Register Helper is not loaded
if(!function_exists( 'pmprorh_add_registration_field' )) {
return false;
}

$fields = array();

$fields[] = new PMProRH_Field(
‘GENERO’, // input name, will also be used as meta key
‘radio’, // type of field
array(
‘options’ =>
array(
‘HOMBRE’ => ‘Hombre’,
‘MUJER’ => ‘Mujer’,
),

‘label’=>’Soy:’, // custom class
‘profile’=>true, // show in user profile
‘required’=>true, // make this field required
‘location’ => ‘after_submit_button’,
)
);
//add the fields to default forms
foreach($fields as $field){
pmprorh_add_registration_field(
‘after_email’, // location on checkout page
$field // PMProRH_Field object
);
}
}
add_action( ‘init’, ‘mytheme_add_fields_to_signup’ );


Here is my recipe for Mailchimp:

function my_pmpro_mailchimp_listsubscribe_fields( $fields, $user )

{

$new_fields = array(

“GENERO” => $user->GENERO,

);

$fields = array_merge( $fields, $new_fields );

return $fields;
}

add_action( ‘pmpro_mailchimp_listsubscribe_fields’, ‘my_pmpro_mailchimp_listsubscribe_fields’, 10, 2 );

/**

  • Tell PMPro MailChimp to always synchronize user profile updates. By default it only synchronizes if the user’s email has changed (optional).
  • Requires PMPro Mailchimp v2.0.3 or higher.
    */
    add_filter( ‘pmpromc_profile_update’, ‘__return_true’ );

Note:
This custom field (GENERO) is added on mailchimp FOR NEW USERS,
this issue only happens when a user UPDATE THEIR PROFILE.
(the profile is update ONLY on the WP site. But NOT in mailchimp audience)

@arquera
Copy link
Author

arquera commented Mar 6, 2021

Any clue? 🤔

@arquera
Copy link
Author

arquera commented Mar 6, 2021

Ok,
I had try to add a new member to my site:

  • The Add on is NOT ADDING new members to the mailchimp audience list.
  • And for the old members: ONLY update the emails address.

@arquera arquera changed the title Not updating profile... Not updating profile / Not adding new members Mar 6, 2021
@dparker1005
Copy link
Member

This GitHub issue is a continuation of this support thread in the .org repository: https://wordpress.org/support/topic/not-synchronize-when-a-member-update-their-profile/

In order to look further into this issue, we would need to see your PMPro Mailchimp debug log file and see how your site is set up. If you would like additional help debugging this custom functionality, please sign up at http://www.paidmembershipspro.com/pricing and our support team will be able to walk you through this process there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants