MailChimp for WooCommerce - Version 1.0.6

Version Description

Download this release

Release Info

Developer MailChimp
Plugin Icon wp plugin MailChimp for WooCommerce
Version 1.0.6
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.6

Files changed (69) hide show
  1. LICENSE.txt +0 -0
  2. README.md +19 -8
  3. README.txt +0 -0
  4. admin/class-mailchimp-woocommerce-admin.php +5 -1
  5. admin/css/mailchimp-woocommerce-admin.css +0 -0
  6. admin/index.php +0 -0
  7. admin/js/mailchimp-woocommerce-admin.js +0 -0
  8. admin/partials/mailchimp-woocommerce-admin-tabs.php +0 -0
  9. admin/partials/tabs/api_key.php +0 -0
  10. admin/partials/tabs/campaign_defaults.php +0 -0
  11. admin/partials/tabs/errors/missing_api_key.php +0 -0
  12. admin/partials/tabs/errors/missing_campaign_defaults.php +0 -0
  13. admin/partials/tabs/errors/missing_list.php +0 -0
  14. admin/partials/tabs/errors/missing_store.php +0 -0
  15. admin/partials/tabs/errors/not_ready_for_sync.php +0 -0
  16. admin/partials/tabs/newsletter_settings.php +0 -0
  17. admin/partials/tabs/notices.php +0 -0
  18. admin/partials/tabs/store_info.php +0 -0
  19. admin/partials/tabs/store_sync.php +0 -0
  20. admin/partials/tabs/success/re-sync-started.php +0 -0
  21. changelog.md +5 -0
  22. includes/api/assets/class-mailchimp-address.php +0 -0
  23. includes/api/assets/class-mailchimp-cart.php +0 -0
  24. includes/api/assets/class-mailchimp-customer.php +0 -0
  25. includes/api/assets/class-mailchimp-line-item.php +0 -0
  26. includes/api/assets/class-mailchimp-order.php +0 -0
  27. includes/api/assets/class-mailchimp-product-variation.php +0 -0
  28. includes/api/assets/class-mailchimp-product.php +0 -0
  29. includes/api/assets/class-mailchimp-store.php +0 -0
  30. includes/api/class-mailchimp-api.php +0 -0
  31. includes/api/class-mailchimp-woocommerce-api.php +0 -0
  32. includes/api/class-mailchimp-woocommerce-create-list-submission.php +0 -0
  33. includes/api/class-mailchimp-woocommerce-transform-orders.php +0 -0
  34. includes/api/class-mailchimp-woocommerce-transform-products.php +0 -0
  35. includes/api/errors/class-mailchimp-error.php +0 -0
  36. includes/api/errors/class-mailchimp-server-error.php +0 -0
  37. includes/api/helpers/class-mailchimp-woocommerce-api-currency-codes.php +0 -0
  38. includes/api/helpers/class-mailchimp-woocommerce-api-locales.php +0 -0
  39. includes/class-mailchimp-woocommerce-activator.php +0 -0
  40. includes/class-mailchimp-woocommerce-deactivator.php +0 -0
  41. includes/class-mailchimp-woocommerce-i18n.php +0 -0
  42. includes/class-mailchimp-woocommerce-loader.php +0 -0
  43. includes/class-mailchimp-woocommerce-newsletter.php +0 -0
  44. includes/class-mailchimp-woocommerce-options.php +0 -0
  45. includes/class-mailchimp-woocommerce-service.php +0 -0
  46. includes/class-mailchimp-woocommerce.php +0 -0
  47. includes/index.php +0 -0
  48. includes/processes/class-mailchimp-woocommerce-abstract-sync.php +0 -0
  49. includes/processes/class-mailchimp-woocommerce-cart-update.php +0 -0
  50. includes/processes/class-mailchimp-woocommerce-process-orders.php +0 -0
  51. includes/processes/class-mailchimp-woocommerce-process-products.php +0 -0
  52. includes/processes/class-mailchimp-woocommerce-single-order.php +0 -0
  53. includes/processes/class-mailchimp-woocommerce-single-product.php +0 -0
  54. includes/slack/Logger.php +0 -0
  55. includes/vendor/queue.php +0 -0
  56. includes/vendor/queue/classes/cli/queue-command.php +0 -0
  57. includes/vendor/queue/classes/worker/wp-http-worker.php +0 -0
  58. includes/vendor/queue/classes/worker/wp-worker.php +0 -0
  59. includes/vendor/queue/classes/wp-job.php +0 -0
  60. includes/vendor/queue/classes/wp-queue.php +0 -0
  61. index.php +0 -0
  62. languages/mailchimp-woocommerce.pot +0 -0
  63. mailchimp-woocommerce.php +7 -7
  64. public/class-mailchimp-woocommerce-public.php +0 -0
  65. public/css/mailchimp-woocommerce-public.css +0 -0
  66. public/index.php +0 -0
  67. public/js/mailchimp-woocommerce-public.js +0 -0
  68. public/partials/mailchimp-woocommerce-public-display.php +0 -0
  69. uninstall.php +0 -0
LICENSE.txt CHANGED
File without changes
README.md CHANGED
@@ -6,19 +6,30 @@ In this article, you’ll learn how to connect MailChimp for WooCommerce.
6
 
7
  **Here are some things to know before you begin this process.**
8
 
9
- - We recommend you use this plugin in a staging environment before installing on production servers.
10
- - This process requires an API Key from your MailChimp account. If you aren’t sure how to generate a MailChimp API Key, read [About API Keys.](http://kb.mailchimp.com/integrations/api-integrations/about-api-keys)
11
- - This plugin supports MailChimp’s [Abandoned Cart Automation](http://kb.mailchimp.com/automation/create-an-abandoned-cart-workflow) feature.
12
- - WooCommerce customers who haven't signed up for marketing emails will appear in the Transactional portion of your list, and cannot be exported. See [View or Export a List.](http://kb.mailchimp.com/lists/managing-subscribers/view-or-export-a-list)
13
- - To switch lists or accounts, you must deactivate and delete the plugin, then re-install it.
14
- - In e-commerce reports and on subscriber profile pages, product variants will display as the parent product.
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  #Task Roadmap#
18
  **Here’s a brief overview of this multi-step process.**
19
 
20
  - Install the plugin on your WordPress Admin site.
21
- - Connect the plugin with your MailChimp API Key, and configure your list settings to complete the data sync process.
 
22
 
23
  #Install the Plugin#
24
  **To install the plugin, follow these steps.**
@@ -45,7 +56,7 @@ After you activate the plugin, you’ll be taken to the **Settings** page, where
45
  #Configure and Sync#
46
  **To configure your MailChimp settings for WooCommerce customers and sync them to MailChimp, follow these steps.**
47
 
48
- 1) On the **Connect** tab, paste your MailChimp API key into the field, choose whether or not you want to send debugging logs to MailChimp, and click **Save all changes**.
49
 
50
  ![API key] (https://cloud.githubusercontent.com/assets/19805049/18877771/3fca90e8-849c-11e6-9e3a-161a7b3936dd.png)
51
 
6
 
7
  **Here are some things to know before you begin this process.**
8
 
9
+ - For the most up-to-date install instructions, read [Connect or Disconnect MailChimp for WooCommerce](http://kb.mailchimp.com/integrations/e-commerce/connect-or-disconnect-mailchimp-for-woocommerce).
 
 
 
 
 
10
 
11
+ - This plugin requires you to have the [WooCommerce plugin](https://wordpress.org/plugins/woocommerce) already installed and activated in WordPress.
12
+
13
+ - Your host environment must meet [WooCommerce's minimum requirements](https://docs.woocommerce.com/document/server-requirements), including PHP 5.6 or greater.
14
+
15
+ - We recommend you use this plugin in a staging environment before installing it on production servers.
16
+
17
+ - MailChimp for WooCommerce syncs the customer’s first name, last name, email address, and orders.
18
+
19
+ - WooCommerce customers who haven't signed up for marketing emails will appear in the Transactional portion of your list, and cannot be exported.
20
+
21
+ #A Note for Current WooCommerce Integration Users#
22
+
23
+ This plugin supports our most powerful API 3.0 features, and is intended for users who have not yet integrated their WooCommerce stores with MailChimp. If your WooCommerce store is already integrated with MailChimp via an integration that runs on an older version of MailChimp’s API, consider your current sales volume before you make any changes that might disrupt business.
24
+
25
+ You can run this new integration at the same time as your current WooCommerce integration for MailChimp. However, data from the older integration will display separately in subscriber profiles, and can’t be used with e-commerce features that require API 3.0.
26
 
27
  #Task Roadmap#
28
  **Here’s a brief overview of this multi-step process.**
29
 
30
  - Install the plugin on your WordPress Admin site.
31
+ - Connect the plugin with your MailChimp API Key.
32
+ - Configure your list settings to complete the data sync process.
33
 
34
  #Install the Plugin#
35
  **To install the plugin, follow these steps.**
56
  #Configure and Sync#
57
  **To configure your MailChimp settings for WooCommerce customers and sync them to MailChimp, follow these steps.**
58
 
59
+ 1) On the **Connect** tab, paste your MailChimp API key into the field, choose whether or not you want to send debugging logs to MailChimp, and click **Save all changes**. To learn how to generate a MailChimp API Key, read [About API Keys](http://kb.mailchimp.com/integrations/api-integrations/about-api-keys).
60
 
61
  ![API key] (https://cloud.githubusercontent.com/assets/19805049/18877771/3fca90e8-849c-11e6-9e3a-161a7b3936dd.png)
62
 
README.txt CHANGED
File without changes
admin/class-mailchimp-woocommerce-admin.php CHANGED
@@ -296,7 +296,7 @@ class MailChimp_Woocommerce_Admin extends MailChimp_Woocommerce_Options {
296
  $data = array(
297
 
298
  // store basics
299
- 'store_name' => isset($input['store_name']) ? $input['store_name'] : get_option('blogname'),
300
  'store_street' => isset($input['store_street']) ? $input['store_street'] : false,
301
  'store_city' => isset($input['store_city']) ? $input['store_city'] : false,
302
  'store_state' => isset($input['store_state']) ? $input['store_state'] : false,
@@ -322,6 +322,10 @@ class MailChimp_Woocommerce_Admin extends MailChimp_Woocommerce_Options {
322
  add_settings_error('mailchimp_store_settings', '', 'As part of the MailChimp Terms of Use, we require a valid phone number for your store.');
323
  }
324
 
 
 
 
 
325
  $this->setData('validation.store_info', false);
326
  return array();
327
  }
296
  $data = array(
297
 
298
  // store basics
299
+ 'store_name' => trim((isset($input['store_name']) ? $input['store_name'] : get_option('blogname'))),
300
  'store_street' => isset($input['store_street']) ? $input['store_street'] : false,
301
  'store_city' => isset($input['store_city']) ? $input['store_city'] : false,
302
  'store_state' => isset($input['store_state']) ? $input['store_state'] : false,
322
  add_settings_error('mailchimp_store_settings', '', 'As part of the MailChimp Terms of Use, we require a valid phone number for your store.');
323
  }
324
 
325
+ if (empty($data['store_name'])) {
326
+ add_settings_error('mailchimp_store_settings', '', 'MailChimp for WooCommerce requires a Store Name to connect your store.');
327
+ }
328
+
329
  $this->setData('validation.store_info', false);
330
  return array();
331
  }
admin/css/mailchimp-woocommerce-admin.css CHANGED
File without changes
admin/index.php CHANGED
File without changes
admin/js/mailchimp-woocommerce-admin.js CHANGED
File without changes
admin/partials/mailchimp-woocommerce-admin-tabs.php CHANGED
File without changes
admin/partials/tabs/api_key.php CHANGED
File without changes
admin/partials/tabs/campaign_defaults.php CHANGED
File without changes
admin/partials/tabs/errors/missing_api_key.php CHANGED
File without changes
admin/partials/tabs/errors/missing_campaign_defaults.php CHANGED
File without changes
admin/partials/tabs/errors/missing_list.php CHANGED
File without changes
admin/partials/tabs/errors/missing_store.php CHANGED
File without changes
admin/partials/tabs/errors/not_ready_for_sync.php CHANGED
File without changes
admin/partials/tabs/newsletter_settings.php CHANGED
File without changes
admin/partials/tabs/notices.php CHANGED
File without changes
admin/partials/tabs/store_info.php CHANGED
File without changes
admin/partials/tabs/store_sync.php CHANGED
File without changes
admin/partials/tabs/success/re-sync-started.php CHANGED
File without changes
changelog.md CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  ** 1.0.3 **
2
  * fixed cart posts on dollar amounts greater than 1000
3
 
1
+ ** 1.0.6 **
2
+ * fixed conflict with the plugin updater where the class could not be loaded correctly.
3
+ * fixed error validation for store name.
4
+ * fixed cross device abandoned cart url's
5
+
6
  ** 1.0.3 **
7
  * fixed cart posts on dollar amounts greater than 1000
8
 
includes/api/assets/class-mailchimp-address.php CHANGED
File without changes
includes/api/assets/class-mailchimp-cart.php CHANGED
File without changes
includes/api/assets/class-mailchimp-customer.php CHANGED
File without changes
includes/api/assets/class-mailchimp-line-item.php CHANGED
File without changes
includes/api/assets/class-mailchimp-order.php CHANGED
File without changes
includes/api/assets/class-mailchimp-product-variation.php CHANGED
File without changes
includes/api/assets/class-mailchimp-product.php CHANGED
File without changes
includes/api/assets/class-mailchimp-store.php CHANGED
File without changes
includes/api/class-mailchimp-api.php CHANGED
File without changes
includes/api/class-mailchimp-woocommerce-api.php CHANGED
File without changes
includes/api/class-mailchimp-woocommerce-create-list-submission.php CHANGED
File without changes
includes/api/class-mailchimp-woocommerce-transform-orders.php CHANGED
File without changes
includes/api/class-mailchimp-woocommerce-transform-products.php CHANGED
File without changes
includes/api/errors/class-mailchimp-error.php CHANGED
File without changes
includes/api/errors/class-mailchimp-server-error.php CHANGED
File without changes
includes/api/helpers/class-mailchimp-woocommerce-api-currency-codes.php CHANGED
File without changes
includes/api/helpers/class-mailchimp-woocommerce-api-locales.php CHANGED
File without changes
includes/class-mailchimp-woocommerce-activator.php CHANGED
File without changes
includes/class-mailchimp-woocommerce-deactivator.php CHANGED
File without changes
includes/class-mailchimp-woocommerce-i18n.php CHANGED
File without changes
includes/class-mailchimp-woocommerce-loader.php CHANGED
File without changes
includes/class-mailchimp-woocommerce-newsletter.php CHANGED
File without changes
includes/class-mailchimp-woocommerce-options.php CHANGED
File without changes
includes/class-mailchimp-woocommerce-service.php CHANGED
File without changes
includes/class-mailchimp-woocommerce.php CHANGED
File without changes
includes/index.php CHANGED
File without changes
includes/processes/class-mailchimp-woocommerce-abstract-sync.php CHANGED
File without changes
includes/processes/class-mailchimp-woocommerce-cart-update.php CHANGED
File without changes
includes/processes/class-mailchimp-woocommerce-process-orders.php CHANGED
File without changes
includes/processes/class-mailchimp-woocommerce-process-products.php CHANGED
File without changes
includes/processes/class-mailchimp-woocommerce-single-order.php CHANGED
File without changes
includes/processes/class-mailchimp-woocommerce-single-product.php CHANGED
File without changes
includes/slack/Logger.php CHANGED
File without changes
includes/vendor/queue.php CHANGED
File without changes
includes/vendor/queue/classes/cli/queue-command.php CHANGED
File without changes
includes/vendor/queue/classes/worker/wp-http-worker.php CHANGED
File without changes
includes/vendor/queue/classes/worker/wp-worker.php CHANGED
File without changes
includes/vendor/queue/classes/wp-job.php CHANGED
File without changes
includes/vendor/queue/classes/wp-queue.php CHANGED
File without changes
index.php CHANGED
File without changes
languages/mailchimp-woocommerce.pot CHANGED
File without changes
mailchimp-woocommerce.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: MailChimp for WooCommerce
17
  * Plugin URI: https://mailchimp.com/connect-your-store/
18
  * Description: MailChimp - WooCommerce plugin
19
- * Version: 1.0.5
20
  * Author: MailChimp
21
  * Author URI: https://mailchimp.com
22
  * License: GPL-2.0+
@@ -37,7 +37,7 @@ function mailchimp_environment_variables() {
37
  return (object) array(
38
  'repo' => 'master',
39
  'environment' => 'production',
40
- 'version' => '1.0.5',
41
  'slack_token' => false,
42
  'slack_channel' => 'mc-woo',
43
  );
@@ -190,13 +190,13 @@ function run_mailchimp_plugin_updater() {
190
  if (!class_exists('PucFactory')) {
191
  require plugin_dir_path( __FILE__ ) . 'includes/plugin-update-checker/plugin-update-checker.php';
192
  }
193
-
194
- $env = mailchimp_environment_variables();
195
-
196
  /** @var \PucGitHubChecker_3_1 $checker */
197
  $updater = PucFactory::getLatestClassVersion('PucGitHubChecker');
198
- $checker = new $updater('https://github.com/mailchimp/mc-woocommerce/', __FILE__, $env->repo, 1);
199
- $checker->handleManualCheck();
 
 
 
200
  }
201
 
202
  /**
16
  * Plugin Name: MailChimp for WooCommerce
17
  * Plugin URI: https://mailchimp.com/connect-your-store/
18
  * Description: MailChimp - WooCommerce plugin
19
+ * Version: 1.0.6
20
  * Author: MailChimp
21
  * Author URI: https://mailchimp.com
22
  * License: GPL-2.0+
37
  return (object) array(
38
  'repo' => 'master',
39
  'environment' => 'production',
40
+ 'version' => '1.0.6',
41
  'slack_token' => false,
42
  'slack_channel' => 'mc-woo',
43
  );
190
  if (!class_exists('PucFactory')) {
191
  require plugin_dir_path( __FILE__ ) . 'includes/plugin-update-checker/plugin-update-checker.php';
192
  }
 
 
 
193
  /** @var \PucGitHubChecker_3_1 $checker */
194
  $updater = PucFactory::getLatestClassVersion('PucGitHubChecker');
195
+ if (class_exists($updater)) {
196
+ $env = mailchimp_environment_variables();
197
+ $checker = new $updater('https://github.com/mailchimp/mc-woocommerce/', __FILE__, $env->repo, 1);
198
+ $checker->handleManualCheck();
199
+ }
200
  }
201
 
202
  /**
public/class-mailchimp-woocommerce-public.php CHANGED
File without changes
public/css/mailchimp-woocommerce-public.css CHANGED
File without changes
public/index.php CHANGED
File without changes
public/js/mailchimp-woocommerce-public.js CHANGED
File without changes
public/partials/mailchimp-woocommerce-public-display.php CHANGED
File without changes
uninstall.php CHANGED
File without changes