Does the MailChimp API update the registrants names ?
- Andrea
-
Topic Author
- Offline
- Elite Member
-
Less
More
6 years 7 months ago #120579
by Andrea
Visit my page! www.elementotango.it
Does the MailChimp API update the registrants names ? was created by Andrea
Hello Tuan,
I wanted to check with you the following:
assume you have a Mailchimp list where one of the subscribers is listed as email: name@email.com with no name or last name. I mean these two available fields in Mailchimp are currently empty.
In Events Booking, the user name@email.com registers to an event, with his email, first name and last name.
The question is: will the "first name" and "last name" be transferred to Mailchimp, so that these 2 fields are populated ?
By the tests I did, it seems not. An existing user in Mailchimp is not updated.
So, I wanted to ask if there's a way for you to specify in Events Booking Mailchimp API to update the Mailchimp subscribers' details based on the data entered in Events Booking.
Thanks!!
Regards Andrea.
I wanted to check with you the following:
assume you have a Mailchimp list where one of the subscribers is listed as email: name@email.com with no name or last name. I mean these two available fields in Mailchimp are currently empty.
In Events Booking, the user name@email.com registers to an event, with his email, first name and last name.
The question is: will the "first name" and "last name" be transferred to Mailchimp, so that these 2 fields are populated ?
By the tests I did, it seems not. An existing user in Mailchimp is not updated.
So, I wanted to ask if there's a way for you to specify in Events Booking Mailchimp API to update the Mailchimp subscribers' details based on the data entered in Events Booking.
Thanks!!
Regards Andrea.
Visit my page! www.elementotango.it
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 7 months ago #120580
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Does the MailChimp API update the registrants names ?
Hi Andrea
We don't support it at the moment. I do a quick search and look like you can support this feature by making some modification to the code:
1. Open the file plugins/eventbooking/mailchimp/api/MailChimp.php, find this line of code:
2. Try to change it to:
Maybe you should give it a try to see whether it works
Regards,
Tuan
We don't support it at the moment. I do a quick search and look like you can support this feature by making some modification to the code:
1. Open the file plugins/eventbooking/mailchimp/api/MailChimp.php, find this line of code:
Code:
$result = $mailchimp->post("lists/$listId/members", $data);
2. Try to change it to:
Code:
$result = $mailchimp->patch("lists/$listId/members", $data);
Maybe you should give it a try to see whether it works
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Andrea
-
Topic Author
- Offline
- Elite Member
-
6 years 7 months ago #120582
by Andrea
Visit my page! www.elementotango.it
Replied by Andrea on topic Does the MailChimp API update the registrants names ?
Hi Tuan, many thanks. Your level of support is always stunning.
Is there a way to prevent that the modified file gets overwritten by subsequent Events Booking updates ? Of course I think this mod should be applied to the official distribution of EB, but in case it doesn't go thru, I want to make sure my modification is preserved.
Thanks!
Andrea.
Is there a way to prevent that the modified file gets overwritten by subsequent Events Booking updates ? Of course I think this mod should be applied to the official distribution of EB, but in case it doesn't go thru, I want to make sure my modification is preserved.
Thanks!
Andrea.
Visit my page! www.elementotango.it
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 7 months ago #120583
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Does the MailChimp API update the registrants names ?
Hi Andrea
Right now, you have to maintain the change. Please keep monitoring it, make sure it works for both new user and existing user.
If it works well, please update here. I might add a parameter to the plugin to allow controlling this in the future
Regards,
Tuan
Right now, you have to maintain the change. Please keep monitoring it, make sure it works for both new user and existing user.
If it works well, please update here. I might add a parameter to the plugin to allow controlling this in the future
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Andrea
-
Topic Author
- Offline
- Elite Member
-
6 years 7 months ago #120584
by Andrea
Visit my page! www.elementotango.it
Replied by Andrea on topic Does the MailChimp API update the registrants names ?
Hi Tuan, fair enough. I will perform some tests and report back to you. Many thanks Tuan.
Regards Andrea.
Regards Andrea.
Visit my page! www.elementotango.it
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 7 months ago #120586
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Does the MailChimp API update the registrants names ?
Great. Thanks
Please Log in or Create an account to join the conversation.
- Andrea
-
Topic Author
- Offline
- Elite Member
-
6 years 7 months ago #120657
by Andrea
Visit my page! www.elementotango.it
Replied by Andrea on topic Does the MailChimp API update the registrants names ?
Hi Tuan, I'm proceeding with my tests and I wanted to ask:
Is it normal that I don't see in the registration records wether people accepted or not the GDPR checkbox and the Newsletter checkbox ?
How can I make it appear on the registrants records if they accepted or not ?
For the specific test I'm conducting, I should at least see the "Newsletter" one.
Thanks Tuan.
Kind Regards Andrea.
Is it normal that I don't see in the registration records wether people accepted or not the GDPR checkbox and the Newsletter checkbox ?
How can I make it appear on the registrants records if they accepted or not ?
For the specific test I'm conducting, I should at least see the "Newsletter" one.
Thanks Tuan.
Kind Regards Andrea.
Visit my page! www.elementotango.it
Please Log in or Create an account to join the conversation.
- Andrea
-
Topic Author
- Offline
- Elite Member
-
6 years 7 months ago - 6 years 7 months ago #120658
by Andrea
Visit my page! www.elementotango.it
Replied by Andrea on topic Does the MailChimp API update the registrants names ?
.. and btw Tuan, the suggested fix: "$result = $mailchimp->patch("lists/$listId/members", $data);" does not work, so I'm reverting back to the original command. What I tried was to subscribe new people to an event, and to the newsletter, but the names are not subscribed to MailChimp. So it looks like the API "patch" command does not work with new subscribers.
By looking into the API reference, it looks like the "POST" command shall be used first. If the user is not on the list, it will be created. If the user is already on the list, the "post" will generate an error. Once the error is received, it must be issued then a "PATCH" to update the user record in Mailchimp.
Kind Regards Andrea.
By looking into the API reference, it looks like the "POST" command shall be used first. If the user is not on the list, it will be created. If the user is already on the list, the "post" will generate an error. Once the error is received, it must be issued then a "PATCH" to update the user record in Mailchimp.
Kind Regards Andrea.
Visit my page! www.elementotango.it
Last edit: 6 years 7 months ago by Andrea.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 7 months ago #120664
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Does the MailChimp API update the registrants names ?
Hi Andrea
Currently, we don't show the information in the registration record. The data is stored in database, in the subscribe_newsletter and agree_privacy_policy fields
So if you really want to show the information in the record, you can easily customizing the code to show that information
Regards,
Tuan
Currently, we don't show the information in the registration record. The data is stored in database, in the subscribe_newsletter and agree_privacy_policy fields
So if you really want to show the information in the record, you can easily customizing the code to show that information
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Andrea
-
Topic Author
- Offline
- Elite Member
-
6 years 7 months ago #120674
by Andrea
Visit my page! www.elementotango.it
Replied by Andrea on topic Does the MailChimp API update the registrants names ?
Hi Tuan, understood.
What about the "post" and "patch" thing ? Do you think we can have a patch in one of the next releases, as I described it above here ?
Thanks!
Regards Andrea.
What about the "post" and "patch" thing ? Do you think we can have a patch in one of the next releases, as I described it above here ?
Thanks!
Regards Andrea.
Visit my page! www.elementotango.it
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.