We have frequent requests to add a "subscribe to newsletter" checkbox during checkout on Drupal Commerce sites. Your module home page says "To add MailChimp list subscription to your checkout experience, use the MailChimp Subscription field provided by the MailChimp module." We're unable to get this working no matter what we've tried including adding the subscription field to the order object and using $order->mail as the value. Can you provide guidance for allowing this to work (also with anonymous users via $order->mail value).
It seems to me that we need to add a checkout pane to the mailchimp_ecommerce_commerce module that provides the functionality so we can deprecate the abandoned https://www.drupal.org/project/commerce_mailchimp. If that's the route you'd like to go, I'm happy to work up a patch to add this functionality.
Comments
Comment #2
greg boggsAt a high level, you'll want to add a MailChimp subscription field to check checkout experience. I'd probably add the field to the customer billing profile. So, that it becomes part of the customer profile on checkout. Once you add the field, you should be able to manage the fields on the customer profile get a checkbox during checkout.
Give this a try and let me know how it goes. If you are still stuck, you should open a ticket in the MailChimp issue queue rather than this one. This module only handles syncing data to mailchimp, it doesn't do anything with subscriptions.
~Greg
Comment #3
andyg5000Hey Greg,
I think we're going to push forward with #2721277: module incompatible with version 7.x-4.3 to get commerce_mailchimp to work with 4.x vs using this module for the subscribe during checkout functionality. That module uses a separate Drupal Commerce checkout pane and I believe we just need to update the callbacks execute 4.x methods.
We'll be using this module for the commerce 360 integration, but I believe trying to use it for checkout list subscription is not practical. It doesn't currently work (at least for anonymous checkout) and is cumbersome to configure for that use case.
Thanks!