WooCommerce MailChimp - Version 1.0.2

Version Description

  • Minor text and comment changes
Download this release

Release Info

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

Code changes from version 1.0.1 to 1.0.2

README.md CHANGED
@@ -1,9 +1,9 @@
1
  === WooCommerce MailChimp ===
2
- Contributors: anderly
3
  Tags: woocommerce, mailchimp
4
  Requires at least: 3.6
5
  Tested up to: 3.6.1
6
- Stable tag: 1.0.1
7
  License: GPLv3
8
 
9
  Simple MailChimp integration for WooCommerce.
@@ -67,6 +67,9 @@ Thanks in advance for your help on any translation efforts!
67
 
68
  == Changelog ==
69
 
 
 
 
70
  = 1.0.1 =
71
  * Added "Settings" link on the Plugins administration screen
72
 
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.
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
 
classes/class-ss-wc-integration-mailchimp.php CHANGED
@@ -50,11 +50,12 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
50
  add_action( 'woocommerce_update_options_integration', array( $this, 'process_admin_options') );
51
  add_action( 'woocommerce_update_options_integration_' . $this->id, array( $this, 'process_admin_options') );
52
 
 
53
  add_action( 'woocommerce_order_status_changed', array( &$this, 'status_changed' ), 10, 3 );
54
  }
55
 
56
  /**
57
- * Check if SSL is enabled and notify the user
58
  **/
59
  function checks() {
60
  global $woocommerce;
@@ -130,7 +131,7 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
130
  }
131
 
132
  /**
133
- * Initialise Settings Form Fields
134
  *
135
  * @access public
136
  * @return void
@@ -149,10 +150,10 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
149
  'default' => 'no'
150
  ),
151
  'occurs' => array(
152
- 'title' => __( 'Event Occurs', 'ss_wc_mailchimp' ),
153
  'type' => 'select',
154
- 'description' => __( 'When will customers be added to lists?', 'ss_wc_mailchimp' ),
155
- 'default' => 'order_completed',
156
  'options' => array(
157
  'completed' => 'Order Completed',
158
  'processing' => 'Order Created', ),
@@ -200,7 +201,7 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
200
  * @return void
201
  */
202
  public function get_lists() {
203
- if ( ! $mailchimp_lists = get_transient( 'wc_mailchimp_list_' . md5( $this->api_key ) ) ) {
204
 
205
  $mailchimp_lists = array();
206
  $mailchimp = new MCAPI( $this->api_key );
@@ -217,7 +218,7 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
217
  $mailchimp_lists[ $list['id'] ] = $list['name'];
218
 
219
  if ( sizeof( $mailchimp_lists ) > 0 )
220
- set_transient( 'wc_mailchimp_list_' . md5( $this->api_key ), $mailchimp_lists, 60*60*1 );
221
  }
222
  }
223
 
50
  add_action( 'woocommerce_update_options_integration', array( $this, 'process_admin_options') );
51
  add_action( 'woocommerce_update_options_integration_' . $this->id, array( $this, 'process_admin_options') );
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;
131
  }
132
 
133
  /**
134
+ * Initialize Settings Form Fields
135
  *
136
  * @access public
137
  * @return void
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', ),
201
  * @return void
202
  */
203
  public function get_lists() {
204
+ if ( ! $mailchimp_lists = get_transient( 'ss_wc_mailchimp_list_' . md5( $this->api_key ) ) ) {
205
 
206
  $mailchimp_lists = array();
207
  $mailchimp = new MCAPI( $this->api_key );
218
  $mailchimp_lists[ $list['id'] ] = $list['name'];
219
 
220
  if ( sizeof( $mailchimp_lists ) > 0 )
221
+ set_transient( 'ss_wc_mailchimp_list_' . md5( $this->api_key ), $mailchimp_lists, 60*60*1 );
222
  }
223
  }
224
 
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === WooCommerce MailChimp ===
2
- Contributors: anderly
3
  Tags: woocommerce, mailchimp
4
  Requires at least: 3.6
5
  Tested up to: 3.6.1
6
- Stable tag: 1.0.1
7
  License: GPLv3
8
 
9
  Simple MailChimp integration for WooCommerce.
@@ -67,6 +67,9 @@ Thanks in advance for your help on any translation efforts!
67
 
68
  == Changelog ==
69
 
 
 
 
70
  = 1.0.1 =
71
  * Added "Settings" link on the Plugins administration screen
72
 
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.
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
 
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.1
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.0.2
7
  Author: Adam Anderly
8
  Author URI: http://anderly.com
9