WooCommerce MailChimp - Version 1.1

Version Description

  • Add the option to display an opt-in field on checkout
Download this release

Release Info

Developer anderly
Plugin Icon 128x128 WooCommerce MailChimp
Version 1.1
Comparing to
See all releases

Code changes from version 1.0.2 to 1.1

README.md CHANGED
@@ -1,77 +1,66 @@
1
- === WooCommerce MailChimp ===
2
- Contributors: anderly, saintsystems
3
- Tags: woocommerce, mailchimp
4
- Requires at least: 3.6
5
- Tested up to: 3.6.1
6
- Stable tag: 1.0.2
7
- License: GPLv3
8
-
9
- Simple MailChimp integration for WooCommerce.
10
-
11
- == Description ==
12
-
13
- WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
14
-
15
- Easily add customers to a designated MailChimp list and, optionally, MailChimp interest groups upon order creation or order completion.
16
-
17
- Double opt-in option for anti-spam compliance.
18
-
19
- ### Features ###
20
-
21
- #### WooCommerce Event Selection ####
22
-
23
- - Subscribe customers to MailChimp after order creation
24
- - Subscribe customers to MailChimp after order completion
25
-
26
- #### Works with MailChimp Interest Groups ####
27
-
28
- - Set one or more interest groups to add users to based on the selected MailChimp list.
29
-
30
- #### Multisite ####
31
-
32
- - All features should work for each blog in multisite installations but this has not yet been tested.
33
-
34
- ### Feedback ###
35
-
36
- Feedback is welcome!
37
-
38
- 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](http://anderly.com/woocommerce-mailchimp/).
39
-
40
- #### Twitter ####
41
-
42
- [Follow @anderly on Twitter](http://twitter.com/anderly) for updates on this and other plugins.
43
-
44
- ### Translations ###
45
-
46
- * English (default)
47
- * No other translations yet.
48
-
49
- Thanks in advance for your help on any translation efforts!
50
-
51
- == Installation ==
52
-
53
- 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.
54
- 2. Enable the plugin from the *Plugins* menu in WordPress.
55
-
56
- = Usage =
57
-
58
- 1. Go to WooCommerce > Settings > Integration > MailChimp
59
- 2. First, enable the plugin and set your MailChimp API Key and hit save.
60
- 3. Select whether you want customers to be subscribed to your MailChimp list after order creation or order completion (there's a difference in WooCommerce).
61
- 4. Next, select your MailChimp list and set any interest group settings (optional) and hit save.
62
- 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!
63
-
64
- == Screenshots ==
65
-
66
- 1. WooCommerce MailChimp options screen.
67
-
68
- == Changelog ==
69
-
70
- = 1.0.2 =
71
- * Minor text and comment changes
72
-
73
- = 1.0.1 =
74
- * Added "Settings" link on the Plugins administration screen
75
-
76
- = 1.0 =
77
- * This is the first public release.
1
+ ## WooCommerce MailChimp ##
2
+
3
+ WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
4
+
5
+ Easily add customers to a designated MailChimp list and, optionally, MailChimp interest groups upon order creation or order completion.
6
+
7
+ Double opt-in option for anti-spam compliance.
8
+
9
+ ### Features
10
+
11
+ #### WooCommerce Event Selection
12
+
13
+ - Subscribe customers to MailChimp after order creation
14
+ - Subscribe customers to MailChimp after order completion
15
+
16
+ #### Works with MailChimp Interest Groups
17
+
18
+ - Set one or more interest groups to add users to based on the selected MailChimp list.
19
+
20
+ #### Multisite
21
+
22
+ - All features should work for each blog in multisite installations but this has not yet been tested.
23
+
24
+ ### Feedback
25
+
26
+ Feedback is welcome!
27
+
28
+ 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](http://anderly.com/woocommerce-mailchimp/).
29
+
30
+ #### Twitter
31
+
32
+ [Follow @anderly on Twitter](http://twitter.com/anderly) for updates on this and other plugins.
33
+
34
+ ### Translations
35
+
36
+ * English (default)
37
+ * No other translations yet.
38
+
39
+ Thanks in advance for your help on any translation efforts!
40
+
41
+ ### Installation
42
+
43
+ 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.
44
+ 2. Enable the plugin from the *Plugins* menu in WordPress.
45
+
46
+ ### Usage
47
+
48
+ 1. Go to WooCommerce > Settings > Integration > MailChimp
49
+ 2. First, enable the plugin and set your MailChimp API Key and hit save.
50
+ 3. Select whether you want customers to be subscribed to your MailChimp list after order creation or order completion (there's a difference in WooCommerce).
51
+ 4. Next, select your MailChimp list and set any interest group settings (optional) and hit save.
52
+ 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!
53
+
54
+ ### Changelog
55
+
56
+ ##### 1.1
57
+ * Add the option to display an opt-in field on checkout
58
+
59
+ ##### 1.0.2
60
+ * Minor text and comment changes
61
+
62
+ ##### 1.0.1
63
+ * Added "Settings" link on the Plugins administration screen
64
+
65
+ ##### 1.0
66
+ * This is the first public release.
 
 
 
 
 
 
 
 
 
 
 
classes/class-ss-wc-integration-mailchimp.php CHANGED
@@ -27,24 +27,28 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
27
  include_once( 'api/class-MCAPI.php' );
28
  }
29
 
30
- $this->id = 'mailchimp';
31
- $this->method_title = __( 'MailChimp', 'ss_wc_mailchimp' );
32
- $this->method_description = __( 'MailChimp is a popular email marketing service.', 'ss_wc_mailchimp' );
33
 
34
  // Load the settings.
35
  $this->init_settings();
36
 
37
- // Get setting values
38
- $this->enabled = $this->settings['enabled'];
39
- $this->occurs = $this->settings['occurs'];
40
- $this->api_key = $this->settings['api_key'];
41
- $this->list = $this->settings['list'];
42
- $this->double_optin = $this->settings['double_optin'];
43
- $this->interest_groupings = $this->settings['interest_groupings'];
44
- $this->groups = $this->settings['groups'];
45
 
46
  $this->init_form_fields();
47
 
 
 
 
 
 
 
 
 
 
 
48
  // Hooks
49
  add_action( 'admin_notices', array( &$this, 'checks' ) );
50
  add_action( 'woocommerce_update_options_integration', array( $this, 'process_admin_options') );
@@ -52,27 +56,32 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
52
 
53
  // hook into woocommerce order status changed hook to handle the desired subscription event trigger
54
  add_action( 'woocommerce_order_status_changed', array( &$this, 'status_changed' ), 10, 3 );
55
- }
56
 
57
- /**
58
- * Check if the user has enabled the plugin functionality, but hasn't provided an api key
59
- **/
 
 
 
 
 
 
 
60
  function checks() {
61
- global $woocommerce;
62
-
63
- if ( $this->enabled == 'yes' ) {
64
-
65
- // Check required fields
66
- if ( ! $this->api_key ) {
67
 
68
- echo '<div class="error"><p>' . sprintf( __('MailChimp error: Please enter your api key <a href="%s">here</a>', 'wc_mailchimp'), admin_url('admin.php?page=woocommerce&tab=integration&section=mailchimp' ) ) . '</p></div>';
69
 
70
- return;
71
 
72
- }
73
 
74
- }
75
-
76
  }
77
 
78
  /**
@@ -83,12 +92,12 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
83
  */
84
  public function status_changed( $id, $status, $new_status ) {
85
 
86
- if ( $this->is_valid() ) {
87
-
88
- if ( $new_status == $this->occurs ) {
89
 
90
- $order = new WC_Order( $id );
91
 
 
 
92
  $this->subscribe( $order->billing_first_name, $order->billing_last_name, $order->billing_email, $this->list );
93
  }
94
 
@@ -130,71 +139,89 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
130
  return false;
131
  }
132
 
133
- /**
134
- * Initialize Settings Form Fields
135
- *
136
- * @access public
137
- * @return void
138
- */
139
- function init_form_fields() {
140
-
141
- $mailchimp_lists = $this->has_api_key() ? array_merge( array( '' => __('Select a list...', 'ss_wc_mailchimp' ) ), $this->get_lists() ) : array( '' => __( 'Enter your key and save to see your lists', 'ss_wc_mailchimp' ) );
142
- //$mailchimp_interest_groupings = $this->has_list() ? array_merge( array( '' => __('Select an interest grouping...', 'ss_wc_mailchimp' ) ), $this->get_interest_groupings( $this->list ) ) : array( '' => __( 'Please select a list to see your interest groupings.', 'ss_wc_mailchimp' ) );
143
-
144
- $this->form_fields = array(
145
- 'enabled' => array(
146
- 'title' => __( 'Enable/Disable', 'ss_wc_mailchimp' ),
147
- 'label' => __( 'Enable MailChimp', 'ss_wc_mailchimp' ),
148
- 'type' => 'checkbox',
149
- 'description' => '',
150
- 'default' => 'no'
151
- ),
152
- 'occurs' => array(
153
- 'title' => __( 'Subscribe Event', 'ss_wc_mailchimp' ),
154
- 'type' => 'select',
155
- 'description' => __( 'When should customers be subscribed to lists?', 'ss_wc_mailchimp' ),
156
- 'default' => 'completed',
157
- 'options' => array(
158
- 'completed' => 'Order Completed',
159
- 'processing' => 'Order Created', ),
160
- ),
161
- 'api_key' => array(
162
- 'title' => __( 'API Key', 'ss_wc_mailchimp' ),
163
- 'type' => 'text',
164
- 'description' => __( '<a href="https://login.mailchimp.com/" target="_blank">Login to mailchimp</a> to look up your api key.', 'ss_wc_mailchimp' ),
165
- 'default' => ''
166
- ),
167
- 'list' => array(
168
- 'title' => __( 'Main List', 'ss_wc_mailchimp' ),
169
- 'type' => 'select',
170
- 'description' => __( 'All customers will be added to this list.', 'ss_wc_mailchimp' ),
171
- 'default' => '',
172
- 'options' => $mailchimp_lists,
173
- ),
174
- 'interest_groupings' => array(
175
- 'title' => __( 'Group Name', 'ss_wc_mailchimp' ),
176
- 'type' => 'text',
177
- 'description' => __( 'Optional: Enter the name of the group. Learn more about <a href="http://mailchimp.com/features/groups" target="_blank">Groups</a>', 'ss_wc_mailchimp' ),
178
- 'default' => '',
179
- ),
180
- 'groups' => array(
181
- 'title' => __( 'Groups', 'ss_wc_mailchimp' ),
182
- 'type' => 'text',
183
- 'description' => __( 'Optional: Comma delimited list of interest groups to add the email to.', 'ss_wc_mailchimp' ),
184
- 'default' => '',
185
- ),
186
- 'double_optin' => array(
187
- 'title' => __( 'Double Opt-In', 'ss_wc_mailchimp' ),
188
- 'label' => __( 'Enable Double Opt-In', 'ss_wc_mailchimp' ),
189
- 'type' => 'checkbox',
190
- 'description' => __( 'If enabled, customers will receive an email prompting them to confirm their subscription to the list above.', 'ss_wc_mailchimp' ),
191
- 'default' => 'no'
192
- ),
193
- );
194
-
195
- } // End init_form_fields()
196
-
197
- /**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
198
  * get_lists function.
199
  *
200
  * @access public
@@ -311,18 +338,47 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
311
  }
312
  }
313
 
314
- /**
315
  * Admin Panel Options
316
  */
317
  function admin_options() {
318
  ?>
319
- <h3><?php _e( 'MailChimp', 'wc_mailchimp' ); ?></h3>
320
  <p><?php _e( 'Enter your MailChimp settings below to control how WooCommerce integrates with your MailChimp lists.', 'ss_wc_mailchimp' ); ?></p>
321
- <?php?>
322
  <table class="form-table">
323
  <?php $this->generate_settings_html(); ?>
324
  </table><!--/.form-table-->
325
  <?php
326
  }
327
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
328
  }
27
  include_once( 'api/class-MCAPI.php' );
28
  }
29
 
30
+ $this->id = 'mailchimp';
31
+ $this->method_title = __( 'MailChimp', 'ss_wc_mailchimp' );
32
+ $this->method_description = __( 'MailChimp is a popular email marketing service.', 'ss_wc_mailchimp' );
33
 
34
  // Load the settings.
35
  $this->init_settings();
36
 
37
+ // We need the API key to set up for the lists in teh form fields
38
+ $this->api_key = $this->get_option( 'api_key' );
 
 
 
 
 
 
39
 
40
  $this->init_form_fields();
41
 
42
+ // Get setting values
43
+ $this->enabled = $this->get_option( 'enabled' );
44
+ $this->occurs = $this->get_option( 'occurs' );
45
+ $this->list = $this->get_option( 'list' );
46
+ $this->double_optin = $this->get_option( 'double_optin' );
47
+ $this->groups = $this->get_option( 'groups' );
48
+ $this->display_opt_in = $this->get_option( 'display_opt_in' );
49
+ $this->opt_in_label = $this->get_option( 'opt_in_label' );
50
+ $this->interest_groupings = $this->get_option( 'interest_groupings' );
51
+
52
  // Hooks
53
  add_action( 'admin_notices', array( &$this, 'checks' ) );
54
  add_action( 'woocommerce_update_options_integration', array( $this, 'process_admin_options') );
56
 
57
  // hook into woocommerce order status changed hook to handle the desired subscription event trigger
58
  add_action( 'woocommerce_order_status_changed', array( &$this, 'status_changed' ), 10, 3 );
 
59
 
60
+ // Maybe add an "opt-in" field to the checkout
61
+ add_filter( 'woocommerce_checkout_fields', array( &$this, 'maybe_add_checkout_fields' ) );
62
+
63
+ // Maybe save the "opt-in" field on the checkout
64
+ add_action( 'woocommerce_checkout_update_order_meta', array( &$this, 'maybe_save_checkout_fields' ) );
65
+ }
66
+
67
+ /**
68
+ * Check if the user has enabled the plugin functionality, but hasn't provided an api key
69
+ **/
70
  function checks() {
71
+ global $woocommerce;
72
+
73
+ if ( $this->enabled == 'yes' ) {
74
+
75
+ // Check required fields
76
+ if ( ! $this->api_key ) {
77
 
78
+ echo '<div class="error"><p>' . sprintf( __('MailChimp error: Please enter your api key <a href="%s">here</a>', 'ss_wc_mailchimp'), admin_url('admin.php?page=woocommerce&tab=integration&section=mailchimp' ) ) . '</p></div>';
79
 
80
+ return;
81
 
82
+ }
83
 
84
+ }
 
85
  }
86
 
87
  /**
92
  */
93
  public function status_changed( $id, $status, $new_status ) {
94
 
95
+ if ( $this->is_valid() && $new_status == $this->occurs ) {
 
 
96
 
97
+ $order = new WC_Order( $id );
98
 
99
+ // If the 'ss_wc_mailchimp_opt_in' meta value isn't set (because 'display_opt_in' wasn't enabled at the time the order was placed) or the 'ss_wc_mailchimp_opt_in' is yes, subscriber the customer
100
+ if ( ! isset( $order->order_custom_fields['ss_wc_mailchimp_opt_in'][0] ) || 'yes' == $order->order_custom_fields['ss_wc_mailchimp_opt_in'][0] ) {
101
  $this->subscribe( $order->billing_first_name, $order->billing_last_name, $order->billing_email, $this->list );
102
  }
103
 
139
  return false;
140
  }
141
 
142
+ /**
143
+ * Initialize Settings Form Fields
144
+ *
145
+ * @access public
146
+ * @return void
147
+ */
148
+ function init_form_fields() {
149
+
150
+ if ( is_admin() ) {
151
+
152
+ $mailchimp_lists = $this->has_api_key() ? array_merge( array( '' => __('Select a list...', 'ss_wc_mailchimp' ) ), $this->get_lists() ) : array( '' => __( 'Enter your key and save to see your lists', 'ss_wc_mailchimp' ) );
153
+ //$mailchimp_interest_groupings = $this->has_list() ? array_merge( array( '' => __('Select an interest grouping...', 'ss_wc_mailchimp' ) ), $this->get_interest_groupings( $this->list ) ) : array( '' => __( 'Please select a list to see your interest groupings.', 'ss_wc_mailchimp' ) );
154
+
155
+ $this->form_fields = array(
156
+ 'enabled' => array(
157
+ 'title' => __( 'Enable/Disable', 'ss_wc_mailchimp' ),
158
+ 'label' => __( 'Enable MailChimp', 'ss_wc_mailchimp' ),
159
+ 'type' => 'checkbox',
160
+ 'description' => '',
161
+ 'default' => 'no'
162
+ ),
163
+ 'occurs' => array(
164
+ 'title' => __( 'Subscribe Event', 'ss_wc_mailchimp' ),
165
+ 'type' => 'select',
166
+ 'description' => __( 'When should customers be subscribed to lists?', 'ss_wc_mailchimp' ),
167
+ 'default' => 'completed',
168
+ 'options' => array(
169
+ 'completed' => __( 'Order Completed', 'ss_wc_mailchimp' ),
170
+ 'processing' => __( 'Order Created', 'ss_wc_mailchimp' ),
171
+ ),
172
+ ),
173
+ 'api_key' => array(
174
+ 'title' => __( 'API Key', 'ss_wc_mailchimp' ),
175
+ 'type' => 'text',
176
+ 'description' => __( '<a href="https://us2.admin.mailchimp.com/account/api/" target="_blank">Login to mailchimp</a> to look up your api key.', 'ss_wc_mailchimp' ),
177
+ 'default' => ''
178
+ ),
179
+ 'list' => array(
180
+ 'title' => __( 'Main List', 'ss_wc_mailchimp' ),
181
+ 'type' => 'select',
182
+ 'description' => __( 'All customers will be added to this list.', 'ss_wc_mailchimp' ),
183
+ 'default' => '',
184
+ 'options' => $mailchimp_lists,
185
+ ),
186
+ 'interest_groupings' => array(
187
+ 'title' => __( 'Group Name', 'ss_wc_mailchimp' ),
188
+ 'type' => 'text',
189
+ 'description' => __( 'Optional: Enter the name of the group. Learn more about <a href="http://mailchimp.com/features/groups" target="_blank">Groups</a>', 'ss_wc_mailchimp' ),
190
+ 'default' => '',
191
+ ),
192
+ 'groups' => array(
193
+ 'title' => __( 'Groups', 'ss_wc_mailchimp' ),
194
+ 'type' => 'text',
195
+ 'description' => __( 'Optional: Comma delimited list of interest groups to add the email to.', 'ss_wc_mailchimp' ),
196
+ 'default' => '',
197
+ ),
198
+ 'double_optin' => array(
199
+ 'title' => __( 'Double Opt-In', 'ss_wc_mailchimp' ),
200
+ 'label' => __( 'Enable Double Opt-In', 'ss_wc_mailchimp' ),
201
+ 'type' => 'checkbox',
202
+ 'description' => __( 'If enabled, customers will receive an email prompting them to confirm their subscription to the list above.', 'ss_wc_mailchimp' ),
203
+ 'default' => 'no'
204
+ ),
205
+ 'display_opt_in' => array(
206
+ 'title' => __( 'Display Opt-In Field', 'ss_wc_mailchimp' ),
207
+ 'label' => __( 'Display an Opt-In Field on Checkout', 'ss_wc_mailchimp' ),
208
+ 'type' => 'checkbox',
209
+ 'description' => __( 'If enabled, customers will be presented with a "Opt-in" checkbox during checkout and will only be added to the list above if they opt-in.', 'ss_wc_mailchimp' ),
210
+ 'default' => 'no'
211
+ ),
212
+ 'opt_in_label' => array(
213
+ 'title' => __( 'Opt-In Field Label', 'ss_wc_mailchimp' ),
214
+ 'type' => 'text',
215
+ 'description' => __( 'Optional: customize the label displayed next to the opt-in checkbox.', 'ss_wc_mailchimp' ),
216
+ 'default' => __( 'Add me to the newsletter (we will never share your email).', 'ss_wc_mailchimp' ),
217
+ ),
218
+ );
219
+
220
+ }
221
+
222
+ } // End init_form_fields()
223
+
224
+ /**
225
  * get_lists function.
226
  *
227
  * @access public
338
  }
339
  }
340
 
341
+ /**
342
  * Admin Panel Options
343
  */
344
  function admin_options() {
345
  ?>
346
+ <h3><?php _e( 'MailChimp', 'ss_wc_mailchimp' ); ?></h3>
347
  <p><?php _e( 'Enter your MailChimp settings below to control how WooCommerce integrates with your MailChimp lists.', 'ss_wc_mailchimp' ); ?></p>
 
348
  <table class="form-table">
349
  <?php $this->generate_settings_html(); ?>
350
  </table><!--/.form-table-->
351
  <?php
352
  }
353
 
354
+ /**
355
+ * Add the opt-in checkbox to the checkout fields (to be displayed on checkout).
356
+ *
357
+ * @since 1.1
358
+ */
359
+ function maybe_add_checkout_fields( $checkout_fields ) {
360
+
361
+ if ( 'yes' == $this->display_opt_in ) {
362
+ $checkout_fields['order']['ss_wc_mailchimp_opt_in'] = array(
363
+ 'type' => 'checkbox',
364
+ 'label' => esc_attr( $this->opt_in_label ),
365
+ 'default' => true,
366
+ );
367
+ }
368
+
369
+ return $checkout_fields;
370
+ }
371
+
372
+ /**
373
+ * When the checkout form is submitted, save opt-in value.
374
+ *
375
+ * @version 1.1
376
+ */
377
+ function maybe_save_checkout_fields( $order_id ) {
378
+
379
+ if ( 'yes' == $this->display_opt_in ) {
380
+ $opt_in = isset( $_POST['ss_wc_mailchimp_opt_in'] ) ? 'yes' : 'no';
381
+ update_post_meta( $order_id, 'ss_wc_mailchimp_opt_in', $opt_in );
382
+ }
383
+ }
384
  }
readme.txt CHANGED
@@ -1,77 +1,80 @@
1
- === WooCommerce MailChimp ===
2
- Contributors: anderly, saintsystems
3
- Tags: woocommerce, mailchimp
4
- Requires at least: 3.6
5
- Tested up to: 3.6.1
6
- Stable tag: 1.0.2
7
- License: GPLv3
8
-
9
- Simple MailChimp integration for WooCommerce.
10
-
11
- == Description ==
12
-
13
- WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
14
-
15
- Easily add customers to a designated MailChimp list and, optionally, MailChimp interest groups upon order creation or order completion.
16
-
17
- Double opt-in option for anti-spam compliance.
18
-
19
- ### Features ###
20
-
21
- #### WooCommerce Event Selection ####
22
-
23
- - Subscribe customers to MailChimp after order creation
24
- - Subscribe customers to MailChimp after order completion
25
-
26
- #### Works with MailChimp Interest Groups ####
27
-
28
- - Set one or more interest groups to add users to based on the selected MailChimp list.
29
-
30
- #### Multisite ####
31
-
32
- - All features should work for each blog in multisite installations but this has not yet been tested.
33
-
34
- ### Feedback ###
35
-
36
- Feedback is welcome!
37
-
38
- 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](http://anderly.com/woocommerce-mailchimp/).
39
-
40
- #### Twitter ####
41
-
42
- [Follow @anderly on Twitter](http://twitter.com/anderly) for updates on this and other plugins.
43
-
44
- ### Translations ###
45
-
46
- * English (default)
47
- * No other translations yet.
48
-
49
- Thanks in advance for your help on any translation efforts!
50
-
51
- == Installation ==
52
-
53
- 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.
54
- 2. Enable the plugin from the *Plugins* menu in WordPress.
55
-
56
- = Usage =
57
-
58
- 1. Go to WooCommerce > Settings > Integration > MailChimp
59
- 2. First, enable the plugin and set your MailChimp API Key and hit save.
60
- 3. Select whether you want customers to be subscribed to your MailChimp list after order creation or order completion (there's a difference in WooCommerce).
61
- 4. Next, select your MailChimp list and set any interest group settings (optional) and hit save.
62
- 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!
63
-
64
- == Screenshots ==
65
-
66
- 1. WooCommerce MailChimp options screen.
67
-
68
- == Changelog ==
69
-
70
- = 1.0.2 =
71
- * Minor text and comment changes
72
-
73
- = 1.0.1 =
74
- * Added "Settings" link on the Plugins administration screen
75
-
76
- = 1.0 =
77
- * This is the first public release.
 
 
 
1
+ === WooCommerce MailChimp ===
2
+ Contributors: anderly, saintsystems
3
+ Tags: woocommerce, mailchimp
4
+ Requires at least: 3.6
5
+ Tested up to: 3.7.1
6
+ Stable tag: 1.1
7
+ License: GPLv3
8
+
9
+ Simple MailChimp integration for WooCommerce.
10
+
11
+ == Description ==
12
+
13
+ WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
14
+
15
+ Easily add customers to a designated MailChimp list and, optionally, MailChimp interest groups upon order creation or order completion.
16
+
17
+ Double opt-in option for anti-spam compliance.
18
+
19
+ ### Features ###
20
+
21
+ #### WooCommerce Event Selection ####
22
+
23
+ - Subscribe customers to MailChimp after order creation
24
+ - Subscribe customers to MailChimp after order completion
25
+
26
+ #### Works with MailChimp Interest Groups ####
27
+
28
+ - Set one or more interest groups to add users to based on the selected MailChimp list.
29
+
30
+ #### Multisite ####
31
+
32
+ - All features should work for each blog in multisite installations but this has not yet been tested.
33
+
34
+ ### Feedback ###
35
+
36
+ Feedback is welcome!
37
+
38
+ 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](http://anderly.com/woocommerce-mailchimp/).
39
+
40
+ #### Twitter ####
41
+
42
+ [Follow @anderly on Twitter](http://twitter.com/anderly) for updates on this and other plugins.
43
+
44
+ ### Translations ###
45
+
46
+ * English (default)
47
+ * No other translations yet.
48
+
49
+ Thanks in advance for your help on any translation efforts!
50
+
51
+ == Installation ==
52
+
53
+ 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.
54
+ 2. Enable the plugin from the *Plugins* menu in WordPress.
55
+
56
+ = Usage =
57
+
58
+ 1. Go to WooCommerce > Settings > Integration > MailChimp
59
+ 2. First, enable the plugin and set your MailChimp API Key and hit save.
60
+ 3. Select whether you want customers to be subscribed to your MailChimp list after order creation or order completion (there's a difference in WooCommerce).
61
+ 4. Next, select your MailChimp list and set any interest group settings (optional) and hit save.
62
+ 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!
63
+
64
+ == Screenshots ==
65
+
66
+ 1. WooCommerce MailChimp options screen.
67
+
68
+ == Changelog ==
69
+
70
+ = 1.1 =
71
+ * Add the option to display an opt-in field on checkout
72
+
73
+ = 1.0.2 =
74
+ * Minor text and comment changes
75
+
76
+ = 1.0.1 =
77
+ * Added "Settings" link on the Plugins administration screen
78
+
79
+ = 1.0 =
80
+ * This is the first public release.
woocommerce-mailchimp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WooCommerce MailChimp
4
  Plugin URI: http://anderly.com/woocommerce-mailchimp
5
  Description: WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
6
- Version: 1.0.2
7
  Author: Adam Anderly
8
  Author URI: http://anderly.com
9
 
3
  Plugin Name: WooCommerce MailChimp
4
  Plugin URI: http://anderly.com/woocommerce-mailchimp
5
  Description: WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
6
+ Version: 1.1
7
  Author: Adam Anderly
8
  Author URI: http://anderly.com
9