Version Description
- Added new setting to control whether or not the double opt-in checkbox is checked/unchecked by default on the checkout page.
- Added new setting to control display location of the double opt-in checkbox (under billing info or order info)
- Small modification to append to MailChimp interest groups for existing users so that group settings are not lost for users who were already subscribed.
- Preparations for i18n (Internationalization) support. Several users have already asked and offered to translate the plugin into other languages. We had always planned on that, but now are making that a reality.
Download this release
Release Info
Developer | anderly |
Plugin | WooCommerce MailChimp |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.2
- README.md +29 -12
- classes/class-ss-wc-integration-mailchimp.php +54 -11
- languages/woocommerce-mailchimp.pot +177 -0
- readme.txt +31 -14
- woocommerce-mailchimp.php +16 -14
- wpml-config.xml +7 -0
README.md
CHANGED
@@ -1,10 +1,8 @@
|
|
1 |
## WooCommerce MailChimp ##
|
2 |
|
3 |
-
WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
Double opt-in option for anti-spam compliance.
|
8 |
|
9 |
### Features
|
10 |
|
@@ -17,9 +15,29 @@ Double opt-in option for anti-spam compliance.
|
|
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
|
23 |
|
24 |
### Feedback
|
25 |
|
@@ -31,13 +49,6 @@ If you need help, have problems, want to leave feedback or want to provide const
|
|
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.
|
@@ -53,6 +64,12 @@ Thanks in advance for your help on any translation efforts!
|
|
53 |
|
54 |
### Changelog
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
##### 1.1.3
|
57 |
* Minor action hook change since order meta (needed for MailChimp API call) is not yet available on 'woocommerce_new_order' hook
|
58 |
|
1 |
## WooCommerce MailChimp ##
|
2 |
|
3 |
+
WooCommerce MailChimp provides simple and flexible MailChimp integration for WooCommerce.
|
4 |
|
5 |
+
Automatically subscribe customers to a designated MailChimp list and, optionally, MailChimp interest groups upon order creation or order completion. This can be done quietly or based on the user's consent with several opt-in settings that support international opt-in laws.
|
|
|
|
|
6 |
|
7 |
### Features
|
8 |
|
15 |
|
16 |
- Set one or more interest groups to add users to based on the selected MailChimp list.
|
17 |
|
18 |
+
#### Opt-In Settings
|
19 |
+
|
20 |
+
- MailChimp double opt-in support (control whether a double opt-in email is sent to the customer)
|
21 |
+
- Optionally, display an opt-in checkbox on the checkout page (this is required in some countries)
|
22 |
+
- Control the label displayed next to the opt-in checkbox
|
23 |
+
- Control whether or not the opt-in checkbox is checked or unchecked by default
|
24 |
+
- Control the placement of the opt-in checkbox on the checkout page (under billing info or order info)
|
25 |
+
|
26 |
+
#### Translation Support
|
27 |
+
|
28 |
+
- i18n ready with included woocommerce-mailchimp.pot file
|
29 |
+
- WPML support via wpml-config.xml
|
30 |
+
|
31 |
+
**Included Translations:**
|
32 |
+
|
33 |
+
- English (default)
|
34 |
+
- No other translations yet.
|
35 |
+
|
36 |
+
Thanks in advance for your help on any translation efforts!
|
37 |
+
|
38 |
#### Multisite
|
39 |
|
40 |
+
- All features should work for each blog in multisite installations.
|
41 |
|
42 |
### Feedback
|
43 |
|
49 |
|
50 |
[Follow @anderly on Twitter](http://twitter.com/anderly) for updates on this and other plugins.
|
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.
|
64 |
|
65 |
### Changelog
|
66 |
|
67 |
+
##### 1.2
|
68 |
+
* Added new setting to control whether or not the double opt-in checkbox is checked/unchecked by default on the checkout page.
|
69 |
+
* Added new setting to control display location of the double opt-in checkbox (under billing info or order info)
|
70 |
+
* Small modification to append to MailChimp interest groups for existing users so that group settings are not lost for users who were already subscribed.
|
71 |
+
* Preparations for i18n (Internationalization) support. Several users have already asked and offered to translate the plugin into other languages. We had always planned on that, but now are making that a reality.
|
72 |
+
|
73 |
##### 1.1.3
|
74 |
* Minor action hook change since order meta (needed for MailChimp API call) is not yet available on 'woocommerce_new_order' hook
|
75 |
|
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.
|
13 |
* @package WooCommerce MailChimp
|
14 |
* @author Saint Systems
|
15 |
*/
|
@@ -47,6 +47,8 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
|
|
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
|
@@ -55,8 +57,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 |
// We would use the 'woocommerce_new_order' action but first name, last name and email address (order meta) is not yet available,
|
58 |
-
// so instead we use the '
|
59 |
-
add_action( '
|
60 |
|
61 |
// hook into woocommerce order status changed hook to handle the desired subscription event trigger
|
62 |
add_action( 'woocommerce_order_status_changed', array( &$this, 'order_status_changed' ), 10, 3 );
|
@@ -150,6 +152,7 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
|
|
150 |
* @return void
|
151 |
*/
|
152 |
function init_form_fields() {
|
|
|
153 |
|
154 |
if ( is_admin() ) {
|
155 |
|
@@ -196,7 +199,7 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
|
|
196 |
'groups' => array(
|
197 |
'title' => __( 'Groups', 'ss_wc_mailchimp' ),
|
198 |
'type' => 'text',
|
199 |
-
'description' => __( 'Optional: Comma
|
200 |
'default' => '',
|
201 |
),
|
202 |
'double_optin' => array(
|
@@ -211,7 +214,7 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
|
|
211 |
'label' => __( 'Display an Opt-In Field on Checkout', 'ss_wc_mailchimp' ),
|
212 |
'type' => 'checkbox',
|
213 |
'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' ),
|
214 |
-
'default' => 'no'
|
215 |
),
|
216 |
'opt_in_label' => array(
|
217 |
'title' => __( 'Opt-In Field Label', 'ss_wc_mailchimp' ),
|
@@ -219,8 +222,36 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
|
|
219 |
'description' => __( 'Optional: customize the label displayed next to the opt-in checkbox.', 'ss_wc_mailchimp' ),
|
220 |
'default' => __( 'Add me to the newsletter (we will never share your email).', 'ss_wc_mailchimp' ),
|
221 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
);
|
223 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
}
|
225 |
|
226 |
} // End init_form_fields()
|
@@ -330,15 +361,21 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
|
|
330 |
);
|
331 |
}
|
332 |
|
333 |
-
$vars = apply_filters( '
|
|
|
|
|
|
|
|
|
|
|
|
|
334 |
|
335 |
-
$retval = $api->listSubscribe( $listid, $email, $vars,
|
336 |
|
337 |
if ( $api->errorCode && $api->errorCode != 214 ) {
|
338 |
-
do_action( '
|
339 |
|
340 |
// Email admin
|
341 |
-
wp_mail( get_option('admin_email'), __( '
|
342 |
}
|
343 |
}
|
344 |
|
@@ -362,11 +399,17 @@ class SS_WC_Integration_MailChimp extends WC_Integration {
|
|
362 |
*/
|
363 |
function maybe_add_checkout_fields( $checkout_fields ) {
|
364 |
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
if ( 'yes' == $this->display_opt_in ) {
|
366 |
-
$checkout_fields[
|
367 |
'type' => 'checkbox',
|
368 |
'label' => esc_attr( $this->opt_in_label ),
|
369 |
-
'default' => true,
|
370 |
);
|
371 |
}
|
372 |
|
9 |
*
|
10 |
* @class SS_WC_Integration_MailChimp
|
11 |
* @extends WC_Integration
|
12 |
+
* @version 1.2
|
13 |
* @package WooCommerce MailChimp
|
14 |
* @author Saint Systems
|
15 |
*/
|
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->opt_in_checkbox_default_status = $this->get_option( 'opt_in_checkbox_default_status' );
|
51 |
+
$this->opt_in_checkbox_display_location = $this->get_option( 'opt_in_checkbox_display_location' );
|
52 |
$this->interest_groupings = $this->get_option( 'interest_groupings' );
|
53 |
|
54 |
// Hooks
|
57 |
add_action( 'woocommerce_update_options_integration_' . $this->id, array( $this, 'process_admin_options') );
|
58 |
|
59 |
// We would use the 'woocommerce_new_order' action but first name, last name and email address (order meta) is not yet available,
|
60 |
+
// so instead we use the 'woocommerce_thankyou' action hook which fires after the checkout process on the "thank you" page
|
61 |
+
add_action( 'woocommerce_thankyou', array( &$this, 'order_status_changed' ), 10, 1 );
|
62 |
|
63 |
// hook into woocommerce order status changed hook to handle the desired subscription event trigger
|
64 |
add_action( 'woocommerce_order_status_changed', array( &$this, 'order_status_changed' ), 10, 3 );
|
152 |
* @return void
|
153 |
*/
|
154 |
function init_form_fields() {
|
155 |
+
global $woocommerce;
|
156 |
|
157 |
if ( is_admin() ) {
|
158 |
|
199 |
'groups' => array(
|
200 |
'title' => __( 'Groups', 'ss_wc_mailchimp' ),
|
201 |
'type' => 'text',
|
202 |
+
'description' => __( 'Optional: Comma separated list of interest groups to which subscribers should be added.', 'ss_wc_mailchimp' ),
|
203 |
'default' => '',
|
204 |
),
|
205 |
'double_optin' => array(
|
214 |
'label' => __( 'Display an Opt-In Field on Checkout', 'ss_wc_mailchimp' ),
|
215 |
'type' => 'checkbox',
|
216 |
'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' ),
|
217 |
+
'default' => 'no',
|
218 |
),
|
219 |
'opt_in_label' => array(
|
220 |
'title' => __( 'Opt-In Field Label', 'ss_wc_mailchimp' ),
|
222 |
'description' => __( 'Optional: customize the label displayed next to the opt-in checkbox.', 'ss_wc_mailchimp' ),
|
223 |
'default' => __( 'Add me to the newsletter (we will never share your email).', 'ss_wc_mailchimp' ),
|
224 |
),
|
225 |
+
'opt_in_checkbox_default_status' => array(
|
226 |
+
'title' => __( 'Opt-In Checkbox Default Status', 'ss_wc_mailchimp' ),
|
227 |
+
'type' => 'select',
|
228 |
+
'description' => __( 'The default state of the opt-in checkbox.', 'ss_wc_mailchimp' ),
|
229 |
+
'default' => 'checked',
|
230 |
+
'options' => array( 'checked' => __( 'Checked', 'ss_wc_mailchimp' ), 'unchecked' => __( 'Unchecked', 'ss_wc_mailchimp' ) )
|
231 |
+
),
|
232 |
+
'opt_in_checkbox_display_location' => array(
|
233 |
+
'title' => __( 'Opt-In Checkbox Display Location', 'ss_wc_mailchimp' ),
|
234 |
+
'type' => 'select',
|
235 |
+
'description' => __( 'Where to display the opt-in checkbox on the checkout page (under Billing info or Order info).', 'ss_wc_mailchimp' ),
|
236 |
+
'default' => 'billing',
|
237 |
+
'options' => array( 'billing' => __( 'Billing', 'ss_wc_mailchimp' ), 'order' => __( 'Order', 'ss_wc_mailchimp' ) )
|
238 |
+
),
|
239 |
);
|
240 |
|
241 |
+
$woocommerce->add_inline_js("
|
242 |
+
jQuery('#woocommerce_mailchimp_display_opt_in').change(function(){
|
243 |
+
|
244 |
+
jQuery('#mainform [id^=woocommerce_mailchimp_opt_in]').closest('tr').hide('fast');
|
245 |
+
|
246 |
+
if ( jQuery(this).prop('checked') == true ) {
|
247 |
+
jQuery('#mainform [id^=woocommerce_mailchimp_opt_in]').closest('tr').show('fast');
|
248 |
+
} else {
|
249 |
+
jQuery('#mainform [id^=woocommerce_mailchimp_opt_in]').closest('tr').hide('fast');
|
250 |
+
}
|
251 |
+
|
252 |
+
}).change();
|
253 |
+
");
|
254 |
+
|
255 |
}
|
256 |
|
257 |
} // End init_form_fields()
|
361 |
);
|
362 |
}
|
363 |
|
364 |
+
$vars = apply_filters( 'ss_wc_mailchimp_subscribe_merge_vars', $merge_vars );
|
365 |
+
|
366 |
+
$email_type = 'html';
|
367 |
+
$double_optin = ( $this->double_optin == 'no' ? false : true );
|
368 |
+
$update_existing = true;
|
369 |
+
$replace_interests = false;
|
370 |
+
$send_welcome = false;
|
371 |
|
372 |
+
$retval = $api->listSubscribe( $listid, $email, $vars, $email_type, $double_optin, $update_existing, $replace_interests, $send_welcome );
|
373 |
|
374 |
if ( $api->errorCode && $api->errorCode != 214 ) {
|
375 |
+
do_action( 'ss_wc_mailchimp_subscribed', $email );
|
376 |
|
377 |
// Email admin
|
378 |
+
wp_mail( get_option('admin_email'), __( 'WooCommerce MailChimp subscription failed', 'ss_wc_mailchimp' ), '(' . $api->errorCode . ') ' . $api->errorMessage );
|
379 |
}
|
380 |
}
|
381 |
|
399 |
*/
|
400 |
function maybe_add_checkout_fields( $checkout_fields ) {
|
401 |
|
402 |
+
$opt_in_checkbox_display_location = $this->opt_in_checkbox_display_location;
|
403 |
+
|
404 |
+
if ( empty( $opt_in_checkbox_display_location ) ) {
|
405 |
+
$opt_in_checkbox_display_location = 'billing';
|
406 |
+
}
|
407 |
+
|
408 |
if ( 'yes' == $this->display_opt_in ) {
|
409 |
+
$checkout_fields[$opt_in_checkbox_display_location]['ss_wc_mailchimp_opt_in'] = array(
|
410 |
'type' => 'checkbox',
|
411 |
'label' => esc_attr( $this->opt_in_label ),
|
412 |
+
'default' => ( $this->opt_in_checkbox_default_status == 'checked' ? true : false ),
|
413 |
);
|
414 |
}
|
415 |
|
languages/woocommerce-mailchimp.pot
ADDED
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2014 WooCommerce MailChimp
|
2 |
+
# This file is distributed under the same license as the WooCommerce MailChimp package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce MailChimp 1.1.3\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/woocommerce-mailchimp\n"
|
7 |
+
"POT-Creation-Date: 2014-01-03 23:17:55+00:00\n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
|
12 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
+
|
15 |
+
#: classes/class-ss-wc-integration-mailchimp.php:31
|
16 |
+
#: classes/class-ss-wc-integration-mailchimp.php:350
|
17 |
+
msgid "MailChimp"
|
18 |
+
msgstr ""
|
19 |
+
|
20 |
+
#: classes/class-ss-wc-integration-mailchimp.php:32
|
21 |
+
msgid "MailChimp is a popular email marketing service."
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: classes/class-ss-wc-integration-mailchimp.php:82
|
25 |
+
msgid "MailChimp error: Please enter your api key <a href=\"%s\">here</a>"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: classes/class-ss-wc-integration-mailchimp.php:156
|
29 |
+
msgid "Select a list..."
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: classes/class-ss-wc-integration-mailchimp.php:156
|
33 |
+
msgid "Enter your key and save to see your lists"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: classes/class-ss-wc-integration-mailchimp.php:161
|
37 |
+
msgid "Enable/Disable"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: classes/class-ss-wc-integration-mailchimp.php:162
|
41 |
+
msgid "Enable MailChimp"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: classes/class-ss-wc-integration-mailchimp.php:168
|
45 |
+
msgid "Subscribe Event"
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: classes/class-ss-wc-integration-mailchimp.php:170
|
49 |
+
msgid "When should customers be subscribed to lists?"
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: classes/class-ss-wc-integration-mailchimp.php:173
|
53 |
+
msgid "Order Created"
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: classes/class-ss-wc-integration-mailchimp.php:174
|
57 |
+
msgid "Order Completed"
|
58 |
+
msgstr ""
|
59 |
+
|
60 |
+
#: classes/class-ss-wc-integration-mailchimp.php:178
|
61 |
+
msgid "API Key"
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#: classes/class-ss-wc-integration-mailchimp.php:180
|
65 |
+
msgid ""
|
66 |
+
"<a href=\"https://us2.admin.mailchimp.com/account/api/\" target=\"_blank"
|
67 |
+
"\">Login to mailchimp</a> to look up your api key."
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
+
#: classes/class-ss-wc-integration-mailchimp.php:184
|
71 |
+
msgid "Main List"
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: classes/class-ss-wc-integration-mailchimp.php:186
|
75 |
+
msgid "All customers will be added to this list."
|
76 |
+
msgstr ""
|
77 |
+
|
78 |
+
#: classes/class-ss-wc-integration-mailchimp.php:191
|
79 |
+
msgid "Group Name"
|
80 |
+
msgstr ""
|
81 |
+
|
82 |
+
#: classes/class-ss-wc-integration-mailchimp.php:193
|
83 |
+
msgid ""
|
84 |
+
"Optional: Enter the name of the group. Learn more about <a href=\"http://"
|
85 |
+
"mailchimp.com/features/groups\" target=\"_blank\">Groups</a>"
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: classes/class-ss-wc-integration-mailchimp.php:197
|
89 |
+
msgid "Groups"
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: classes/class-ss-wc-integration-mailchimp.php:199
|
93 |
+
msgid "Optional: Comma delimited list of interest groups to add the email to."
|
94 |
+
msgstr ""
|
95 |
+
|
96 |
+
#: classes/class-ss-wc-integration-mailchimp.php:203
|
97 |
+
msgid "Double Opt-In"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#: classes/class-ss-wc-integration-mailchimp.php:204
|
101 |
+
msgid "Enable Double Opt-In"
|
102 |
+
msgstr ""
|
103 |
+
|
104 |
+
#: classes/class-ss-wc-integration-mailchimp.php:206
|
105 |
+
msgid ""
|
106 |
+
"If enabled, customers will receive an email prompting them to confirm their "
|
107 |
+
"subscription to the list above."
|
108 |
+
msgstr ""
|
109 |
+
|
110 |
+
#: classes/class-ss-wc-integration-mailchimp.php:210
|
111 |
+
msgid "Display Opt-In Field"
|
112 |
+
msgstr ""
|
113 |
+
|
114 |
+
#: classes/class-ss-wc-integration-mailchimp.php:211
|
115 |
+
msgid "Display an Opt-In Field on Checkout"
|
116 |
+
msgstr ""
|
117 |
+
|
118 |
+
#: classes/class-ss-wc-integration-mailchimp.php:213
|
119 |
+
msgid ""
|
120 |
+
"If enabled, customers will be presented with a \"Opt-in\" checkbox during "
|
121 |
+
"checkout and will only be added to the list above if they opt-in."
|
122 |
+
msgstr ""
|
123 |
+
|
124 |
+
#: classes/class-ss-wc-integration-mailchimp.php:217
|
125 |
+
msgid "Opt-In Field Label"
|
126 |
+
msgstr ""
|
127 |
+
|
128 |
+
#: classes/class-ss-wc-integration-mailchimp.php:219
|
129 |
+
msgid "Optional: customize the label displayed next to the opt-in checkbox."
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
#: classes/class-ss-wc-integration-mailchimp.php:220
|
133 |
+
msgid "Add me to the newsletter (we will never share your email)."
|
134 |
+
msgstr ""
|
135 |
+
|
136 |
+
#: classes/class-ss-wc-integration-mailchimp.php:243
|
137 |
+
msgid "Unable to load lists() from MailChimp: (%s) %s"
|
138 |
+
msgstr ""
|
139 |
+
|
140 |
+
#: classes/class-ss-wc-integration-mailchimp.php:279
|
141 |
+
msgid "Unable to load listInterestGroupings() from MailChimp: (%s) %s"
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#: classes/class-ss-wc-integration-mailchimp.php:341
|
145 |
+
msgid "Email subscription failed (Mailchimp)"
|
146 |
+
msgstr ""
|
147 |
+
|
148 |
+
#: classes/class-ss-wc-integration-mailchimp.php:351
|
149 |
+
msgid ""
|
150 |
+
"Enter your MailChimp settings below to control how WooCommerce integrates "
|
151 |
+
"with your MailChimp lists."
|
152 |
+
msgstr ""
|
153 |
+
|
154 |
+
#: woocommerce-mailchimp.php:41
|
155 |
+
msgid "Settings"
|
156 |
+
msgstr ""
|
157 |
+
|
158 |
+
#. Plugin Name of the plugin/theme
|
159 |
+
msgid "WooCommerce MailChimp"
|
160 |
+
msgstr ""
|
161 |
+
|
162 |
+
#. Plugin URI of the plugin/theme
|
163 |
+
msgid "http://anderly.com/woocommerce-mailchimp"
|
164 |
+
msgstr ""
|
165 |
+
|
166 |
+
#. Description of the plugin/theme
|
167 |
+
msgid ""
|
168 |
+
"WooCommerce MailChimp provides simple MailChimp integration for WooCommerce."
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#. Author of the plugin/theme
|
172 |
+
msgid "Adam Anderly"
|
173 |
+
msgstr ""
|
174 |
+
|
175 |
+
#. Author URI of the plugin/theme
|
176 |
+
msgid "http://anderly.com"
|
177 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -3,18 +3,16 @@ Contributors: anderly, saintsystems
|
|
3 |
Tags: woocommerce, mailchimp
|
4 |
Requires at least: 3.6
|
5 |
Tested up to: 3.8
|
6 |
-
Stable tag: 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 |
-
|
16 |
-
|
17 |
-
Double opt-in option for anti-spam compliance.
|
18 |
|
19 |
### Features ###
|
20 |
|
@@ -27,9 +25,29 @@ Double opt-in option for anti-spam compliance.
|
|
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
|
33 |
|
34 |
### Feedback ###
|
35 |
|
@@ -41,13 +59,6 @@ If you need help, have problems, want to leave feedback or want to provide const
|
|
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.
|
@@ -67,6 +78,12 @@ Thanks in advance for your help on any translation efforts!
|
|
67 |
|
68 |
== Changelog ==
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
= 1.1.3 =
|
71 |
* Minor action hook change since order meta (needed for MailChimp API call) is not yet available on 'woocommerce_new_order' hook
|
72 |
|
3 |
Tags: woocommerce, mailchimp
|
4 |
Requires at least: 3.6
|
5 |
Tested up to: 3.8
|
6 |
+
Stable tag: 1.2
|
7 |
License: GPLv3
|
8 |
|
9 |
+
Simple and flexible MailChimp integration for WooCommerce.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
WooCommerce MailChimp provides simple and flexible MailChimp integration for WooCommerce.
|
14 |
|
15 |
+
Automatically subscribe customers to a designated MailChimp list and, optionally, MailChimp interest groups upon order creation or order completion. This can be done quietly or based on the user's consent with several opt-in settings that support international opt-in laws.
|
|
|
|
|
16 |
|
17 |
### Features ###
|
18 |
|
25 |
|
26 |
- Set one or more interest groups to add users to based on the selected MailChimp list.
|
27 |
|
28 |
+
#### Opt-In Settings ####
|
29 |
+
|
30 |
+
- MailChimp double opt-in support (control whether a double opt-in email is sent to the customer)
|
31 |
+
- Optionally, display an opt-in checkbox on the checkout page (this is required in some countries)
|
32 |
+
- Control the label displayed next to the opt-in checkbox
|
33 |
+
- Control whether or not the opt-in checkbox is checked or unchecked by default
|
34 |
+
- Control the placement of the opt-in checkbox on the checkout page (under billing info or order info)
|
35 |
+
|
36 |
+
#### Translation Support ####
|
37 |
+
|
38 |
+
- i18n ready with included woocommerce-mailchimp.pot file
|
39 |
+
- WPML support via wpml-config.xml
|
40 |
+
|
41 |
+
**Included Translations:**
|
42 |
+
|
43 |
+
- English (default)
|
44 |
+
- No other translations yet.
|
45 |
+
|
46 |
+
Thanks in advance for your help on any translation efforts!
|
47 |
+
|
48 |
#### Multisite ####
|
49 |
|
50 |
+
- All features should work for each blog in multisite installations.
|
51 |
|
52 |
### Feedback ###
|
53 |
|
59 |
|
60 |
[Follow @anderly on Twitter](http://twitter.com/anderly) for updates on this and other plugins.
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
== Installation ==
|
63 |
|
64 |
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.
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 1.2 =
|
82 |
+
* Added new setting to control whether or not the double opt-in checkbox is checked/unchecked by default on the checkout page.
|
83 |
+
* Added new setting to control display location of the double opt-in checkbox (under billing info or order info)
|
84 |
+
* Small modification to append to MailChimp interest groups for existing users so that group settings are not lost for users who were already subscribed.
|
85 |
+
* Preparations for i18n (Internationalization) support. Several users have already asked and offered to translate the plugin into other languages. We had always planned on that, but now are making that a reality.
|
86 |
+
|
87 |
= 1.1.3 =
|
88 |
* Minor action hook change since order meta (needed for MailChimp API call) is not yet available on 'woocommerce_new_order' hook
|
89 |
|
woocommerce-mailchimp.php
CHANGED
@@ -1,18 +1,20 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
Plugin Name: WooCommerce MailChimp
|
4 |
-
Plugin URI: http://anderly.com/woocommerce-mailchimp
|
5 |
-
Description: WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
|
6 |
-
|
7 |
-
Author:
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
16 |
|
17 |
add_action( 'plugins_loaded', 'woocommerce_mailchimp_init', 0 );
|
18 |
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* Plugin Name: WooCommerce MailChimp
|
4 |
+
* Plugin URI: http://anderly.com/woocommerce-mailchimp
|
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 |
+
*
|
12 |
+
* Copyright: � 2013 Adam Anderly
|
13 |
+
* License: GNU General Public License v3.0
|
14 |
+
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
+
*
|
16 |
+
* MailChimp Docs: http://apidocs.mailchimp.com/
|
17 |
+
*/
|
18 |
|
19 |
add_action( 'plugins_loaded', 'woocommerce_mailchimp_init', 0 );
|
20 |
|
wpml-config.xml
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<wpml-config>
|
2 |
+
<admin-texts>
|
3 |
+
<key name="woocommerce_mailchimp_settings">
|
4 |
+
<key name="opt_in_label" />
|
5 |
+
</key>
|
6 |
+
</admin-texts>
|
7 |
+
</wpml-config>
|