Version Description
- Bug fix for subscribe when not using opt-in display field
Download this release
Release Info
Developer | anderly |
Plugin | WooCommerce MailChimp |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.2.5
- README.md +3 -0
- classes/class-ss-wc-integration-mailchimp.php +8 -3
- readme.txt +4 -1
- woocommerce-mailchimp.php +1 -1
README.md
CHANGED
@@ -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.4
|
68 |
* Bug fix for subscribe
|
69 |
|
64 |
|
65 |
### Changelog
|
66 |
|
67 |
+
#### 1.2.5
|
68 |
+
* Bug fix for subscribe when not using opt-in display field
|
69 |
+
|
70 |
##### 1.2.4
|
71 |
* Bug fix for subscribe
|
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.
|
13 |
* @package WooCommerce MailChimp
|
14 |
* @author Saint Systems
|
15 |
*/
|
@@ -108,7 +108,7 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
|
|
108 |
self::log( '$ss_wc_mailchimp_opt_in: ' . $ss_wc_mailchimp_opt_in );
|
109 |
|
110 |
// 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
|
111 |
-
if ( ! isset( $ss_wc_mailchimp_opt_in ) || 'yes' == $ss_wc_mailchimp_opt_in ) {
|
112 |
self::log( 'Subscribing user (' . $order->billing_email . ') to list(' . $this->list . ') ' );
|
113 |
$this->subscribe( $order->billing_first_name, $order->billing_last_name, $order->billing_email, $this->list );
|
114 |
}
|
@@ -161,7 +161,12 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
|
|
161 |
|
162 |
if ( is_admin() ) {
|
163 |
|
164 |
-
$
|
|
|
|
|
|
|
|
|
|
|
165 |
//$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' ) );
|
166 |
|
167 |
$this->form_fields = array(
|
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 |
*/
|
108 |
self::log( '$ss_wc_mailchimp_opt_in: ' . $ss_wc_mailchimp_opt_in );
|
109 |
|
110 |
// 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
|
111 |
+
if ( ! isset( $ss_wc_mailchimp_opt_in ) || empty( $ss_wc_mailchimp_opt_in ) || 'yes' == $ss_wc_mailchimp_opt_in ) {
|
112 |
self::log( 'Subscribing user (' . $order->billing_email . ') to list(' . $this->list . ') ' );
|
113 |
$this->subscribe( $order->billing_first_name, $order->billing_last_name, $order->billing_email, $this->list );
|
114 |
}
|
161 |
|
162 |
if ( is_admin() ) {
|
163 |
|
164 |
+
$lists = $this->get_lists();
|
165 |
+
if ($lists === false ) {
|
166 |
+
$lists = array ();
|
167 |
+
}
|
168 |
+
|
169 |
+
$mailchimp_lists = $this->has_api_key() ? array_merge( array( '' => __('Select a list...', 'ss_wc_mailchimp' ) ), $lists ) : array( '' => __( 'Enter your key and save to see your lists', 'ss_wc_mailchimp' ) );
|
170 |
//$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' ) );
|
171 |
|
172 |
$this->form_fields = array(
|
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.
|
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.4 =
|
82 |
* Bug fix for subscribe
|
83 |
|
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 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 1.2.5 =
|
82 |
+
* Bug fix for subscribe when not using opt-in display field
|
83 |
+
|
84 |
= 1.2.4 =
|
85 |
* Bug fix for subscribe
|
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.
|
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.5
|
9 |
* Text Domain: ss_wc_mailchimp
|
10 |
* Domain Path: languages
|
11 |
*
|