• Resolved wandwsara

    (@wandwsara)


    Hello,

    I’m wondering if it is possible to turn off syncing of revenue information. I would like to have only the customer name and email to sync to Mailchimp from Woocommerce, without any order information.

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Support khungate

    (@khungate)

    Hi @wandwsara, if you’d like to turn off revenue information syncing to Mailchimp you can add the following snippet of code to your functions.php file:

    function maybe_exclude_order_from_syncing( $order_id ): bool {
    	// any logic you may need to perform based on the order ID
    	// return false explicitly to ignore the job.
    	return false;
    }
    
    add_filter( 'mailchimp_should_push_order', 'maybe_exclude_order_from_syncing', 10, 1 );

    As always, whenever making custom code changes please take the appropriate measures to back up your site before adding. For more information on filtering products or orders, please visit our Wiki.

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Turn off revenue sync’ is closed to new replies.