veda-consulting-company / uk.co.vedaconsulting.mailchimp

Other
22 stars 43 forks source link

Pending subscriptions in CiviCRM still populating MailChimp #212

Closed ddoligalski closed 7 years ago

ddoligalski commented 8 years ago

If CiviMail is configured to Double Opt-In a contact to a Mailing List Group (via a Profile), they are actually added to the group with a "Pending" status. Once the contact has clicked a link in the opt-in email, their group status is then set to "Added" reflecting the Opt-In.

Currently, the MailChimp extension does not appear to respect the group status, and the pending contacts are added to their corresponding MC groups despite not being (fully) subscribed yet.

The extension should instead only add a contact when their status is set to "Add".

Kajakaran commented 8 years ago

@ddoligalski

Recent change to get contacts from API changed this behaviour. Could you do a patch to include status? CRM_Mailchimp_Form_Sync.php Line 550

Thanks

ddoligalski commented 8 years ago

@Kajakaran, I have asked my development team to work on this.

Kajakaran commented 8 years ago

Hi,

I have checked on 4.7.1 CiviCRM about this contact get api by passing group id as param

$result = civicrm_api3('Contact', 'get', array( 'group' => $membership_group_id,));

It only gave me contacts with status 'Added'

can you confirm still an issue?

deepak-srivastava commented 7 years ago

Closing old ticket. Please re-open if the original query still exists in relation to latest v2.x release.