I assume you are using a plugin to integrate with Mailchimp; could you link us to the one you are using?
Also, does this happen with Vipps Checkout or Vipps Express Checkout ? I assume this isn’t the normal WooCommerce checkout page.
Thread Starter
Marija
(@marijastuntcoders)
We are using the official plugin – https://ww.wp.xz.cn/plugins/mailchimp-for-woocommerce/
We are using standard WooCommerce checkout, here is our staging site.
That’s really weird – there is some code that interacts with this, but it should only be active if Vipps Checkout has been activated. I’m adding code to that spot right now to ensure it only runs on checkout orders (right now it *could* potentially run on Express Checkout as well, which is wrong whether or not it has to do with your issue.).
If possible, could you try to find the line
$order->update_meta_data('mailchimp_woocommerce_is_subscribed', true);
in the file payment/woo-vipps-compatibility.php and comment that out and see if this still happens? If not, I’ll try to make a beta version of the plugin for you to test.
Thread Starter
Marija
(@marijastuntcoders)
Hi @iverok ,
Thanks for following up, we tried the fix you indicated, with some mixed results. Initially, I made another order, and after a few minutes the email address changed from “not subscribed” to “subscribed”, but then I tried changing the email through the test app, and the new address is again being marked as “not subscribed”.
Would appreciate your thoughts and ideas if there’s anything we can do to fix this.
Kind regards,
Marija
And was this using Express Checkout or Checkout, or just the standard Woo one? This code should not run at all when using the standard woo checkout .
I’m not sure what “changing the email through the test app” means – which app is this?
Thread Starter
Marija
(@marijastuntcoders)
The subscribe to newsletter button is located on the Woo Checkout page, so we primarily tested using the WooCommerce default flow, but nothing changes when using Express checkout either.
We have enabled the test mode, and set up the testing flow as per the Vipps docs (but this has been happening on our production site as well, where the testing mode is not enabled).
Changing the email in the Vipps app of a user should not affect the order at all. Are you using the Login With Vipps app as well? This will synchronize the user with Vipps at login-time, but it has no specific integration with Mailchimp.
If you change your email address in the Vipps app and do another purchase, this should appear as a new customer (emails are unique for customers in wp/woo).
Thread Starter
Marija
(@marijastuntcoders)
Yes, I am using the Vipps app to complete the purchase.
When changing the email address, the email is imported to Mailchimp, but it’s always being marked as not subscribed.
Ok, when you do this – and if you are not using the Login With Vipps-plugin- you should be registered as a completely new customer, or if checkout out as a guest, a new guest with a new email.
If you are not using vipps checkout, but indeed the standard gutenberg or shortcode-based checkout; and not using express, and in *particular* if you have disabled the line mentioned above, there is absolutely no interaction with the mailchimp plugin in the code of this plugin.
For Express Checkout, there is no easy way to provide the consent checkbox, so integration with Mailchimp will *not* work, so please make sure you are testing this only with the standard WooCommerce checkout.
(it *is* possible to ask for consent in express too, using custom code, but you should get the basic case working first.)