• Resolved rainsey

    (@rainsey)


    great plugin, but i’m having trouble removing the double in at checkout.

    our mc forms are set for single opt-in and work fine, but if a customer checkouts who is already registered on our mc list they receive a mc welcome email (double opt-in email). Is it possible to set the checkout to single opt-in?

    thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @rainsey,

    You’re using our WooCommerce integration checkbox, correct? All of our integrations are double opt-in by default. If you want to change it to single opt-in, you’ll need to use the following filter function:

    add_filter( 'yikes-mailchimp-checkbox-integration-body', 'set_integrations_to_single_optin', 10, 2 );
    function set_integrations_to_single_optin( $request_body, $integration_type ) {
    	$request_body['status_if_new'] = 'subscribed';
    	$request_body['status']        = 'subscribed';
    
    	return $request_body;
    }

    Are you familiar with adding PHP filter functions to your site?

    Let me know.

    Cheers,
    Kevin.

    Thread Starter rainsey

    (@rainsey)

    Thanks Kevin,

    Works perfect! Our outdated welcome email is no longer sent.

    Unfortunately, mc cannot remove our old final welcome email so our only workaround is to use single opt-in. Creating a new final welcome email in mc does not replace the old email. Support at mc have been looking into our issue for sometime.

    Cheers

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Awesome! Glad it worked. I haven’t heard someone report that their template is “stuck” before. I hope Mailchimp resolves that for you ASAP.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘double opt in newsletter checkout’ is closed to new replies.