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

 
Dark web không thể truy cập bằng cách thông thường mà phải sử dụng các phần mềm chuyên biệt

Các dịch vụ trên dark web - hack một trang web với giá 2.000 USD

Tôi cần hack một trang web với giá 2.000 USD", "Đánh sập trang web này với giá 10.000 USD"... là những yêu cầu đăng đầy trên các diễn đàn hacker.

Barracuda Master Installer

Barracuda is a bash script to install and/or upgrade, tuned for high performance, Aegir Master Instance with all related system services. Barracuda is compatible with Octopus installer.

5 triệu đơn đặt hàng “sát thủ giá rẻ” Kindle Fire

5 triệu đơn đặt hàng “sát thủ giá rẻ” Kindle Fire

Theo một báo cáo trên nhật báo chuyên về công nghệ Digitimes, chỉ vài ngày trước khi ra mắt Kindle Fire, Amazon tuyên bố số lượng các đơn đặt hàng cho chiếc máy tính bảng đã lên đến hơn 5 triệu.

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

 

Diet con trung