Closed fritzmg closed 2 years ago
oneup/mailchimp-api-v3 currently does not provide much error information when subscribing. So the logging can only log whether it was successful or not - without access to the reason when not successful.
I'm all in to update the API library to fit for future needs. 👍 Probably needs a update/rewrite anyway (PHP 8).
Took a while to properly test this with the customer, but this is RTM now 😁
Thank you @fritzmg! Really nice feature!
Would you mind to add some usage notes to the README.md
as well?
Would you mind to add some usage notes to the
README.md
as well?
Ah, yes I meant to, but forgot.
Often times our customers also want to enable the possibility to subscribe to a Mailchimp newsletter in regular Contao forms. i.e. the form is collecting other data (possibly stored with
terminal42/contao-leads
for example) but then the email address should also be subscribed to a Mailchimp newsletter (may be when clicking a checkbox).So far we have implemented our own
processFormData
listeners in these projects, but since we need it in yet another project now, I thought it would be good to have this integrated directly into this extension :)Usage:
EMAIL
merge tag in order to indicate which form field holds the email address. Also the Mailchimp API requires at least theEMAIL
merge tag.Notes:
oneup/mailchimp-api-v3
currently does not provide much error information when subscribing. So the logging can only log whether it was successful or not - without access to the reason when not successful.