Drupal Commerce MailChimp module configuration tutorial
This is a tutorial on how to configure the basics of Drupal Commerce MailChimp module.You need to properly configure your Drupal MailChimp module first. If you haven’t done so yet have a look at this tutorial on how to make MailChimp module work with Drupal. You'll also need a working Drupal Commerce installation. I can recommend the Commerce Kickstart distribution if you're starting from scratch.
Download & Enable the essentials
first download these moduleshttp://drupal.org/project/addressfield_tokenshttp://drupal.org/project/commerce_mailchimp
and enable the Commerce MailChimp module:
Configure Commerce MailChimp module
Now go to example.com/admin/commerce/config/mailchimp. It will show you a settings screen that will look much like this:
Enter a store ID - you can make one up yourself. Make sure you don’t use the same ID in two different Drupal Commerce shops.Enter a store name, and basically you’re done once you save the configuration.
Product Category
The product category allows you to send Drupal Taxonomy data to MailChimp. This allows you to segment a list based on product category. Only Taxonomy fields that are added to the product Entity are listed here. It does not list the Taxonomy fields listed on the Product Display Entities.More about category based segmenting of your MailChimp campaigns in my tutorial on how to segment a MailChimp list based on Drupal Commerce eCommerce data.
API Settings
Also take a quick look at the Commerce Mailchimo API Settings. MailChimp recommends the default setting of 30 days, but you can adjust it to your needs.
Events for updating eCommerce data
By default Commerce MailChimp module will send order data from Drupal Commerce to MailChimp at the point of purchase.It will also contain Rules that will update that order data at MailChimp if you alter or cancel a Drupal Commerce order.
You may also want to think about other events when your shop requires to update the eCommerce data that is attached to the MailChimp list subscriber. Making sure the Rules are setup correctly for your usecase is a very important step.
Rules module integration
Commerce MailChimp module has Rules support and adds two MailChimp Rule actions:- Delete order data from mailchimp- Send order data to mailchimp and subscription users to listsThey are added to the category ‘MailChimp’ in the actions dropdown.
Default Rules
There are default Rules included with Commerce Mailchimp Module
- Subscribe user to mailchimp lists of an order on checkout completion
- Update Ecommerce Order Information to MailChimp on checkout completion
- Upcoming: Update Ecommerce Order Information from MailChimp on order update
- Delete Ecommerce Order Information from MailChimp on order cancellation
Additional tricks
Uniquely naming Drupal Commerce products
The name of your Drupal Commerce products will appear as product name in your MailChimp account. Make sure to give them the names you’d like to segment on from within the MailChimp account. If you don’t give your products unique names from which you can identify them from, chances are your MailChimp eCommerce data will become a mess. In that case segmenting will be tough, if not impossible - so name your Drupal Commerce products wisely.If you’re using Commerce Kickstart, have a look at this guide on how to rename Drupal Commerce products in Commerce Kickstart.
Related Drupal Commerce MailChimp articles
- Drupal Commerce MailChimp Module Features
- Tutorial on how to configure Drupal Commerce MailChimp module (current article)
- How to Subscribe to an email list during Checkout with Drupal Commerce and MailChimp
- Segmenting your email campaign based on Drupal Commerce product purchases
- Measuring email campaign sales with Drupal Commerce and MailChimp
Category: