WooCommerce MailChimp - Version 1.1.2

Version Description

  • Update to REALLY address issue with subscriptions not occurring on order create "pending"
Download this release

Release Info

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

Code changes from version 1.1.1 to 1.1.2

README.md CHANGED
@@ -53,6 +53,9 @@ Thanks in advance for your help on any translation efforts!
53
 
54
  ### Changelog
55
 
 
 
 
56
  ##### 1.1.1
57
  * Update to address issue with subscriptions not occurring on order create "pending"
58
 
53
 
54
  ### Changelog
55
 
56
+ ##### 1.1.2
57
+ * Update to REALLY address issue with subscriptions not occurring on order create "pending"
58
+
59
  ##### 1.1.1
60
  * Update to address issue with subscriptions not occurring on order create "pending"
61
 
classes/class-ss-wc-integration-mailchimp.php CHANGED
@@ -55,7 +55,8 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
55
  add_action( 'woocommerce_update_options_integration_' . $this->id, 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' ) );
@@ -85,12 +86,12 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
85
  }
86
 
87
  /**
88
- * status_changed function.
89
  *
90
  * @access public
91
  * @return void
92
  */
93
- public function status_changed( $id, $status, $new_status ) {
94
 
95
  if ( $this->is_valid() && $new_status == $this->occurs ) {
96
 
55
  add_action( 'woocommerce_update_options_integration_' . $this->id, 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_new_order', array( &$this, 'order_status_changed' ), 10, 1 );
59
+ add_action( 'woocommerce_order_status_changed', array( &$this, 'order_status_changed' ), 10, 3 );
60
 
61
  // Maybe add an "opt-in" field to the checkout
62
  add_filter( 'woocommerce_checkout_fields', array( &$this, 'maybe_add_checkout_fields' ) );
86
  }
87
 
88
  /**
89
+ * order_status_changed function.
90
  *
91
  * @access public
92
  * @return void
93
  */
94
+ public function order_status_changed( $id, $status = 'new', $new_status = 'pending' ) {
95
 
96
  if ( $this->is_valid() && $new_status == $this->occurs ) {
97
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: anderly, saintsystems
3
  Tags: woocommerce, mailchimp
4
  Requires at least: 3.6
5
  Tested up to: 3.8
6
- Stable tag: 1.1.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.1.1 =
71
  * Update to address issue with subscriptions not occurring on order create "pending"
72
 
3
  Tags: woocommerce, mailchimp
4
  Requires at least: 3.6
5
  Tested up to: 3.8
6
+ Stable tag: 1.1.2
7
  License: GPLv3
8
 
9
  Simple MailChimp integration for WooCommerce.
67
 
68
  == Changelog ==
69
 
70
+ = 1.1.2 =
71
+ * Update to REALLY address issue with subscriptions not occurring on order create "pending"
72
+
73
  = 1.1.1 =
74
  * Update to address issue with subscriptions not occurring on order create "pending"
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.1.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.1.2
7
  Author: Adam Anderly
8
  Author URI: http://anderly.com
9