Hi!
I have done some debugging regarding this. We update the metafield mailchimp_woocommerce_is_subscribed with 0 or 1 and it saves on the order correctly in wp_postmeta on the order ID.
But I noticed in Mailchimp today that customers with 0 in this field were still synced to Mailchimp (and not as unsubscribed). [opt_in_status] in the log are saying 1.
So I did some digging in your code. I can see that you are listening to wp_usermeta when syncing and that you have a code adding mailchimp_woocommerce_is_subscribed to wp_usermeta based on the field value in the order. Correct?
BUT your code might be broken. I have checked orders with both 0 and 1 values and in wp_usermeta the field is totally empty, no value at all.
Please see: https://www.dropbox.com/s/ttujbj88kfbgyde/mailchimp-for-woocommerce-2-1-2.png?dl=0
-
This reply was modified 6 years, 12 months ago by alexkappel.
-
This reply was modified 6 years, 12 months ago by alexkappel.
-
This reply was modified 6 years, 12 months ago by alexkappel.