Home › Forums › Quform WordPress › Quform v1 MailChimp integration broken since MailChimp API change
- This topic has 6 replies, 2 voices, and was last updated 7 years, 1 month ago by
Ally.
- AuthorPosts
- August 2, 2018 at 11:06 am #26484
madmaia
ParticipantHi, I am using the MailChimp integration approach defined in https://support.themecatcher.net/quform-wordpress/guides/integration/mailchimp to add a newsletter opt-in to MailChimp on a number of forms on outdooralternative.co.uk. Since the MailChimp API change on 1st August this no longer works. How do I get it working again without upgrading to v2, which we are not yet ready to do?
August 2, 2018 at 12:24 pm #26493Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
August 3, 2018 at 11:29 am #26515madmaia
ParticipantHi Ally, thanks for the suggestion, but I am afraid it didn’t fix the issue for me.
Janet
August 3, 2018 at 11:32 am #26516madmaia
ParticipantIn case it helps, this is the function I am using:
function save_booking_enquiry_newsletter_optin_to_mailchimp($form) { $signup = $form->getValue(iphorm_1_15); if ( $signup ) { if (!class_exists('MCAPI')) { require_once dirname(__FILE__) . '/MCAPI.class.php'; } $api = new MCAPI('*SNIP*', true); $listId = '*SNIP*'; $email = $form->getValue('iphorm_1_13'); // OPTIONAL: if you are saving additional fields to MC, set the merge tags, otherwise set $mergeVars to an empty array $mergeVars = array( 'FNAME' => $form->getValue('iphorm_1_9'), 'LNAME' => $form->getValue('iphorm_1_10'), ); // Other settings $emailType = 'html'; $doubleOptin = false; $updateExisting = false; $replaceInterests = false; $sendWelcome = false; $api->listSubscribe($listId, $email, $mergeVars, $emailType, $doubleOptin, $updateExisting, $replaceInterests, $sendWelcome); } } add_action('iphorm_post_process_1', 'save_booking_enquiry_newsletter_optin_to_mailchimp', 10, 1);
- This reply was modified 7 years, 1 month ago by
Ally. Reason: Removed API key for security
August 3, 2018 at 4:14 pm #26521Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
August 6, 2018 at 10:23 am #26541madmaia
ParticipantHi Ally, does that mean you will be making changes to the functions.php file? I ask because I have another site I have the same issue with so I will need to understand what the solution is so that I can transfer it. In the meantime, I have emailed you with the details requested.
August 6, 2018 at 12:19 pm #26542Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- This reply was modified 7 years, 1 month ago by
- AuthorPosts
- You must be logged in to reply to this topic.