WooCommerce MailChimp - Version 1.2.6

Version Description

  • Added additional debug logging when WP_DEBUG is enabled
Download this release

Release Info

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

Code changes from version 1.2.5 to 1.2.6

README.md CHANGED
@@ -13,7 +13,7 @@ Automatically subscribe customers to a designated MailChimp list and, optionally
13
 
14
  #### Works with MailChimp Interest Groups
15
 
16
- - Set one or more interest groups to add users to based on the selected MailChimp list.
17
 
18
  #### Opt-In Settings
19
 
@@ -51,7 +51,7 @@ If you need help, have problems, want to leave feedback or want to provide const
51
 
52
  ### Installation
53
 
54
- 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.
55
  2. Enable the plugin from the *Plugins* menu in WordPress.
56
 
57
  ### Usage
@@ -64,6 +64,9 @@ If you need help, have problems, want to leave feedback or want to provide const
64
 
65
  ### Changelog
66
 
 
 
 
67
  #### 1.2.5
68
  * Bug fix for subscribe when not using opt-in display field
69
 
13
 
14
  #### Works with MailChimp Interest Groups
15
 
16
+ - Set one or more interest groups to add users to based on the selected MailChimp list. The title of the groups needs to be entered as the Group Name.
17
 
18
  #### Opt-In Settings
19
 
51
 
52
  ### Installation
53
 
54
+ 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.
55
  2. Enable the plugin from the *Plugins* menu in WordPress.
56
 
57
  ### Usage
64
 
65
  ### Changelog
66
 
67
+ #### 1.2.6
68
+ * Added additional debug logging when WP_DEBUG is enabled
69
+
70
  #### 1.2.5
71
  * Bug fix for subscribe when not using opt-in display field
72
 
classes/class-ss-wc-integration-mailchimp.php CHANGED
@@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9
  *
10
  * @class SS_WC_Integration_MailChimp
11
  * @extends WC_Integration
12
- * @version 1.2.5
13
  * @package WooCommerce MailChimp
14
  * @author Saint Systems
15
  */
@@ -399,9 +399,24 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
399
  $replace_interests = false;
400
  $send_welcome = false;
401
 
 
 
 
 
 
 
 
 
 
 
 
402
  $retval = $api->listSubscribe( $listid, $email, $vars, $email_type, $double_optin, $update_existing, $replace_interests, $send_welcome );
403
 
 
 
404
  if ( $api->errorCode && $api->errorCode != 214 ) {
 
 
405
  do_action( 'ss_wc_mailchimp_subscribed', $email );
406
 
407
  // Email admin
@@ -484,4 +499,4 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
484
  }
485
  }
486
 
487
- }
9
  *
10
  * @class SS_WC_Integration_MailChimp
11
  * @extends WC_Integration
12
+ * @version 1.2.6
13
  * @package WooCommerce MailChimp
14
  * @author Saint Systems
15
  */
399
  $replace_interests = false;
400
  $send_welcome = false;
401
 
402
+ self::log( 'Calling MailChimp API listSubscribe method with the following: ' .
403
+ 'listid=' . $listid .
404
+ ', email=' . $email .
405
+ ', vars=' . print_r( $vars, true ) .
406
+ ', email_type=' . $email_type .
407
+ ', double_optin=' . $double_optin .
408
+ ', update_existing=' . $update_existing .
409
+ ', replace_interests=' . $replace_interests .
410
+ ', send_welcome=' . $send_welcome
411
+ );
412
+
413
  $retval = $api->listSubscribe( $listid, $email, $vars, $email_type, $double_optin, $update_existing, $replace_interests, $send_welcome );
414
 
415
+ self::log( 'MailChimp return value:' . $retval );
416
+
417
  if ( $api->errorCode && $api->errorCode != 214 ) {
418
+ self::log( 'WooCommerce MailChimp subscription failed: (' . $api->errorCode . ') ' . $api->errorMessage );
419
+
420
  do_action( 'ss_wc_mailchimp_subscribed', $email );
421
 
422
  // Email admin
499
  }
500
  }
501
 
502
+ }
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.1
6
- Stable tag: 1.2.5
7
  License: GPLv3
8
 
9
  Simple and flexible MailChimp integration for WooCommerce.
@@ -78,6 +78,9 @@ If you need help, have problems, want to leave feedback or want to provide const
78
 
79
  == Changelog ==
80
 
 
 
 
81
  = 1.2.5 =
82
  * Bug fix for subscribe when not using opt-in display field
83
 
3
  Tags: woocommerce, mailchimp
4
  Requires at least: 3.6
5
  Tested up to: 3.8.1
6
+ Stable tag: 1.2.6
7
  License: GPLv3
8
 
9
  Simple and flexible MailChimp integration for WooCommerce.
78
 
79
  == Changelog ==
80
 
81
+ = 1.2.6 =
82
+ * Added additional debug logging when WP_DEBUG is enabled
83
+
84
  = 1.2.5 =
85
  * Bug fix for subscribe when not using opt-in display field
86
 
woocommerce-mailchimp.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
6
  * Author: Adam Anderly
7
  * Author URI: http://anderly.com
8
- * Version: 1.2.5
9
  * Text Domain: ss_wc_mailchimp
10
  * Domain Path: languages
11
  *
5
  * Description: WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
6
  * Author: Adam Anderly
7
  * Author URI: http://anderly.com
8
+ * Version: 1.2.6
9
  * Text Domain: ss_wc_mailchimp
10
  * Domain Path: languages
11
  *