Quform v1 MailChimp integration broken since MailChimp API change

Home Forums Quform WordPress Quform v1 MailChimp integration broken since MailChimp API change

This topic is: not resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #26484
    madmaia
    Participant

    Hi, 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?

    #26493
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #26515
    madmaia
    Participant

    Hi Ally, thanks for the suggestion, but I am afraid it didn’t fix the issue for me.

    Janet

    #26516
    madmaia
    Participant

    In 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
    #26521
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #26541
    madmaia
    Participant

    Hi 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.

    #26542
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy