New WordPress Plugin: WooCommerce MailChimp

The WooCommerce logo and MailChimp logo are trademarks of WooThemes and MailChimp respectively.

The WooCommerce logo and MailChimp logo are trademarks of WooThemes and MailChimp respectively.

After a frustrating and fruitless search for a simple and free solution to basic WooCommerce integration with MailChimp, I decided to sit down and write a little plugin to do just that. There are a couple of paid solutions, but, in my opinion, most are overpriced for providing such vanilla functionality. Also, it seems this functionality was previously bundled with WooCommerce and WooThemes has since removed it and made it a paid “extension.”

So, without further ado, here is my new WooCommerce MailChimp plugin for WordPress:

WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.

Easily add customers to a designated MailChimp list and, optionally, MailChimp interest groups upon order creation or order completion.

Double opt-in option for anti-spam compliance.

The plugin is now on the WordPress Plugin Repository and you can get it by clicking on the following link:

Download WooCommerce MailChimp 1.0

Get the Source on GitHub

Features

WooCommerce Event Selection

  • Subscribe customers to MailChimp after order creation
  • Subscribe customers to MailChimp after order completion

Works with MailChimp Interest Groups

  • Set one or more interest groups to add users to based on the selected MailChimp list.

Multisite

  • All features should work for each blog in multisite installations but this has not yet been tested.

Feedback

Feedback is welcome!

If you need help, have problems, want to leave feedback or want to provide constructive criticism, please do so here at the WooCommerce MailChimp plugin page.

Twitter

Follow @anderly on Twitter for updates on this and other plugins.

Translations

  • English (default)
  • No other translations yet.

Thanks in advance for your help on any translation efforts!

Installation

  1. Upload or extract the woocommerce-mailchimp folder to your site’s /wp-content/plugins/ directory. You can also use the Add new option found in the Plugins menu in WordPress.
  2. Enable the plugin from the Plugins menu in WordPress.

Usage

  1. Go to WooCommerce > Settings > Integration > MailChimp
  2. First, enable the plugin and set your MailChimp API Key and hit save.
  3. Select whether you want customers subscribed to your MailChimp list after order creation or order completion (there’s a difference in WooCommerce).
  4. Next, select your MailChimp list and set any interest group settings (optional) and hit save.
  5. That’s it, now customers who purchase products from your WooCommerce store will automatically be subscribed to the selected list (and optional interest groups) in MailChimp!

Screenshots

  1. WooCommerce MailChimp options screen.
    screenshot-1

Changelog

1.0

  • This is the first public release.
  • http://www.bewustvrij.nl Jerome Stoel

    Hi Adam, by testing my website I noticed an error send by MAilchimp:

    (270) “3″ is not a valid Interest Group for the list: Bewust Vrij Nieuwsbrief

    I haven’t used “3″ in my settings and whatever I trie this error stays.

    Any suggestions?
    Thanks Jerome

    • Adam

      @Jerome,

      My apologies for this issue. I just published version 1.3.1 of the plugin which fixes this bug introduced in version 1.3. It was a simply transposition of parameters on an apply_filters call. I hadn’t caught it because I was intercepting the bug with an add_filter call I was using to test it and that was hiding the problem on my test site. I have corrected this and tested it with and without the add_filter hook. It now behaves just as it did in 1.2.6. Please update and let me know if you have any issues.

      Thanks,

      Adam

  • Dan

    Hi Adam,

    Is there a way to reposition the mailchimp tick box on the Billing page of a site? My client wants the tick box to appear underneath the Shipping Address form on his WooCommerce site. Currently its default location is under the billing form.

    Any help with be very much appreciated.

    Thanks,
    Dan

  • http://www.ausnzfestival.com Jon Slack

    Hi Adam

    Thanks for putting the effort into this plugin. I’ve had this installed for the past 2 weeks during which tickets have gone on sale for a festival I’m organising. We’ve had more than 150 orders for multiple tickets, but as far as I can tell no one has yet signed up using this form.

    Is there an easy way to check signups? And how can I be sure that people are being linked to the correct mailchimp fields.

    Any help much obliged.

    Thank you!

    Jon

    • Adam

      Jon,

      Can you tell me what your settings are for the plugin? As long as those are set correctly then orders should get sent to MailChimp depending on your settings and they should be showing up in MailChimp.

  • Robert

    Hello Adam,

    Nice plugin, though it generates a few php notices/warnings when wordpress debug mode is enabled. Visiting any page (including wp admin dashboard) will append the following to my error log…


    [Tue Apr 22 10:35:36 2014] [error] [client 192.168.100.11] PHP Notice: unserialize(): Error at offset 0 of 4736 bytes in /var/www/example.com/htdocs/wp-content/plugins/woocommerce-mailchimp/classes/api/class-MCAPI.php on line 143, referer: http://example.com/shop/

    [Tue Apr 22 10:35:36 2014] [error] [client 192.168.100.11] PHP Notice: Undefined index: data in /var/www/example.com/htdocs/wp-content/plugins/woocommerce-mailchimp/classes/class-ss-wc-integration-mailchimp.php on line 309, referer: http://example.com/shop/

    [Tue Apr 22 10:35:36 2014] [error] [client 192.168.100.11] PHP Warning: Invalid argument supplied for foreach() in /var/www/example.com/htdocs/wp-content/plugins/woocommerce-mailchimp/classes/class-ss-wc-integration-mailchimp.php on line 309, referer: http://example.com/shop/

    • Adam

      @Robert,

      That looks like it’s not able to retrieve your MailChimp lists. Can you double-check the api key you are using?

      Let me know.

      Adam

      • Robert

        The API key is correct and the plugin functions as expected. Its only when debug mode is enabled (in wp-config.php) that these warnings/notices show up.

  • http://westportcinema.org Larry Perlstein

    Hi Adam, I’ve got the plugin working — it’s adding new customers to my mailchimp list. However, it’s only adding first name and last name and email address. Is there a way to have it add address and commerce information? I tried looking through all the comments but couldn’t find an answer.

    Thanks,
    Larry

  • http://www.nmracanada.ca Tim S

    Hello Adam:

    Great plugin – I’m encountering an error I think from your plugin –
    (250) NMRAID must be provided – Please enter a value
    Any suggestions? My searches didn’t reveal anything

    Thanks
    Tim

    • Adam

      @Tim,

      That looks like maybe a custom merge field you have defined in MailChimp. Do you have that set as required? By default, the plugin only sends first name (FNAME), last name (LNAME) and email address (EMAIL) merge fields to MailChimp.

      Let me know.

      Adam

  • http://www.travelluggageplus.com Carole

    I have updated my website to a Word Press format (and Woo Commerce) and had my web master install the Mail Chimp plug in. I am going to update all my emails etc, but was hoping the main format would transfer over to my new site. We are getting the following error;

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/04/11960904/html/wp-content/plugins/woocommerce-mailchimp/classes/class-ss-wc-integration-mailchimp.php:304) in /home/content/04/11960904/html/wp-content/plugins/yith-woocommerce-wishlist/functions.yith-wcwl.php on line 118

    Please advise…thank you,
    Carole

    • Adam

      @Carole,

      That line of code is where the plugin is trying to inform you that it is unable to load your lists from MailChimp. Can you double-check your MailChimp Api and make sure it is correct.

      Let me know.

  • Lion

    Hey Adam, when I enabled the opt in – the checkbox and the text breaks into 2 lines.
    Looking at the source, I see there is a break between the checkbox and label.
    Is there a way to remove that?

    Sign me up for updates on products

  • Saskia

    Hi Adam,

    What a good idea this plugin is. I installed is and filled in the integration. It seems not to add a new cutomer though to the list if I tell it to add the subscriber after ‘order completed’. It does though after ‘order created’. And it does not add to groups although I have specified it and the groups do exist.

    Can you help me out?

    Tnx so far anyway.

  • http://saxofoon.pipl.es Saskia

    Hi,

    For a website I’m building I installed the Woocommerce >> MailChimp plugin. This is something I really wanted to have. So thank you for taking the time to build this plugin. But during the proces I bump into two kind of major problems:

    1. I can only get someone added to the MC list if I set the “subscribe event” to “order created” But that would mean that a visitor gets a subscription even if they cancel the order. The “order completed” option doesn’t seem to work. I tested it several times.

    2. Groups don’t work at all for me. In any form or combination. I tried entering the group in the first or the second field. Tried using the group name in the first and the specific group in the second…nada. What might I be doing wrong? The groups have been created in MC.

    I would really appreciate it if you can help me out on this, because I see a great advantage for our clients here.

    Regards,
    Saskia

    • Adam

      Can you send me what your group and sub-group names are in MailChimp?

      Also, for order completed, you usually have to manually mark an order complete in the WooCommerce admin area as it doesn’t happen automatically. Have you tried that?

      I’m working on the next version and adding some logging for troubleshooting these types of issues.

  • Saskia

    Hi Adam,

    I got it working! Indeed I have to complete the order in the back-end of Woo-commerce. And now the groups are working too.

    Thnx for the hint. I’m very happy with this plugin now.

  • Rasmus

    Hey Adam.

    Thanks for this nice looking plugin. Unfortunately, I can’t get it to work correctly on my site. The checkbox is shown just right, but theres no text label telling what it does.

    Can you please help me fix this?

    Thanks already,
    Rasmus.

  • Glenda Ebersole

    Will this work in WordPress 3.9.1?

    • Adam

      Yes. It should work fine with 3.9.1

  • Rasmus

    Wow. Did you just delete my comment about the fact that I don’t get a label telling what the checkbox actually does?

    • Adam

      I don’t think so. Was just viewing some comments on my phone and responding. Is your comment not showing up anymore?

      • Rasmus

        Nope. I posted the 20th of june, and now my comment is gone. I have installed your brilliant plugin, but all I get is the checkbox during checkout. There’s nothing telling the user what the box actually does..

  • http://momentlens.co Marc

    Hey Adam,

    On checkout I’m trying to give customers three differently levels of emails to receive. I can create these three groups within mailchimp but it seems like on check out the settings only enable them to opt in (entirely) or not.

    Is there a way for the customer to choose which list they want to be a part of?

    Thanks,

    Marc

  • http://manifestpositivity.com Dave Berman

    Thanks for this plug-in. I’ve also added PayPal Express to my WooCommerce. That means most customers are going from my Cart page to PayPal without visiting my Checkout page, which is where the MailChimp opt-in box is displayed. I want them to genuinely have the choice of opting in or out so is there a way to move the check box from the Checkout page they don’t visit to the Cart page they do see? Thanks!

    Dave

    • Adam

      Hmmm. Yes, it’s possible. Need to think through the best way to implement this though. Stay tuned and thanks for the feedback!

      • http://manifestpositivity.com Dave Berman

        Hey Adam, just wondering if you have an ETA for moving the opt-in box to the Cart page from the Checkout page? Thanks.

        • Adam

          @Dave,

          This isn’t currently a planned feature. However, I do have other PayPal users who are using the checkout page with success. Can you configure a different payment gateway such as Stripe or can you use PayPal Standard?

          • http://ManifestPositivity.com Dave Berman

            I got complaints about PayPal Standard, which is why I paid to add PayPal Express. That kind of precludes me from going to another option at this point. But having your plugin only on the Checkout page defeats the purpose for me using it. Even though there is no technical error with the integration, from a usability perspective, these two plug-ins are not compatible on my site. Is it possible instead of moving the opt-in box as I originally requested that you could just add it to the Cart page in addition to it being on the Checkout page? Thanks.

          • Adam

            I’ll look into that. I have an update coming to address some other issues and will see how feasible it is to get it into this next release. Potentially, I could make it an option in the settings. I can’t guarantee that it will be in the next release, but I understand the issue and will do my best to come up with a solution.

  • Keir Briscoe

    Hi Adam. I have installed your Mailchinp plugin and it says that it is active under the Installed Plugins list, but I cant find it in my sidebar.

    In your Usage procedure step 1 says “Go to WooCommerce > Settings > Integration > MailChimp”. Where exactly should I be looking for WooCommerce?

    Thanks!

  • Vee

    Hello Adam,

    I second what Rasmus said earlier; when the optional subscription checkbox is turned on in the settings, it will only display the tick box on checkout without any label or text. If you could fix this it would be greatly appreciated.
    Thank you for making this plugin. As far as I know it’s the only plugin around for Woocommerce&Mailchimp.

    • Vee

      Additionally, in my opinion it would be easier to find the settings for this plugin in Woocommerce if the tab was called ‘Mailchimp’ instead of ‘Integration’. Hope this is useful.

      • Adam

        @Vee,

        This is in the works for version 2.0 of the plugin.

    • Adam

      @Vee,

      I hadn’t seen this issue before but will look into it. It should display the label/text configured on the plugin settings page. Stay tuned.

      • Charlie

        @Vee, @ Adam

        Just wanted to add my experience that the opt-in label text not displaying for me either.

        Other than that, this is an awesome plugin – cheers Adam.

        For anyone needing a temporary solution to the problem I’m just using a little bit of jQuery:


        $(".woocommerce-checkout label[for='ss_wc_mailchimp_opt_in']").text("What ever text you want the label to be.....")

        It’s not perfect but it’ll do until Adam manages to sort out a proper fix.

        Thanks again

        • Adam

          Thanks for the temporary fix. Working on an update as I get free time.

  • http://designgrotten.dk Thomas Clausen

    I miss a little feature, where I can select which list a given product should be added to. For instance if a customer buys product A I want them on list 1 and if they buy product B I want them on list 2.

    Is that in the making?

    • Adam

      This is not a planned feature for the free version, but I do plan on making this a feature of the premium/paid version of the plugin. However, I do not currently have an ETA on when that will be released as my full-time work is currently taking priority.

  • Tosca

    Hello, great plugin. However 1 issue. I have “Enable Double Opt-In” ticked. And setup to trigger on order. But the customer is not receiving the email to confirm opt-in. I see API calls in MailChimp for when order placed. What do you think is wrong?
    Thanks

    • Adam

      Do you have it set to subscribe on order created or order completed?

  • http://ecetinews.com Michael Knight

    Website under construction and in private mode at present. Issue is that I have two subscription options, 12-month and monthly. Not sure if this is related to woocommerce/mailchimp but have set it to activate on completion of order (which I know from above must be done manually, right?) However, when I check out – to PayPal – for the 12-month sub, I get right to Paypal payment page.
    BUT with the monthly sub button, PayPal asks me to log in to my PayPal account, instead of taking me to a payment page.
    I have created numerous PayPal subscription buttons to try and get around this, but they all act the same on the monthly sub option.
    Is it possible that this has something to do with your product (which I think is GREAT BTW) – or is it more likely in the PayPal mode….

    • Adam

      @Michael,

      This wouldn’t have anything to do with my plugin. The type of payment page you are taken to is completely driven by the paypal settings in your paypal account/button you create. My plugin simply calls the MailChimp API after an order has been created or completed to subscribe the user to a MailChimp list.

  • http://www.brittendirect.com Robert

    Hello Adam,

    Our WordPress Dashboard has been running slow lately, so I took some time this morning to figure out the cause. As it turns out, having the Woocommerce Mailchimp plugin enabled is doubling our server’s response time.

    Is the plugin trying to communicate with the Mailchimp server’s on every page load or something? This does not appear to be affecting the frontend user experience.

    • Adam

      The plugin only communicates with MailChimp when in the admin are and when it no longer has the cached set of lists for your MailChimp account. Let me know if you have any other details.

  • http://snapwow.net Michael

    Hi Adam,

    Appreciate the plugin, and it looks like it could be very helpful. However, it’s not working for me. I don’t get any errors or anything (neither backend or frontend), but when I test it and have the subscription checkbox checked and I complete my purchase, it doesn’t add anything to my Mailchimp list.

    Any ideas?

  • http://iconicpatterns.com Lena Merrin

    Hi adam, thank you for a great plugin. It has been running great until today, when I received this message: (-99) Could not connect (ERR 110: Connection timed out)
    any ideas what may have caused it?

    Thank you

    • Adam

      Not sure what that is. Could be a temporary issue connecting to MailChimp.

  • Karl

    The opt in option is checked by default regardless of the setting I use.

  • http://feanne.com/ Feanne

    Hi Adam! Thank you for this plugin. It’s simple and it does the job. :) I’ve noticed the following bugs– I don’t mind them for my purpose, but thought you might want to know:

    1. Enabling “Double Opt-In” works, but when I uncheck it, subscription just doesn’t happen.

    2. Opt-In Checkbox Default Status — The opt-in checkbox is checked by default even if I try disabling this option.

    Hope the bug reports help and thanks again for your great work!

  • Michael

    Hi Adam,
    thanks for supplying this plugin. However, our laws in Germany are very strict on newsletter sign-up procedure. On the first opt-in button you have to clearly inform on how often you write newsletters, give links to where you can sign out again and so on.
    I would like to supply this information in the Opt-In Field Label. Could you please advise me how I can insert links and line breaks in this field? All attempts from my side didn’t succeed.

    Thanks Michael

    • Adam Anderly

      I’m working on some updates to the plugin and will consider enhancement request for a future update.

  • Bob

    Hi Adam,

    I’ve installed this plugin but can’t seem to get it working. I’ve entered the API key into the plugin settings in WooCommerce, and can see it making API calls every seconds in my MailChimp account.

    I have the plugin set to add the new subscriber after the order is completed. I am running:

    WordPress 4.0
    WooCommerce 2.2.4

    When I complete an order, I don’t see the buyer added to my MailChimp list. Does this plugin work with the above versions?

    Regards,

    • Adam

      Bob, the plugin hasnt yet been tested with WooCommerce 2.2. I plan to do that soon and release an update to ensure compatabikity.

      • Nicole

        Hello Adam, any idea on when an updated release for Woo Commerce 2.2 and wordpress 4.0 will be available?

        • Adam

          Nicole, the current version (1.3.2) has been tested with WordPress 4.0 and WooCommerce 2.2.

          What version do you have installed?

        • Adam Anderly

          The current version (1.3.2) has been tested with WordPress 4.0 and WooCommerce 2.2.

          What version do you have installed?

          • http://www.deliciousbuds.com.au Nicole

            Hello,
            I have that version installed , but am not able to get my customer email address out of woo commerce and into mail chimp. I am a total newbie to all things website related and this is my first time at installing a plugin

  • natalie

    Hi Adam. Thank-you for creating this for us. I’ve selected the Main List and entered the group name into both the Group Name and Groups fields. However subscribers are being added to the list, but not the group (on order creation). How do I get the group working properly? Thank-you

    • Adam Anderly

      Natalie,

      Can you send me a screenshot of what you have for your groups in MailChimp? If I see that, I can tell you what the setting needs to be in the plugin to make the groups work properly. I’m also working on an update to make this easier to just pick the groups vs having to type them in, but I don’t yet have an ETA on when that will be available.

      • natalie

        Thanks Adam

        The list is ‘Supplements’ and the group I want them to go into is ‘Bodybuilding Nutrition Online’.

        Let me know if you need more info.
        Thanks for your help.

        • Adam Anderly

          Natalie,

          Perfect. So, in the plugin settings you’ll want to put “Account” in the Group Name field which is the actual Group Title. Then in the Groups field, put “Bodybuilding Nutrition Online.”

          This will get easier in a future update where you’ll simply be able to pick the groups from a list.

          • natalie

            Hi Adam
            I tried this but now the email isn’t being added at all. Before it was being added to the ‘Supplements’ list but not the group. Any other ideas?
            Thanks

  • Yaros Loginov

    Dear Adam,

    I’ve got the plugin working, however, it’s only adding first name and last name and email address. Is there a way to have it add address and the types of product that the customers buy? I tried looking through all the comments but couldn’t find an answer.

    Thanks,
    Yaros

  • Jeremy R. Wells

    Is there anyway to get existing customers into the mail chimp list? Thanks!