Oki. Any chance you might share with me how you did that?
I'm a bit concerned about that notification in MailChimp lately about the Double Optin. Hope it does not break what we currently have.
Hi JackGoa!
What I did was simple! I edited the files fields.xml and mailchimp.php, and put the following code:
fields.xml - add field to plugin (configuration area)
<field description="PLG_FORM_MAILCHIMP_
ESTADO" label="PLG_FORM_MAILCHIMP_ESTADO_
ESTADO" name="
mailchimp_estado" repeat="true" type="listfields"/>
*
estado = Name of the field you want to synchronize
mailchimp.php - treat the value received by the field
if ($params->get('
mailchimp_estado', '') !== '')
{
$EstadoKey = $formModel->getElement($params->get('
mailchimp_estado'), true)->getFullName();
$estado = $formModel->formDataWithTableName[$EstadoKey];
$opts['ESTADO'] = $estado; //Field Name in MailChimp
$opts['NAME'] .= ' ' . $estado;
}
NOTE: We must also create the field in the MailChimp list, and identify the name that we gave in this field on the line: $opts['ESTADO']
If you need any more help tell
What's the deal that talks about Double Optin?