• Resolved cokeyblokey

    (@cokeyblokey)


    Love this plugin…thank you for all the hard work that has obviously been put in to it’s development.

    Can you tell me, is there a way I can add MailChimp Group checkboxes to the Woocommerce checkout, as there is no option in the integration?

    Many thanks!

Viewing 1 replies (of 1 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    To show the interest groups as checkboxes you will need custom code to first display the interest groups on the checkout page and then additional code to process them. While the custom code is beyond the scope of our support, if you want to add users to some group, you can use below code.

    dd_filter( 'mc4wp_integration_woocommerce_subscriber_data', function( MC4WP_MailChimp_Subscriber $subscriber ) {
        // replace "interest-id" with the actual ID of your interest.
        $subscriber->interests[ "interest-id" ] = true;
        // repeat for all interests you want to enable
        return $subscriber;
    });

    You will need to add the code to the “functions.php” file located inside your active theme folder. You will also need to replace “interest-id” with the actual ID of the group.

    I hope that answers your query. Let us know if you have any further questions.

Viewing 1 replies (of 1 total)
  • The topic ‘How to add ‘Groups’ to Woocommerce integration?’ is closed to new replies.