Hướng dẫn cấu hình Commerce MailChimp.module trong Drupal

Hướng dẫn cấu hình Commerce MailChimp.module trong Drupal

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 modules
http://drupal.org/project/addressfield_tokens
http://drupal.org/project/commerce_mailchimp

and enable the Commerce MailChimp module:

Enabling 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:

Commerce MailChimp module API settings screen

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.

Cookie settings for Commerce MailChimp module

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 lists
They are added to the category ‘MailChimp’ in the actions dropdown.

Commerce MailChimp module Rule actions

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

Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Giới thiệu các thành phần trong server mail

Giới thiệu các thành phần trong server mail

Để cài đặt một máy chủ email, có nhiều cách làm, nhiều lựa chọn. Sau đây là một lựa chọn

Apple Store chiều khách hàng đến mức độ nào?

Apple Store chiều khách hàng đến mức độ nào?

Apple vốn đã rất nổi tiếng với chất lượng sản phẩm, nhưng Apple còn có cách riêng của mình để chiều lòng các “thượng đế” của mình.

Máy bay Internet của Facebook không khác máy bay ném bom

Máy bay Internet của Facebook không khác máy bay ném bom

Máy bay phát Internet của Facebook chính thức lộ diện.

Công ty diệt chuột T&C

 

Diet con trung