Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
When I edit user profile fields, which are displayed in separate tabs as categories, and click on 'Save' on the profile category, the changes do not sync with the mailchimp list.
But if I click on 'Save settings' on the Newsletters tab on the user profile page, the changes are synced. But practically this is not going to be the case.
I did come across this issue earlier on http://drupal.org/node/605246, but I do not think there had been a solution.
Please advise.
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#7 | mailchimp-sync-770528-7.patch | 5.55 KB | douggreen |
#6 | mailchimp-sync-770528-6.patch | 3.67 KB | dsnopek |
#5 | mailchimp-sync-770528-1.patch | 3.95 KB | douggreen |
Comments
Comment #1
levelos CreditAttribution: levelos commentedFor lists that are currently not set to required, this is indeed the case. Required lists have all settings and profile data synced whenever a change to a user object is made. But opt-in/out lists only have their settings saved when you actually submit the newsletter form. I had to make this decision in order to solve some other issues by placing all the information on the same tab. Open to suggestions for a better solution, but in the meantime, perhaps your lists could be set to required.
Comment #2
jm.federico CreditAttribution: jm.federico commentedHi Guys
Here I have a temporary solution for people in need of this functionality.
Within your own module create this function:
This will takes care of updating the e-mail and deleing it if users deletes the account in Drupal.
I am not mapping other fields, but you could use MAIL CHIMP'S api to do it.
It is by all means no perfect:
Federico
Comment #3
douggreen CreditAttribution: douggreen commentedI just want to confirm that this is still true in the current version (well, actually I'm one version off, but confirming the current version is good).
If a user changes their email address, then only the "required" lists are re-synced. The non-required lists are not synced. Thus if a user changes their email address, any subscriptions to non-required lists remain on the old email address. This really seems like a bug, but if I read this ticket right, it's intentional. Is that right?
Comment #4
douggreen CreditAttribution: douggreen commentedComment #5
douggreen CreditAttribution: douggreen commentedGiven that @levelos says that this was just a UI problem, I took a stab at a fix, including fixing the UI.
Comment #6
dsnopekI have re-rolled the patch from douggreen against the latest git 7.x-2.x. It works perfectly for me!
With this patch, when a user save changes on their account page (for example, their "Username" which I have connected to the Mailchimp FNAME mergevar) it will be immediately reflected in Mailchimp -- for both optional and required lists. (Without the patch this only works for required lists.)
Comment #7
douggreen CreditAttribution: douggreen commentedThis new patch (rolled for 7.x-2.7) updates list groupings mergevars, which is necessary when using this to subdivide a list. It also forces removal of the old email from all lists, even when the role doesn't change.
Comment #8
Khumbu CreditAttribution: Khumbu commentedTested it and I can confirm that this works....thx...you made my christmas :)
Comment #9
levelos CreditAttribution: levelos commentedComment #10
gcbThanks for the patch fellas! Rolled into the latest batch of commits with a few minor tweaks to work with another patch to the list syncing behavior. We'll roll into a release shortly.