MailChimp for WooCommerce - Version 2.5.0

Version Description

Download this release

Release Info

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

Code changes from version 2.4.7 to 2.5.0

CHANGELOG.txt CHANGED
@@ -1,4 +1,7 @@
1
  == Changelog ==
 
 
 
2
  = 2.4.7 =
3
  * fix cart items with no price on product
4
  * fix admin note issue on login
1
  == Changelog ==
2
+ = 2.5 =
3
+ * interface reskin
4
+ * fix for fatal error on disabled WoooCommerce admin
5
  = 2.4.7 =
6
  * fix cart items with no price on product
7
  * fix admin note issue on login
README.txt CHANGED
@@ -3,11 +3,11 @@ Contributors: ryanhungate, Mailchimp
3
  Tags: ecommerce,email,workflows,mailchimp
4
  Donate link: https://mailchimp.com
5
  Requires at least: 4.9
6
- Tested up to: 5.5
7
- Stable tag: 2.4.7
8
  Requires PHP: 7.0
9
  WC requires at least: 3.5
10
- WC tested up to: 4.5
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
  Connect your store to your Mailchimp audience to track sales, create targeted emails, send abandoned cart emails, and more.
@@ -77,9 +77,10 @@ At this time, the synchronization of product categories from WooCommerce to Mail
77
  If you are unable to sync or connect with Mailchimp, you can open a ticket on our [Github plugin page](https://github.com/mailchimp/mc-woocommerce/issues). Please provide the version of the plugin and PHP you're using, any fatal errors in the WooCommerce logs (WooCommerce -> Status -> Logs) you're seeing, along with relevant information to the problem you're experiencing.
78
 
79
  == Changelog ==
80
- = 2.4.7 =
81
- * fix cart items with no price on product
82
- * fix admin note issue on login
 
83
 
84
  [Historical Changelog](https://raw.githubusercontent.com/mailchimp/mc-woocommerce/master/CHANGELOG.txt)
85
 
3
  Tags: ecommerce,email,workflows,mailchimp
4
  Donate link: https://mailchimp.com
5
  Requires at least: 4.9
6
+ Tested up to: 5.6
7
+ Stable tag: 2.5.0
8
  Requires PHP: 7.0
9
  WC requires at least: 3.5
10
+ WC tested up to: 4.9
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
  Connect your store to your Mailchimp audience to track sales, create targeted emails, send abandoned cart emails, and more.
77
  If you are unable to sync or connect with Mailchimp, you can open a ticket on our [Github plugin page](https://github.com/mailchimp/mc-woocommerce/issues). Please provide the version of the plugin and PHP you're using, any fatal errors in the WooCommerce logs (WooCommerce -> Status -> Logs) you're seeing, along with relevant information to the problem you're experiencing.
78
 
79
  == Changelog ==
80
+ = 2.5 =
81
+ * interface reskin
82
+ * fix for fatal error on disabled WoooCommerce admin
83
+ * tested up to 4.9
84
 
85
  [Historical Changelog](https://raw.githubusercontent.com/mailchimp/mc-woocommerce/master/CHANGELOG.txt)
86
 
admin/class-mailchimp-woocommerce-admin.php CHANGED
@@ -108,7 +108,6 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
108
  */
109
  public function enqueue_styles($hook) {
110
  wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/mailchimp-woocommerce-admin.css', array(), $this->version.'.21', 'all' );
111
- wp_enqueue_style( $this->plugin_name . 'checkbox', plugin_dir_url( __FILE__ ) . 'css/checkbox.min.css', array(), $this->version, 'all' );
112
 
113
  if ( strpos($hook, 'page_mailchimp-woocommerce') !== false ) {
114
  if ( get_bloginfo( 'version' ) < '5.3') {
@@ -126,6 +125,10 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
126
  */
127
  public function enqueue_scripts($hook) {
128
  if ( strpos($hook, 'page_mailchimp-woocommerce') !== false ) {
 
 
 
 
129
  wp_register_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/mailchimp-woocommerce-admin.js', array( 'jquery', 'swal' ), $this->version.'.21', false );
130
  wp_localize_script(
131
  $this->plugin_name,
@@ -137,9 +140,21 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
137
  'log_delete_subtitle' => __('You will not be able to revert.', 'mailchimp-for-woocommerce'),
138
  'log_delete_confirm' => __('Yes, delete it!', 'mailchimp-for-woocommerce'),
139
  'no_cancel' => __('No, cancel!', 'mailchimp-for-woocommerce'),
 
140
  'store_disconnect_subtitle' => __('You are about to disconnect your store from Mailchimp.', 'mailchimp-for-woocommerce'),
141
  'store_disconnect_confirm' => __('Yes, disconnect.', 'mailchimp-for-woocommerce'),
 
 
 
 
 
 
 
 
 
 
142
  ),
 
143
  )
144
  );
145
  wp_enqueue_script( $this->plugin_name);
@@ -243,7 +258,8 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
243
  if ($pagenow == 'admin.php' && isset($_GET) && isset($_GET['page']) && 'mailchimp-woocommerce' === $_GET['page']) {
244
  $this->handle_abandoned_cart_table();
245
  $this->update_db_check();
246
- if (get_option('mailchimp-woocommerce-sync.initial_sync') == 1 && get_option('mailchimp-woocommerce-sync.completed_at') > 0 ) {
 
247
  $this->mailchimp_show_initial_sync_message();
248
  }
249
  if (isset($_GET['log_removed']) && $_GET['log_removed'] == "1") {
@@ -258,69 +274,20 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
258
  */
259
  public function initial_notice() {
260
  if (!mailchimp_is_configured()) {
261
- // If WC_Admin_Notes doesn't exist, show normal wordpress admin notice...
262
- if ( ! class_exists( '\Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes' ) ) {
263
- $class = 'notice notice-warning is-dismissible';
264
- $message = sprintf(
265
- /* translators: Placeholders %1$s - opening strong HTML tag, %2$s - closing strong HTML tag, %3$s - opening link HTML tag, %4$s - closing link HTML tag */
266
- esc_html__(
267
- '%1$sMailchimp for Woocommerce%2$s is not yet connected to a Mailchimp account. To complete the connection, %3$svisit the plugin settings page%4$s.',
268
- 'mailchimp-for-woocommerce'
269
- ),
270
- '<strong>',
271
- '</strong>',
272
- '<a href="' . admin_url( 'admin.php?page=') . $this->plugin_name . '">',
273
- '</a>'
274
- );
275
- printf( '<div class="%1$s"><p>%2$s</p></div>', $class, $message );
276
- }
277
- // else show the WooCoomerce admin inbox note.
278
- else {
279
- if ( ! class_exists( 'WC_Data_Store' ) ) {
280
- return;
281
- }
282
-
283
- $data_store = WC_Data_Store::load( 'admin-note' );
284
-
285
- // First, see if we've already created this kind of note so we don't do it again.
286
- $note_ids = $data_store->get_notes_with_name( 'mailchimp-for-woocommerce-incomplete-install' );
287
- foreach( (array) $note_ids as $note_id ) {
288
- $note = \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes::get_note( $note_id );
289
- $content_data = $note->get_content_data();
290
- if ( property_exists( $content_data, 'getting_started' ) ) {
291
- return;
292
- }
293
- }
294
-
295
- // Otherwise, add the note
296
- $activated_time = current_time( 'timestamp', 0 );
297
- $activated_time_formatted = date( 'F jS', $activated_time );
298
- $note = new \Automattic\WooCommerce\Admin\Notes\WC_Admin_Note();
299
- $note->set_title( __( 'Mailchimp For WooCommerce', 'mailchimp-for-woocommerce' ) );
300
- $note->set_content(
301
- esc_html__(
302
- 'Plugin is not yet connected to a Mailchimp account. To complete the connection, open the settings page.',
303
- 'mailchimp-for-woocommerce'
304
- )
305
- );
306
- $note->set_content_data( (object) array(
307
- 'getting_started' => true,
308
- 'activated' => $activated_time,
309
- 'activated_formatted' => $activated_time_formatted,
310
- ) );
311
- $note->set_type( \Automattic\WooCommerce\Admin\Notes\WC_Admin_Note::E_WC_ADMIN_NOTE_WARNING );
312
- $note->set_name( 'mailchimp-for-woocommerce-incomplete-install' );
313
- $note->set_source( 'mailchimp-for-woocommerce' );
314
- if (method_exists($note, 'set_layout')) $note->set_layout('plain');
315
- if (method_exists($note, 'set_image')) $note->set_image('');
316
- $note->add_action(
317
- 'settings',
318
- __( 'Open Settings', 'mailchimp-for-woocommerce' ),
319
- admin_url( 'admin.php?page=') . $this->plugin_name
320
- );
321
- $note->save();
322
- }
323
- }
324
  }
325
 
326
  /**
@@ -565,7 +532,8 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
565
  }
566
 
567
  if (get_site_transient('mailchimp_disconnecting_store')) {
568
- return array(
 
569
  'active_tab' => 'api_key',
570
  'mailchimp_api_key' => null,
571
  'mailchimp_list' => null,
@@ -582,32 +550,13 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
582
  $data = $this->validatePostStoreInfo($input);
583
  break;
584
 
585
- case 'campaign_defaults' :
586
- $data = $this->validatePostCampaignDefaults($input);
587
- break;
588
-
589
  case 'newsletter_settings':
590
  $data = $this->validatePostNewsletterSettings($input);
591
  break;
592
 
593
  case 'sync':
594
- // case disconnect
595
- if ($this->is_disconnecting()) {
596
- // Disconnect store!
597
- if ($this->disconnect_store()) {
598
- return array(
599
- 'active_tab' => 'api_key',
600
- 'mailchimp_api_key' => null,
601
- 'mailchimp_list' => null,
602
- );
603
- add_settings_error('mailchimp_store_settings', '', __('Store Disconnected', 'mailchimp-for-woocommerce'), 'info');
604
- } else {
605
- $data['active_tab'] = 'sync';
606
- add_settings_error('mailchimp_store_settings', '', __('Store Disconnect Failed', 'mailchimp-for-woocommerce'), 'warning');
607
- }
608
- }
609
  //case sync
610
- elseif ($this->is_resyncing()) {
611
 
612
  // remove all the pointers to be sure
613
  $service = new MailChimp_Service();
@@ -634,7 +583,25 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
634
  exit();
635
  }
636
 
637
- break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
638
  }
639
 
640
  // if no API is provided, check if the one saved on the database is still valid, ** only not if disconnect store is issued **.
@@ -717,6 +684,27 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
717
  }
718
  else wp_send_json_error( $response );
719
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
720
  }
721
 
722
  /**
@@ -902,7 +890,7 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
902
  }
903
  }
904
 
905
- $data['active_tab'] = 'campaign_defaults';
906
  $data['store_currency_code'] = get_woocommerce_currency();
907
 
908
  return $data;
@@ -1013,43 +1001,6 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
1013
  /**
1014
  * STEP 3.
1015
  *
1016
- * Handle the 'campaign_defaults' tab post.
1017
- *
1018
- * @param $input
1019
- * @return array
1020
- */
1021
- protected function validatePostCampaignDefaults($input)
1022
- {
1023
- $data = array(
1024
- 'campaign_from_name' => isset($input['campaign_from_name']) ? $input['campaign_from_name'] : false,
1025
- 'campaign_from_email' => isset($input['campaign_from_email']) && is_email($input['campaign_from_email']) ? $input['campaign_from_email'] : false,
1026
- 'campaign_subject' => isset($input['campaign_subject']) ? $input['campaign_subject'] : get_option('blogname'),
1027
- 'campaign_language' => isset($input['campaign_language']) ? $input['campaign_language'] : 'en',
1028
- 'campaign_permission_reminder' => isset($input['campaign_permission_reminder']) ? $input['campaign_permission_reminder'] : sprintf(/* translators: %s - plugin name. */esc_html__( 'You were subscribed to the newsletter from %s', 'mailchimp-for-woocommerce' ),get_option('blogname')),
1029
- );
1030
-
1031
- if (!$this->hasValidCampaignDefaults($data)) {
1032
- $this->setData('validation.campaign_defaults', false);
1033
- add_settings_error('mailchimp_list_settings', '', __('One or more fields were not updated', 'mailchimp-for-woocommerce'));
1034
- return array('active_tab' => 'campaign_defaults');
1035
- }
1036
-
1037
- $this->setData('validation.campaign_defaults', true);
1038
-
1039
- $data['active_tab'] = 'newsletter_settings';
1040
-
1041
- $list_id = mailchimp_get_list_id();
1042
-
1043
- if (!empty($list_id)) {
1044
- $this->updateMailChimpList(array_merge($this->getOptions(), $data), $list_id);
1045
- }
1046
-
1047
- return $data;
1048
- }
1049
-
1050
- /**
1051
- * STEP 4.
1052
- *
1053
  * Handle the 'newsletter_settings' tab post.
1054
  *
1055
  * @param $input
@@ -1077,13 +1028,31 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
1077
 
1078
  $data = array(
1079
  'mailchimp_list' => isset($input['mailchimp_list']) ? $input['mailchimp_list'] : $this->getOption('mailchimp_list', ''),
1080
- 'newsletter_label' => (isset($input['newsletter_label']) && $input['newsletter_label'] != '') ? wp_kses($input['newsletter_label'], $allowed_html) : $this->getOption('newsletter_label', __('Subscribe to our newsletter', 'mailchimp-for-woocommerce')),
1081
  'mailchimp_auto_subscribe' => isset($input['mailchimp_auto_subscribe']) ? (bool) $input['mailchimp_auto_subscribe'] : false,
1082
  'mailchimp_checkbox_defaults' => $checkbox,
1083
  'mailchimp_checkbox_action' => isset($input['mailchimp_checkbox_action']) ? $input['mailchimp_checkbox_action'] : $this->getOption('mailchimp_checkbox_action', 'woocommerce_after_checkout_billing_form'),
1084
  'mailchimp_user_tags' => isset($input['mailchimp_user_tags']) ? implode(",",$sanitized_tags) : $this->getOption('mailchimp_user_tags'),
1085
- 'mailchimp_product_image_key' => isset($input['mailchimp_product_image_key']) ? $input['mailchimp_product_image_key'] : 'medium',
1086
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1087
 
1088
  //if we don't have any audience on the account, create one
1089
  if ($data['mailchimp_list'] === 'create_new') {
@@ -1553,7 +1522,7 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
1553
  mailchimp_update_connected_site_script();
1554
 
1555
  // we need to update the list again with the campaign defaults
1556
- $this->updateMailChimpList(null, $list_id);
1557
 
1558
  return true;
1559
 
@@ -1700,20 +1669,14 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
1700
  $order_count = mailchimp_get_order_count();
1701
  }
1702
 
1703
- $text = '<b>' . __('Your store is synced with Mailchimp!', 'mailchimp-for-woocommerce').'</b></br>'.
1704
- '<p id="sync-status-message">'.
1705
  /* translators: %1$s: Number of synced orders %2$s: Audience name */
1706
- sprintf(__('We\'ve successfully synced %1$s orders to your Audience %2$s, that\'s awesome!', 'mailchimp-for-woocommerce'),
1707
  $order_count,
1708
  $this->getListName()
1709
  ).
1710
  '</p>'.
1711
-
1712
- '<p id="sync-status-message">'.
1713
- /* translators: %s - Wordpress.org plugin review URL. */
1714
- sprintf(wp_kses( __( 'Could you please do us a favor and leave the plugin a 5-star <a href=%s target=\'_blank\'>rating on Wordpress.org</a>? It helps our community know that we\'re working hard to make it better each day.', 'mailchimp-for-woocommerce' ), array( 'a' => array( 'href' => array(), 'target' => '_blank' ) ) ), esc_url( 'https://wordpress.org/support/plugin/mailchimp-for-woocommerce/reviews/' ) ).
1715
- '</p>'.
1716
- '<a style="display:inline align-right" class="button" href="https://wordpress.org/support/plugin/mailchimp-for-woocommerce/reviews/" target=_blank>'.
1717
  esc_html__('Leave a Review', 'mailchimp-for-woocommerce').
1718
  '</a>';
1719
 
@@ -1785,6 +1748,18 @@ class MailChimp_WooCommerce_Admin extends MailChimp_WooCommerce_Options {
1785
  ));
1786
  }
1787
 
 
 
 
 
 
 
 
 
 
 
 
 
1788
  public function mailchimp_woocommerce_ajax_load_log_file() {
1789
  if (isset($_POST['log_file']) && !empty($_POST['log_file'])) {
1790
  $requested_log_file = $_POST['log_file'];
108
  */
109
  public function enqueue_styles($hook) {
110
  wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/mailchimp-woocommerce-admin.css', array(), $this->version.'.21', 'all' );
 
111
 
112
  if ( strpos($hook, 'page_mailchimp-woocommerce') !== false ) {
113
  if ( get_bloginfo( 'version' ) < '5.3') {
125
  */
126
  public function enqueue_scripts($hook) {
127
  if ( strpos($hook, 'page_mailchimp-woocommerce') !== false ) {
128
+ $label = $this->getOption('newsletter_label');
129
+ if ($label == '') $label = __('Subscribe to our newsletter', 'mailchimp-for-woocommerce');
130
+ $options = get_option($this->plugin_name, array());
131
+ $checkbox_default_settings = (array_key_exists('mailchimp_checkbox_defaults', $options) && !is_null($options['mailchimp_checkbox_defaults'])) ? $options['mailchimp_checkbox_defaults'] : 'check';
132
  wp_register_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/mailchimp-woocommerce-admin.js', array( 'jquery', 'swal' ), $this->version.'.21', false );
133
  wp_localize_script(
134
  $this->plugin_name,
140
  'log_delete_subtitle' => __('You will not be able to revert.', 'mailchimp-for-woocommerce'),
141
  'log_delete_confirm' => __('Yes, delete it!', 'mailchimp-for-woocommerce'),
142
  'no_cancel' => __('No, cancel!', 'mailchimp-for-woocommerce'),
143
+ 'please_wait' => __('Please wait', 'mailchimp-for-woocommerce'),
144
  'store_disconnect_subtitle' => __('You are about to disconnect your store from Mailchimp.', 'mailchimp-for-woocommerce'),
145
  'store_disconnect_confirm' => __('Yes, disconnect.', 'mailchimp-for-woocommerce'),
146
+ 'try_again' => __('Try again', 'mailchimp-for-woocommerce'),
147
+ 'resync_in_progress' => __('Resync request in progress', 'mailchimp-for-woocommerce'),
148
+ 'resync_failed' => __('Could not resync orders, please try again.', 'mailchimp-for-woocommerce'),
149
+ 'store_disconnect_in_progress' => __('Disconnecting store in progress', 'mailchimp-for-woocommerce'),
150
+ 'login_popup_blocked' => __('Login Popup is blocked!', 'mailchimp-for-woocommerce'),
151
+ 'login_popup_blocked_desc' => __('Please allow your browser to show popups for this page', 'mailchimp-for-woocommerce'),
152
+ 'support_message_sending' => __('Sending support request', 'mailchimp-for-woocommerce'),
153
+ 'support_message_ok' => __('Message received', 'mailchimp-for-woocommerce'),
154
+ 'support_message_desc' => __('Thanks, your message has been received.', 'mailchimp-for-woocommerce'),
155
+ 'subscribe_newsletter' => $label
156
  ),
157
+ 'current_optin_state' => $checkbox_default_settings,
158
  )
159
  );
160
  wp_enqueue_script( $this->plugin_name);
258
  if ($pagenow == 'admin.php' && isset($_GET) && isset($_GET['page']) && 'mailchimp-woocommerce' === $_GET['page']) {
259
  $this->handle_abandoned_cart_table();
260
  $this->update_db_check();
261
+ $active_tab = isset($_GET['tab']) ? $_GET['tab'] : ($this->getOption('active_tab') ? $this->getOption('active_tab') : 'api_key');
262
+ if ($active_tab == 'sync' && get_option('mailchimp-woocommerce-sync.initial_sync') == 1 && get_option('mailchimp-woocommerce-sync.completed_at') > 0 ) {
263
  $this->mailchimp_show_initial_sync_message();
264
  }
265
  if (isset($_GET['log_removed']) && $_GET['log_removed'] == "1") {
274
  */
275
  public function initial_notice() {
276
  if (!mailchimp_is_configured()) {
277
+ $class = 'notice notice-warning is-dismissible';
278
+ $message = sprintf(
279
+ /* translators: Placeholders %1$s - opening strong HTML tag, %2$s - closing strong HTML tag, %3$s - opening link HTML tag, %4$s - closing link HTML tag */
280
+ esc_html__(
281
+ '%1$sMailchimp for Woocommerce%2$s is not yet connected to a Mailchimp account. To complete the connection, %3$svisit the plugin settings page%4$s.',
282
+ 'mailchimp-for-woocommerce'
283
+ ),
284
+ '<strong>',
285
+ '</strong>',
286
+ '<a href="' . admin_url( 'admin.php?page=') . $this->plugin_name . '">',
287
+ '</a>'
288
+ );
289
+ printf( '<div class="%1$s"><p>%2$s</p></div>', $class, $message );
290
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
  }
292
 
293
  /**
532
  }
533
 
534
  if (get_site_transient('mailchimp_disconnecting_store')) {
535
+ delete_site_transient('mailchimp_disconnecting_store');
536
+ return array(
537
  'active_tab' => 'api_key',
538
  'mailchimp_api_key' => null,
539
  'mailchimp_list' => null,
550
  $data = $this->validatePostStoreInfo($input);
551
  break;
552
 
 
 
 
 
553
  case 'newsletter_settings':
554
  $data = $this->validatePostNewsletterSettings($input);
555
  break;
556
 
557
  case 'sync':
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558
  //case sync
559
+ if ($this->is_resyncing()) {
560
 
561
  // remove all the pointers to be sure
562
  $service = new MailChimp_Service();
583
  exit();
584
  }
585
 
586
+ break;
587
+ case 'plugin_settings':
588
+
589
+ // case disconnect
590
+ if ($this->is_disconnecting()) {
591
+ // Disconnect store!
592
+ if ($this->disconnect_store()) {
593
+ return array(
594
+ 'active_tab' => 'api_key',
595
+ 'mailchimp_api_key' => null,
596
+ 'mailchimp_list' => null,
597
+ );
598
+ add_settings_error('mailchimp_store_settings', '', __('Store Disconnected', 'mailchimp-for-woocommerce'), 'info');
599
+ } else {
600
+ $data['active_tab'] = 'plugin_settings';
601
+ add_settings_error('mailchimp_store_settings', '', __('Store Disconnect Failed', 'mailchimp-for-woocommerce'), 'warning');
602
+ }
603
+ }
604
+ break;
605
  }
606
 
607
  // if no API is provided, check if the one saved on the database is still valid, ** only not if disconnect store is issued **.
684
  }
685
  else wp_send_json_error( $response );
686
 
687
+ }
688
+
689
+ /**
690
+ * Mailchimp OAuth connection status
691
+ */
692
+ public function mailchimp_woocommerce_ajax_oauth_status()
693
+ {
694
+ $url = $_POST['url'];
695
+ // set the default headers to NOTHING because the oauth server will block
696
+ // any non standard header that it was not expecting to receive and it was
697
+ // preventing folks from being able to connect.
698
+ $pload = array(
699
+ 'headers' => array(),
700
+ );
701
+
702
+ $response = wp_remote_post($url, $pload);
703
+
704
+ if ($response['response']['code'] == 200 && isset($response['body'])){
705
+ wp_send_json_success(json_decode($response['body']));
706
+ }
707
+ else wp_send_json_error( $response );
708
  }
709
 
710
  /**
890
  }
891
  }
892
 
893
+ $data['active_tab'] = 'newsletter_settings';
894
  $data['store_currency_code'] = get_woocommerce_currency();
895
 
896
  return $data;
1001
  /**
1002
  * STEP 3.
1003
  *
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1004
  * Handle the 'newsletter_settings' tab post.
1005
  *
1006
  * @param $input
1028
 
1029
  $data = array(
1030
  'mailchimp_list' => isset($input['mailchimp_list']) ? $input['mailchimp_list'] : $this->getOption('mailchimp_list', ''),
1031
+ 'newsletter_label' => (isset($input['newsletter_label'])) ? wp_kses($input['newsletter_label'], $allowed_html) : $this->getOption('newsletter_label', __('Subscribe to our newsletter', 'mailchimp-for-woocommerce')),
1032
  'mailchimp_auto_subscribe' => isset($input['mailchimp_auto_subscribe']) ? (bool) $input['mailchimp_auto_subscribe'] : false,
1033
  'mailchimp_checkbox_defaults' => $checkbox,
1034
  'mailchimp_checkbox_action' => isset($input['mailchimp_checkbox_action']) ? $input['mailchimp_checkbox_action'] : $this->getOption('mailchimp_checkbox_action', 'woocommerce_after_checkout_billing_form'),
1035
  'mailchimp_user_tags' => isset($input['mailchimp_user_tags']) ? implode(",",$sanitized_tags) : $this->getOption('mailchimp_user_tags'),
1036
+ 'mailchimp_product_image_key' => isset($input['mailchimp_product_image_key']) ? $input['mailchimp_product_image_key'] : 'medium',
1037
+ 'campaign_from_name' => isset($input['campaign_from_name']) ? $input['campaign_from_name'] : false,
1038
+ 'campaign_from_email' => isset($input['campaign_from_email']) && is_email($input['campaign_from_email']) ? $input['campaign_from_email'] : false,
1039
+ 'campaign_subject' => isset($input['campaign_subject']) ? $input['campaign_subject'] : get_option('blogname'),
1040
+ 'campaign_language' => isset($input['campaign_language']) ? $input['campaign_language'] : 'en',
1041
+ 'campaign_permission_reminder' => isset($input['campaign_permission_reminder']) ? $input['campaign_permission_reminder'] : sprintf(/* translators: %s - plugin name. */esc_html__( 'You were subscribed to the newsletter from %s', 'mailchimp-for-woocommerce' ),get_option('blogname')),
1042
+ );
1043
+
1044
+ if (!$this->hasValidCampaignDefaults($data)) {
1045
+ $this->setData('validation.newsletter_settings', false);
1046
+ add_settings_error('mailchimp_list_settings', '', __('One or more fields were not updated', 'mailchimp-for-woocommerce'));
1047
+ return array('active_tab' => 'newsletter_settings');
1048
+ }
1049
+ $this->setData('validation.newsletter_settings', true);
1050
+
1051
+ $list_id = mailchimp_get_list_id();
1052
+
1053
+ if (!empty($list_id)) {
1054
+ $this->updateMailChimpList(array_merge($this->getOptions(), $data), $list_id);
1055
+ }
1056
 
1057
  //if we don't have any audience on the account, create one
1058
  if ($data['mailchimp_list'] === 'create_new') {
1522
  mailchimp_update_connected_site_script();
1523
 
1524
  // we need to update the list again with the campaign defaults
1525
+ $this->updateMailChimpList($data, $list_id);
1526
 
1527
  return true;
1528
 
1669
  $order_count = mailchimp_get_order_count();
1670
  }
1671
 
1672
+ $text = '<p id="sync-status-message">'.
 
1673
  /* translators: %1$s: Number of synced orders %2$s: Audience name */
1674
+ sprintf(__('We successfully synced %1$s orders to your Audience, %2$s. If you’re happy with this integration, leave a 5-star review. It helps our community know we’re working hard to make it better each day.', 'mailchimp-for-woocommerce'),
1675
  $order_count,
1676
  $this->getListName()
1677
  ).
1678
  '</p>'.
1679
+ '<a style="display:inline align-right" class="button mc-review-button" href="https://wordpress.org/support/plugin/mailchimp-for-woocommerce/reviews/" target=_blank>'.
 
 
 
 
 
1680
  esc_html__('Leave a Review', 'mailchimp-for-woocommerce').
1681
  '</a>';
1682
 
1748
  ));
1749
  }
1750
 
1751
+ public function mailchimp_woocommerce_ajax_delete_log_file() {
1752
+ if (isset($_POST['log_file']) && !empty($_POST['log_file'])) {
1753
+ $requested_log_file = $_POST['log_file'];
1754
+ }
1755
+ else {
1756
+ return wp_send_json_error( __('No log file provided', 'mailchimp-for-woocommerce'));
1757
+ }
1758
+ $log_handler = new WC_Log_Handler_File();
1759
+ $removed = $log_handler->remove(str_replace('-log', '.log', $requested_log_file));
1760
+ wp_send_json_success(array('success' => $removed));
1761
+ }
1762
+
1763
  public function mailchimp_woocommerce_ajax_load_log_file() {
1764
  if (isset($_POST['log_file']) && !empty($_POST['log_file'])) {
1765
  $requested_log_file = $_POST['log_file'];
admin/css/checkbox.min.css DELETED
@@ -1 +0,0 @@
1
- .el-radio,.el-checkbox{position:relative;font-size:100%}label.el-radio,label.el-checkbox{display:block;cursor:pointer}.el-radio>input[type="radio"],.el-checkbox>input[type="checkbox"]{display:none}.el-radio>input[type="radio"][disabled],.el-checkbox>input[type="checkbox"][disabled]{cursor:not-allowed}.el-radio>input[type="radio"]+.el-radio-style,.el-checkbox>input[type="checkbox"]+.el-checkbox-style{position:relative;display:inline-block;width:1.4em;height:1.4em;vertical-align:middle;cursor:pointer}.el-radio>input[type="radio"]+.el-radio-style:hover:before,.el-checkbox>input[type="checkbox"]+.el-checkbox-style:hover:before{border-color:#20a0ff}.el-radio>input[type="radio"]+.el-radio-style:before,.el-checkbox>input[type="checkbox"]+.el-checkbox-style:before{position:absolute;top:0;left:0;display:inline-block;width:1.4em;height:1.4em;content:'';border:1px solid #C0CCDA}.el-radio>input[type="radio"]+.el-radio-style:after,.el-checkbox>input[type="checkbox"]+.el-checkbox-style:after{position:absolute;display:none;content:''}.el-radio>input[type="radio"][disabled]+.el-radio-style,.el-checkbox>input[type="checkbox"][disabled]+.el-checkbox-style{cursor:not-allowed;color:#D3DCE6}.el-radio>input[type="radio"][disabled]+.el-radio-style:hover,.el-radio>input[type="radio"][disabled]+.el-radio-style:before,.el-radio>input[type="radio"][disabled]+.el-radio-style:after,.el-checkbox>input[type="checkbox"][disabled]+.el-checkbox-style:hover,.el-checkbox>input[type="checkbox"][disabled]+.el-checkbox-style:before,.el-checkbox>input[type="checkbox"][disabled]+.el-checkbox-style:after{cursor:not-allowed}.el-radio>input[type="radio"][disabled]+.el-radio-style:hover:before,.el-checkbox>input[type="checkbox"][disabled]+.el-checkbox-style:hover:before{border:1px solid #D3DCE6;animation-name:none}.el-radio>input[type="radio"][disabled]+.el-radio-style:before,.el-checkbox>input[type="checkbox"][disabled]+.el-checkbox-style:before{border-color:#D3DCE6}.el-radio>input[type="radio"]:checked+.el-radio-style:before,.el-checkbox>input[type="checkbox"]:checked+.el-checkbox-style:before{animation-name:none}.el-radio>input[type="radio"]:checked+.el-radio-style:after,.el-checkbox>input[type="checkbox"]:checked+.el-checkbox-style:after{display:block}.el-radio>input[type="radio"]+.el-radio-style:before{border-radius:50%}.el-radio>input[type="radio"]+.el-radio-style:after{top:.4em;left:.4em;width:.6em;height:.6em;border-radius:50%;background:#20a0ff}.el-radio>input[type="radio"]:checked+.el-radio-style:before{border:1px solid #20a0ff}.el-radio>input[type="radio"]:checked[disabled]+.el-radio-style:before{border:1px solid #b0d7f5}.el-radio>input[type="radio"]:checked[disabled]+.el-radio-style:after{background:#b0d7f5}.el-checkbox>input[type="checkbox"]+.el-checkbox-style:before{border-radius:3px}.el-checkbox>input[type="checkbox"]+.el-checkbox-style:after{top:.15em;left:.5em;box-sizing:border-box;width:.4em;height:.85em;transform:rotate(45deg);border-right:2px solid #fff;border-bottom:2px solid #fff}.el-checkbox>input[type="checkbox"]:checked+.el-checkbox-style:before{border:#20a0ff;background:#20a0ff}.el-checkbox>input[type="checkbox"]:checked[disabled]+.el-checkbox-style:before{border:#b0d7f5;background:#b0d7f5}.el-radio.el-radio-blue>input[type="radio"]+label:hover:before,.el-checkbox.el-checkbox-blue>input[type="checkbox"]+label:hover:before,.el-radio.el-radio-blue>input[type="radio"]:checked+label:before,.el-checkbox.el-checkbox-blue>input[type="checkbox"]:checked+label:before{border-color:#20a0ff}.el-checkbox.el-checkbox-blue>input[type="checkbox"]:checked+label:before,.el-radio.el-radio-blue>input[type="radio"]+label:after{background:#20a0ff}.el-radio.el-radio-blue>input[type="radio"][disabled]+label:hover:before,.el-checkbox.el-checkbox-blue>input[type="checkbox"][disabled]+label:hover:before{border-color:#D3DCE6}.el-checkbox.el-checkbox-blue>input[type="checkbox"]:checked[disabled]+label:before,.el-radio.el-radio-blue>input[type="radio"]:checked[disabled]+label:before{border-color:#b0d7f5}.el-checkbox.el-checkbox-blue>input[type="checkbox"][disabled]:checked+label:before,.el-radio.el-radio-blue>input[type="radio"]:checked[disabled]+label:after{background:#b0d7f5}.el-radio.el-radio-green>input[type="radio"]+label:hover:before,.el-checkbox.el-checkbox-green>input[type="checkbox"]+label:hover:before,.el-radio.el-radio-green>input[type="radio"]:checked+label:before,.el-checkbox.el-checkbox-green>input[type="checkbox"]:checked+label:before{border-color:#13ce66}.el-checkbox.el-checkbox-green>input[type="checkbox"]:checked+label:before,.el-radio.el-radio-green>input[type="radio"]+label:after{background:#13ce66}.el-radio.el-radio-green>input[type="radio"][disabled]+label:hover:before,.el-checkbox.el-checkbox-green>input[type="checkbox"][disabled]+label:hover:before{border-color:#D3DCE6}.el-checkbox.el-checkbox-green>input[type="checkbox"]:checked[disabled]+label:before,.el-radio.el-radio-green>input[type="radio"]:checked[disabled]+label:before{border-color:#a1efc4}.el-checkbox.el-checkbox-green>input[type="checkbox"][disabled]:checked+label:before,.el-radio.el-radio-green>input[type="radio"]:checked[disabled]+label:after{background:#a1efc4}.el-radio.el-radio-red>input[type="radio"]+label:hover:before,.el-checkbox.el-checkbox-red>input[type="checkbox"]+label:hover:before,.el-radio.el-radio-red>input[type="radio"]:checked+label:before,.el-checkbox.el-checkbox-red>input[type="checkbox"]:checked+label:before{border-color:#ff4949}.el-checkbox.el-checkbox-red>input[type="checkbox"]:checked+label:before,.el-radio.el-radio-red>input[type="radio"]+label:after{background:#ff4949}.el-radio.el-radio-red>input[type="radio"][disabled]+label:hover:before,.el-checkbox.el-checkbox-red>input[type="checkbox"][disabled]+label:hover:before{border-color:#D3DCE6}.el-checkbox.el-checkbox-red>input[type="checkbox"]:checked[disabled]+label:before,.el-radio.el-radio-red>input[type="radio"]:checked[disabled]+label:before{border-color:#f9b3b3}.el-checkbox.el-checkbox-red>input[type="checkbox"][disabled]:checked+label:before,.el-radio.el-radio-red>input[type="radio"]:checked[disabled]+label:after{background:#f9b3b3}.el-radio.el-radio-yellow>input[type="radio"]+label:hover:before,.el-checkbox.el-checkbox-yellow>input[type="checkbox"]+label:hover:before,.el-radio.el-radio-yellow>input[type="radio"]:checked+label:before,.el-checkbox.el-checkbox-yellow>input[type="checkbox"]:checked+label:before{border-color:#f7ba2a}.el-checkbox.el-checkbox-yellow>input[type="checkbox"]:checked+label:before,.el-radio.el-radio-yellow>input[type="radio"]+label:after{background:#f7ba2a}.el-radio.el-radio-yellow>input[type="radio"][disabled]+label:hover:before,.el-checkbox.el-checkbox-yellow>input[type="checkbox"][disabled]+label:hover:before{border-color:#D3DCE6}.el-checkbox.el-checkbox-yellow>input[type="checkbox"]:checked[disabled]+label:before,.el-radio.el-radio-yellow>input[type="radio"]:checked[disabled]+label:before{border-color:#fbeac1}.el-checkbox.el-checkbox-yellow>input[type="checkbox"][disabled]:checked+label:before,.el-radio.el-radio-yellow>input[type="radio"]:checked[disabled]+label:after{background:#fbeac1}.el-switch,.el-switch-style,.el-switch-style:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.el-switch{display:inline-block;font-size:100%;height:1.6em;position:relative}.el-switch .el-switch-style{height:1.6em;left:0;background:#C0CCDA;-webkit-border-radius:.8em;border-radius:.8em;display:inline-block;position:relative;top:0;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;width:3em;cursor:pointer}.el-switch .el-switch-style:before{display:block;content:'';height:1.4em;position:absolute;width:1.4em;background-color:#fff;-webkit-border-radius:50%;border-radius:50%;left:.1em;top:.1em;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.el-switch>input[type="checkbox"]{display:none}.el-switch>input[type="checkbox"][disabled]+.el-switch-style{cursor:not-allowed;background-color:#D3DCE6}.el-switch>input[type="checkbox"]:checked+.el-switch-style{background-color:#20a0ff}.el-switch>input[type="checkbox"]:checked+.el-switch-style:before{left:50%}.el-switch>input[type="checkbox"]:checked[disabled]+.el-switch-style{background-color:#b0d7f5}.el-switch.el-switch-blue>input[type="checkbox"]:checked+.el-switch-style{background-color:#20a0ff}.el-switch.el-switch-blue>input[type="checkbox"]:checked[disabled]+.el-switch-style{background-color:#b0d7f5}.el-switch.el-switch-green>input[type="checkbox"]:checked+.el-switch-style{background-color:#13ce66}.el-switch.el-switch-green>input[type="checkbox"]:checked[disabled]+.el-switch-style{background-color:#a1efc4}.el-switch.el-switch-red>input[type="checkbox"]:checked+.el-switch-style{background-color:#ff4949}.el-switch.el-switch-red>input[type="checkbox"]:checked[disabled]+.el-switch-style{background-color:#f9b3b3}.el-switch.el-switch-yellow>input[type="checkbox"]:checked+.el-switch-style{background-color:#f7ba2a}.el-switch.el-switch-yellow>input[type="checkbox"]:checked[disabled]+.el-switch-style{background-color:#fbeac1}.el-radio.el-radio-sm,.el-checkbox.el-checkbox-sm,.el-switch.el-switch-sm{font-size:85%}.el-radio.el-radio-lg,.el-checkbox.el-checkbox-lg,.el-switch.el-switch-lg{font-size:125%}
 
admin/css/mailchimp-woocommerce-admin-settings-5.2.css CHANGED
@@ -10,110 +10,157 @@
10
  src: local('Proxima Nova Alt Light'), url('../fonts/Mark Simonson - Proxima Nova Alt Light.woff') format('woff');
11
  }
12
 
 
 
 
 
13
  .mc-woocommerce-settings {
14
- width:90%;
15
- margin: 4em auto 0 auto;
16
  font-family: "proxima-nova", Arial, Helvetica, sans-serif;
17
 
18
  }
19
 
20
- .mc-woocommerce-settings p {
21
- font-size: 14px;
22
- font-family: "Proxima Nova Alt Light", Arial, Helvetica, sans-serif;
23
  }
24
 
25
- .mc-woocommerce-settings-subtitles {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  font-family: "proxima-nova", Arial, Helvetica, sans-serif;
27
- font-size: 22px !important;
28
- line-height: 32px;
29
- color: #3C3C3C;
30
  }
31
 
32
- .description {
33
- font-family: proxima-nova, Arial, Helvetica, sans-serif;
34
- font-size: 12px !important;
35
- line-height: 16px !important;
36
- color: #B3B3B3 !important;
37
  }
38
- /* .notice {
39
- background: rgba(127, 173, 69, 0.1) !important;
40
- mix-blend-mode: normal !important;
41
- border: 1px solid rgba(127, 173, 69, 0.5) !important;
42
- box-sizing: border-box !important;
43
- border-radius: 4px !important;
44
  }
45
 
46
- .notice.notice-error {
47
- background: rgba(250, 50, 50, 0.1) !important;
48
- border: 1px solid rgba(250, 50, 50, 0.5) !important;
49
  }
50
 
51
- .notice.notice-info {
52
- background: rgba(0, 160, 210, 0.1) !important;
53
- border: 1px solid rgba(0, 160, 210, 0.5) !important;
54
  }
55
 
56
- .notice.notice-warning {
57
- background: rgba(255, 185, 0, 0.1) !important;
58
- border: 1px solid rgba(255, 185, 0, 0.5) !important;
59
- } */
 
 
 
 
 
 
 
 
 
 
60
 
 
 
 
 
 
 
 
 
 
61
 
62
- .nav-wizard-wrapper {
63
- cursor: default;
64
- margin-bottom: 110px !important;
65
-
 
 
 
 
66
  }
67
 
68
- .nav-wizard-wrapper .wizard-tab {
 
69
  display: inline-block;
70
- height: 13px;
71
- width: 57px;
72
- margin-right: 0.5em;
73
- border-bottom: 3px solid #E6E6E6;
74
- position: relative;
75
- align-items: center;
76
- text-align: center;
77
- text-transform: uppercase;
 
 
78
  }
79
 
80
- .nav-wizard-wrapper .wizard-tab-active,
81
- .nav-wizard-wrapper a.wizard-tab:hover {
82
- border-bottom: 3px solid #212121;
83
  }
84
 
85
- .nav-wizard-wrapper .wizard-tab .wizard-tab-tooltip{
86
- display: none;
 
 
87
  }
88
 
89
- .nav-wizard-wrapper .wizard-tab-active .wizard-tab-tooltip{
90
- display: block;
 
 
 
 
 
91
  }
92
 
93
- .nav-wizard-wrapper .wizard-tab .wizard-tab-tooltip {
94
- position: absolute;
95
- left: 0;
96
- top: 40px;
97
- width: 150px;
98
- background: white;
99
- border-radius: 6px;
100
- padding: 20px 30px;
 
 
 
 
101
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
102
- font-size: 14px;
103
- line-height: 17px;
104
- color: #3C3C3C;
105
  }
106
 
107
- .nav-wizard-wrapper .wizard-tab .wizard-tab-tooltip svg{
108
- position: absolute;
109
- left: 13px;
110
- top: -13px;
111
-
112
  }
113
 
114
  .nav-tab-wrapper {
115
  border-bottom: 2px solid white !important;
116
  margin-bottom: 25px !important;
 
117
  }
118
 
119
  .nav-tab-wrapper .nav-tab {
@@ -164,15 +211,48 @@
164
  border-bottom: none;
165
  }
166
 
167
- .tab-content-wrapper {
168
- background: white;
 
 
 
 
 
 
 
 
 
 
 
169
  padding: 0;
170
- margin: 0;
171
  -webkit-box-sizing: border-box;
172
  -moz-box-sizing: border-box;
173
  box-sizing: border-box;
174
  }
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  .tab-content-wrapper *,
177
  .sync-content-wrapper {
178
  margin: 0;
@@ -193,32 +273,52 @@
193
 
194
  .tab-content-wrapper form {
195
  margin: 0 auto;
196
- padding: 3em;
197
  }
198
 
199
  .tab-content-wrapper fieldset{
200
- background: white;
201
  width: 100%;
202
  }
203
 
204
- .tab-content-wrapper fieldset .fieldset-header{
205
  float: left;
206
  padding-top: 3em;
207
  width: 100%;
208
- font-size: 18px;
 
 
 
 
209
  }
210
 
211
  .tab-content-wrapper p.submit {
212
  margin-top: 0 !important;
213
- padding-top: 0 !important;
214
  margin-bottom: 45px !important;
215
- font-weight: 600;
216
  }
217
 
218
  .tab-content-wrapper p.submit:focus {
219
  margin-top: 10px !important;
220
  }
221
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
222
  .tab-content-submit,
223
  .mc-woocommerce-resync-button,
224
  .mc-woocommerce-log-button {
@@ -230,13 +330,14 @@
230
  /* identical to box height */
231
  text-transform: uppercase !important;
232
  color: #FFFFFF !important;
233
- border-radius: 100px !important;
234
  border: none !important;
235
 
236
  }
237
 
238
  .oauth-description {
239
  display: none;
 
 
240
  }
241
 
242
  #mailchimp-oauth-connected {
@@ -250,8 +351,16 @@
250
  background-color: #FFFF;
251
  }
252
 
253
- .tab-content-submit {
254
- float:right;
 
 
 
 
 
 
 
 
255
  background: #7FAD45 !important;
256
  box-shadow:0 1px 0 #7FAD45 !important;
257
  text-shadow: 0 -1px 1px #7FAD45,1px 0 1px #7FAD45,0 1px 1px #7FAD45,-1px 0 1px #7FAD45 !important;
@@ -269,13 +378,33 @@
269
  box-shadow 0.3s ease-out;
270
  }
271
 
272
- .disconnect-button {
273
  width:180px;
274
  margin: 0 0.5em !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
275
  }
276
 
277
- .tab-content-submit:hover {
278
- float:right;
 
 
 
 
 
279
  background: #9EC769 !important;
280
  box-shadow:0 1px 0 #9EC769 !important;
281
  text-shadow: 0 -1px 1px #9EC769,1px 0 1px #9EC769,0 1px 1px #9EC769,-1px 0 1px #9EC769 !important;
@@ -297,9 +426,8 @@
297
  .mc-woocommerce-resync-button,
298
  .mc-woocommerce-log-button {
299
  color: #3C3C3C !important;
300
- background: #E6E6E6 !important;
301
- box-shadow:0 1px 0 #E6E6E6 !important;
302
- text-shadow: 0 -1px 1px #E6E6E6,1px 0 1px #E6E6E6,0 1px 1px #E6E6E6,-1px 0 1px #E6E6E6 !important;
303
  -webkit-transition: background-color 0.3s ease-out,
304
  text-shadow 0.3s ease-out,
305
  box-shadow 0.3s ease-out;
@@ -320,7 +448,6 @@
320
  color: #3C3C3C !important;
321
  background: #DADADA !important;
322
  box-shadow:0 1px 0 #DADADA !important;
323
- text-shadow: 0 -1px 1px #DADADA,1px 0 1px #DADADA,0 1px 1px #DADADA,-1px 0 1px #DADADA !important;
324
  -webkit-transition: background-color 0.3s ease-out,
325
  text-shadow 0.3s ease-out,
326
  box-shadow 0.3s ease-out;
@@ -333,19 +460,18 @@
333
  transition: background-color 0.3s ease-out,
334
  text-shadow 0.3s ease-out,
335
  box-shadow 0.3s ease-out;
 
336
  }
337
 
338
  .mc-woocommerce-log-button {
339
  background: #fff !important;
340
  box-shadow:none !important;
341
- text-shadow: 0 -1px 1px #DADADA,1px 0 1px #DADADA,0 1px 1px #DADADA,-1px 0 1px #DADADA !important;
342
  }
343
 
344
  .mc-woocommerce-log-button:hover {
345
  background: #eee !important;
346
  }
347
 
348
-
349
  .tab-content-submit:focus,.tab-content-submit:hover{
350
  background: rgb(149, 189, 101);
351
  border-color: rgb(149, 189, 101);
@@ -369,57 +495,66 @@
369
 
370
  .sync-content-wrapper {
371
  display: table;
372
- width: 100%;
 
 
373
  }
374
 
375
- .sync-comm-wrapper {
 
 
 
 
 
 
 
 
 
 
 
 
 
376
  position:relative;
377
  background-color: white;
378
- padding: 4px 2em;
379
- margin-top: 26px;
380
  -webkit-border-radius: 4px;
381
  -moz-border-radius: 4px;
382
  border-radius: 4px;
383
- height: 164px;
384
  }
385
 
386
- .sync-comm-wrapper .comm_box_status {
387
- font-weight: 700;
388
  }
389
 
390
- .el-switch > input[type="checkbox"]:checked + .el-switch-style {
391
- background-color: #4DD463;
392
- }
393
-
394
- .comm_box_wrapper fieldset {
395
- border: 2px solid #E0E0E0;
396
- padding: 0 1em 0 1em;
397
- margin: 1em 0;
398
  }
399
 
400
- .comm_box_wrapper .el-switch,
401
- .comm_box_wrapper .mc-comm-save{
402
- float: right;
 
 
403
  }
404
 
405
- .comm_box_wrapper .mc-comm-save {
406
- margin-right: 10px;
 
 
 
407
  }
408
 
409
- .sync-content-wrapper .sync-stats-wrapper {
410
- position:relative;
411
- background-color: white;
412
- padding: 4px 2em 0 2em;
413
- margin-right: 2em;
414
- -webkit-border-radius: 4px;
415
- -moz-border-radius: 4px;
416
- border-radius: 4px;
417
  }
418
 
419
- .sync-content-wrapper .sync-stats-card {
420
- width: 100%;
421
- border-bottom: 1px solid #E6E6E6;
422
- padding: 2em 0;
423
  min-height: 20px;
424
  }
425
 
@@ -433,7 +568,6 @@
433
 
434
  .sync-content-wrapper .sync-stats-card span.card_label,
435
  .sync-content-wrapper .sync-stats-card span.card_label{
436
- padding-left: 0.7em;
437
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
438
  font-size: 14px;
439
  line-height: 14px;
@@ -454,7 +588,7 @@
454
  position: absolute;
455
  top: -1.3em;
456
  right: 0;
457
- color: #E6E6E6;
458
  }
459
 
460
  .sync-content-wrapper .sync-stats-card .sync-loader {
@@ -484,86 +618,174 @@
484
  }
485
 
486
  .sync-content-wrapper .sync-controls-wrapper {
487
- background-color: #E6E6E6;
488
  -webkit-border-radius: 4px;
489
  -moz-border-radius: 4px;
490
  border-radius: 4px;
491
- display: table-cell;
492
- width: 60%;
493
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
494
  font-size: 14px ;
495
  line-height: 14px;
 
496
  }
497
 
498
  .sync-content-wrapper .sync-controls {
499
  padding: 1em 1em 1em 3em;
500
  font-size: 14px;
501
  line-height: 14px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
502
  }
503
 
504
  .sync-content-wrapper .sync-controls .mc-woocommerce-last-sync{
505
- margin-top: 14em;
 
 
 
506
  }
507
 
508
- .sync-content-wrapper .mc-woocommerce-disconnect-button {
509
- cursor: pointer;
510
- padding-top: 1em;
511
- font-family: proxima-nova, Arial, Helvetica, sans-serif;
512
- font-size: 14px;
513
- line-height: 17px;
514
- font-weight: 600;
515
- display: flex;
516
- align-items: center;
517
- text-transform: uppercase;
518
- text-decoration: none;
519
- color: #3C3C3C;
520
- border: none;
521
- border-radius: 100px;
522
- padding: 1em 2em 1em 1em;
523
- background: #E6E6E6;
524
  -webkit-transition: background-color 0.3s ease-out;
525
  -moz-transition: background-color 0.3s ease-out;
526
  -o-transition: background-color 0.3s ease-out;
527
  transition: background-color 0.3s ease-out;
528
-
529
  }
530
- .sync-content-wrapper .mc-woocommerce-disconnect-button {
531
- float: right;
 
 
532
  }
533
 
534
- .sync-content-wrapper .mc-woocommerce-disconnect-button:hover {
535
- color: #3C3C3C;
536
- background-color: #DADADA;
537
- -webkit-transition: background-color 0.3s ease-out;
538
- -moz-transition: background-color 0.3s ease-out;
539
- -o-transition: background-color 0.3s ease-out;
540
- transition: background-color 0.3s ease-out;
541
  }
542
 
543
- .sync-content-wrapper .mc-woocommerce-disconnect-button svg {
544
  margin-right: 2em;
 
545
  }
546
 
547
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
548
  .tab-content-wrapper .box {
549
  padding: 0.5rem 1rem;
550
  margin: 0;
551
  clear:both;
552
  }
553
 
554
- .sync-comm-wrapper .box {
555
- padding: 0.5rem 0rem;
556
  margin: 0;
557
  }
558
 
 
 
 
 
 
 
559
  .tab-content-wrapper .box.box-half,
560
- .sync-content-wrapper .box.box-half {
 
561
  float: left;
562
  clear: none;
563
  width: 50%;
564
 
565
  }
566
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
567
  .sync-content-wrapper .box.box-half {
568
  height: 100%;
569
  }
@@ -590,27 +812,28 @@
590
  .tab-content-wrapper fieldset input[type="password"],
591
  .tab-content-wrapper fieldset input[type="email"],
592
  .tab-content-wrapper fieldset textarea {
593
- border: 1px solid #E6E6E6;
594
  box-sizing: border-box;
595
  border-radius: 4px;
596
- padding: 1em 1.5em;
597
  width: 100%;
598
  font-family: "Proxima Nova Alt Light", Arial, Helvetica, sans-serif
599
 
600
  }
601
 
602
  .tab-content-wrapper .mailchimp-select-wrapper {
603
- border: 1px solid #E6E6E6;
604
- padding: 9px 20px 8px 20px;
605
  -webkit-border-radius: 4px;
606
  -moz-border-radius: 4px;
607
  border-radius: 4px;
608
  box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
 
609
  }
610
 
611
  .tab-content-wrapper .mailchimp-select-wrapper select {
612
  padding: 0;
613
- background: transparent;
614
  font-size: 14px;
615
  font-family: "Proxima Nova Alt Light", Arial, Helvetica, sans-serif;
616
  border: none;
@@ -621,6 +844,10 @@
621
  background: no-repeat right center url("data:image/svg+xml;charset=UTF-8,%3csvg width='13' height='8' viewBox='0 0 13 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.34 0.590027L6.75 5.17003L2.16 0.590027L0.75 2.00003L6.75 8.00003L12.75 2.00003L11.34 0.590027Z' fill='%23212121'/%3e%3c/svg%3e ");
622
  }
623
 
 
 
 
 
624
  .tab-content-wrapper .mailchimp-select-wrapper select:disabled {
625
  color: #aaa;
626
  background: none;
@@ -630,13 +857,14 @@
630
  outline: none;
631
  }
632
 
633
- .tab-content-wrapper fieldset input[type='checkbox'] {
634
  width: 2em;
635
  height: 2em;
636
  border-radius: 4px;
637
- border: 1px solid #E6E6E6;
638
  }
639
- .tab-content-wrapper fieldset input[type='checkbox']:checked::before {
 
640
  color: #7FAD45;
641
  margin: -3px 0px 0px 5px;
642
  content: url("data:image/svg+xml;charset=UTF-8,%3csvg width='13' height='9' viewBox='0 0 13 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.75 0.5L12.25 2L5.26 9L0.75 4.5L2.25 3L5.26 6L10.75 0.5Z' fill='%237FAD45'/%3e%3c/svg%3e ");
@@ -648,7 +876,7 @@
648
  .sync-content-wrapper fieldset input[type='radio'] {
649
  width: 2em;
650
  height: 2em;
651
- border: 1px solid #E6E6E6;
652
  margin-right: 10px;
653
  }
654
 
@@ -666,14 +894,8 @@
666
  margin-bottom: 10px;
667
  }
668
 
669
- .mc-comm-save {
670
- display:none;
671
- color: #628735;
672
- margin-left: 10px;
673
- }
674
-
675
  .tab-content-wrapper fieldset textarea {
676
- border: 1px solid #E6E6E6;
677
  box-sizing: border-box;
678
  border-radius: 4px;
679
  padding: 15px 20px;
@@ -681,6 +903,7 @@
681
 
682
  }
683
 
 
684
  .tab-content-wrapper .optional-settings-button {
685
  margin-top: 3em;
686
  font-weight: 600;
@@ -689,13 +912,18 @@
689
  .tab-content-wrapper .optional-settings-button:hover span {
690
  color: #628735;
691
  }
692
- .tab-content-wrapper .optional-settings-label span
 
693
  .tab-content-wrapper .optional-settings-button span {
694
  text-transform: uppercase;
695
  color: #7FAD45 ;
696
- padding-left: 2em;
697
- background: no-repeat left center url("data:image/svg+xml;charset=UTF-8,%3csvg width='13' height='8' viewBox='0 0 13 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.34 0.590027L6.75 5.17003L2.16 0.590027L0.75 2.00003L6.75 8.00003L12.75 2.00003L11.34 0.590027Z' fill='%23212121'/%3e%3c/svg%3e ");
698
  font-size: 14px;
 
 
 
 
 
 
699
  cursor: pointer;
700
  }
701
 
@@ -715,7 +943,7 @@
715
  }
716
 
717
  .view-log-select {
718
- width: 80%;
719
  display: inline-block;
720
  }
721
 
@@ -727,7 +955,7 @@
727
 
728
  #log-actions {
729
  float: right;
730
- flex: 0 0 120px;
731
  margin-left: 20px;
732
  }
733
 
@@ -740,7 +968,7 @@
740
  background: #fff;
741
  border: 1px solid #e5e5e5;
742
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
743
- padding: 15px 20px;
744
  }
745
 
746
  #log-viewer pre {
@@ -748,19 +976,55 @@
748
  white-space: pre-wrap;
749
  }
750
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
751
 
752
  /* account create modal */
753
  #mc-woocommerce-create-account-link {
754
  padding-top: 20px;
755
  }
756
 
757
- #mc-woocommerce-create-account {
 
 
 
 
 
 
 
 
758
  width: 100%;
759
  display: flex;
760
  align-items: center;
761
  justify-content: center;
762
  position: absolute;
763
- top: 0;
764
  left: 0;
765
  visibility: hidden;
766
  display: none;
@@ -769,20 +1033,29 @@
769
  opacity: 0.5; */
770
  }
771
 
772
- #mc-woocommerce-create-account .terms {
 
 
 
 
 
 
 
 
 
773
  padding-top: 20px;
774
  padding-bottom: 20px;
775
  }
776
 
777
- #mc-woocommerce-create-account .terms a {
778
  color: #7FAD45 !important;
779
  }
780
 
781
- #mc-woocommerce-create-account h3 {
782
  padding-bottom: 20px;
783
  }
784
 
785
- #mc-woocommerce-create-account .notices {
786
  background:#fff;
787
  border-left: 4px solid#fff;
788
  border-left-color: rgb(255, 255, 255);
@@ -792,12 +1065,13 @@
792
  padding-right: 12px;
793
  }
794
 
795
- #mc-woocommerce-create-account:target {
 
796
  visibility: visible;
797
  display: block;
798
  }
799
 
800
- #mc-woocommerce-create-account .reveal-modal {
801
  position: relative;
802
  margin: 0 auto;
803
  width: 70%;
@@ -808,24 +1082,39 @@
808
  line-height: 17px;
809
  }
810
 
811
- #mc-woocommerce-create-account .close-modal {
812
  position: absolute;
813
  left: 10px;
814
  top: 10px;
815
  }
816
 
817
- .mc-woocommerce-create-account-modal-header {
818
  text-align: center;
819
  padding-top: 30px;
820
  }
821
 
822
- .mc-woocommerce-create-account-modal-header h3{
 
 
 
 
 
 
 
 
 
 
 
823
  text-align: center;
824
  padding-top: 30px;
825
  font-size: 2em;
826
  }
827
 
828
- .mc-woocommerce-create-account-modal-footer {
 
 
 
 
829
  padding: 35px;
830
  bottom: 0px;
831
  color: #B0B4BD;
@@ -836,6 +1125,10 @@
836
  padding: 5px 35px 10px 35px;
837
  }
838
 
 
 
 
 
839
  .mc-woocommerce-create-account-step .spinner{
840
  float:right;
841
  background-size: 16px 16px;
@@ -844,10 +1137,6 @@
844
  margin: 15px 10px;
845
  }
846
 
847
- #mc-woocommerce-create-account-step-2 {
848
- display: none;
849
- }
850
-
851
  .mc-woocommerce-create-account-step-error p{
852
  display: none;
853
 
@@ -860,7 +1149,8 @@
860
  padding-right: 12px;
861
  }
862
 
863
- .mc-woocommerce-create-account-step-error #connecting{
 
864
  border-left-color: #7FAD45;
865
  }
866
 
@@ -879,14 +1169,13 @@
879
  }
880
 
881
  .mc-woocommerce-create-account-step .whitebtn{
882
- color: #3C3C3C !important;
883
  background: white !important;
884
- box-shadow: 0 1px 0 #E6E6E6 !important;
885
- text-shadow: 0 -1px 1px #E6E6E6,1px 0 1px #E6E6E6,0 1px 1px #E6E6E6,-1px 0 1px #E6E6E6 !important;
886
- border: 1px solid #E6E6E6 !important;
887
  }
888
 
889
  #mc-woocommerce-create-account-next {
 
890
  }
891
 
892
  #mc-woocommerce-create-account-prev {
@@ -902,18 +1191,39 @@
902
  margin-left: 13px;
903
  }
904
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
905
 
906
  @media screen and (max-width: 782px) {
907
- .tab-content-submit,
908
- .mc-woocommerce-resync-button,
909
- .mc-woocommerce-log-button {
910
- padding: 15px 35px 15px 35px !important;
911
  }
912
-
913
- .mc-woocommerce-log-button {
914
- width: 100%;
915
- padding: 15px 35px 15px 35px !important;
916
- text-align: center;
917
  }
918
 
919
  .log-file-actions {
@@ -923,22 +1233,38 @@
923
  #log-actions {
924
  float: left;
925
  }
926
-
927
  .tab-content-wrapper form{
928
  padding: 1em;
929
  }
930
 
 
 
 
 
 
 
 
 
 
 
 
931
  .tab-content-wrapper .box.box-half,
932
  .tab-content-wrapper .box.box-third,
933
- .sync-comm-wrapper .box.box-half {
 
934
  width: 100%;
935
  }
936
 
 
 
 
 
937
  .sync-content-wrapper .sync-stats-wrapper {
938
  display: block;
939
- width: 90%;
940
  position:relative;
941
- margin-bottom: 2em;
 
942
  }
943
 
944
  .sync-content-wrapper .sync-stats-content-wrapper {
@@ -952,25 +1278,56 @@
952
  margin-bottom: 0;
953
  }
954
 
955
- .sync-content-wrapper .sync-controls-wrapper {
 
956
  display: block;
957
  width: 100%;
958
  position:relative;
 
959
  }
960
 
961
- .sync-content-wrapper .sync-controls .mc-woocommerce-last-sync{
962
- margin-top: 3em;
963
  }
964
 
 
 
 
965
 
 
 
 
 
 
 
966
  .sync-content-wrapper .sync-controls .spinner {
967
  margin: -3px 10px 0 5px;
968
  }
 
 
 
 
 
969
 
970
- .sync-comm-wrapper {
971
- padding-bottom: 20px;
 
 
 
972
  }
973
-
 
 
 
 
 
 
 
 
 
 
 
 
974
  .view-log-select,
975
  .view-log-submit {
976
  width: 100%;
@@ -1003,6 +1360,11 @@
1003
  border-radius: 0 !important;
1004
  }
1005
 
 
 
 
 
 
1006
  .nav-tab:last-child {
1007
  border: none;
1008
  }
@@ -1021,4 +1383,16 @@
1021
  .mc-woocommerce-create-account-step {
1022
  padding: 5px 5px 10px 5px;
1023
  }
 
 
 
 
 
 
 
 
 
 
 
 
1024
  }
10
  src: local('Proxima Nova Alt Light'), url('../fonts/Mark Simonson - Proxima Nova Alt Light.woff') format('woff');
11
  }
12
 
13
+ html {
14
+ scroll-padding-top: 8em;
15
+ }
16
+
17
  .mc-woocommerce-settings {
18
+ width: 100%;
19
+ margin: 0 !important;
20
  font-family: "proxima-nova", Arial, Helvetica, sans-serif;
21
 
22
  }
23
 
24
+ .woocommerce-layout .woocommerce-store-alerts{
25
+ display: none !important;
 
26
  }
27
 
28
+ .mc-woocommerce-settings-header-wrapper {
29
+ width:100%;
30
+ padding-top: 56px;
31
+ }
32
+
33
+ .mc-woocommerce-settings-header-wrapper.wiz-header {
34
+ background-color: white;
35
+ }
36
+
37
+ .mc-woocommerce-settings-header-wrapper.wiz-header .mc-woocommerce-settings-header{
38
+ padding-bottom: 69px;
39
+ }
40
+
41
+
42
+ .mc-woocommerce-settings-header {
43
+ width: 90%;
44
+ margin: 2em auto 0 auto !important;
45
  font-family: "proxima-nova", Arial, Helvetica, sans-serif;
46
+ padding-bottom: 0px;
47
+ display:table;
 
48
  }
49
 
50
+ .mc-woocommerce-settings-header .mailchimp-logo {
51
+ margin: 0 1em;
 
 
 
52
  }
53
+
54
+ .mc-woocommerce-settings-header svg.mc-woocommerce-logo{
55
+ padding-left: 1em;
56
+ display: inline-block;
 
 
57
  }
58
 
59
+ .mc-woocommerce-settings-header .mc-woocommerce-wizard-btn {
60
+ float: right;
61
+ margin-top: 50px;
62
  }
63
 
64
+ .mc-woocommerce-settings-header .mc-woocommerce-wizard-btn p{
65
+ display: inline;
 
66
  }
67
 
68
+ a.button.back-step {
69
+ color: #7FAD45 !important;
70
+ background-color: white !important;
71
+ border: none !important;
72
+ font-family: proxima-nova, Arial, Helvetica, sans-serif !important;
73
+ font-size: 14px !important;
74
+ line-height: 16px !important;
75
+ padding: 15px 35px 27px 35px !important;
76
+ display: inline;
77
+ float: left;
78
+ box-shadow: none;
79
+ /* identical to box height */
80
+ text-transform: uppercase !important;
81
+ }
82
 
83
+ .mc-woocommerce-header-steps {
84
+ display: block;
85
+ font-size: 12px;
86
+ line-height: 24px;
87
+ letter-spacing: 0.5px;
88
+ text-transform: uppercase;
89
+ margin-bottom: 15px;
90
+ color: #AFAFAF;
91
+ }
92
 
93
+ .mc-woocommerce-header-title {
94
+ display: block;
95
+ font-style: normal;
96
+ font-weight: 500;
97
+ font-size: 30px;
98
+ line-height: 28px;
99
+ color: #241C15;
100
+ margin-bottom: 15px;
101
  }
102
 
103
+
104
+ .mc-woocommerce-header-subtitle {
105
  display: inline-block;
106
+ font-style: normal;
107
+ font-weight: normal;
108
+ font-size: 20px;
109
+ line-height: 30px;
110
+
111
+ /* or 150% */
112
+ letter-spacing: -0.32px;
113
+
114
+ /* Functional / Tuna */
115
+ color: #8C8C8C;
116
  }
117
 
118
+ .mc-woocommerce-settings p {
119
+ font-size: 14px;
120
+ font-family: "Proxima Nova Alt Light", Arial, Helvetica, sans-serif;
121
  }
122
 
123
+ .mc-woocommerce-settings-header-wrapper.wiz-header .mc-woocommerce-settings-subtitles {
124
+ margin: 1em 0;
125
+ display: inline-block;
126
+ padding-left: 58px;
127
  }
128
 
129
+ .mc-woocommerce-settings-subtitles {
130
+ font-family: "proxima-nova", Arial, Helvetica, sans-serif;
131
+ font-size: 22px !important;
132
+ line-height: 32px;
133
+ color: #3C3C3C;
134
+ margin: 1em 1em 1em 13px;
135
+ max-width: 75%;
136
  }
137
 
138
+ .connect-buttons {
139
+ padding-left: 151px;
140
+ margin-top: 38px;
141
+ z-index: 2;
142
+ position: relative;
143
+ }
144
+
145
+ .connect-buttons .connect-button {
146
+ display: inline;
147
+ }
148
+
149
+ .description {
150
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
151
+ font-size: 12px !important;
152
+ line-height: 16px !important;
153
+ color: #868585 !important;
154
  }
155
 
156
+ .description.support-form {
157
+ color: #444 !important;
 
 
 
158
  }
159
 
160
  .nav-tab-wrapper {
161
  border-bottom: 2px solid white !important;
162
  margin-bottom: 25px !important;
163
+ margin: 0 1em;
164
  }
165
 
166
  .nav-tab-wrapper .nav-tab {
211
  border-bottom: none;
212
  }
213
 
214
+ .notices-content-wrapper.sync-notices {
215
+ margin-bottom: 20px !important;
216
+ }
217
+
218
+ .mc-review-button {
219
+ border: 1px solid #DBD9D2 !important;
220
+ color: #0073AA !important;
221
+ }
222
+
223
+ .tab-content-wrapper,
224
+ .notices-content-wrapper {
225
+ width: 90%;
226
+ background: transparent;
227
  padding: 0;
228
+ margin: 0 auto 0 auto !important;
229
  -webkit-box-sizing: border-box;
230
  -moz-box-sizing: border-box;
231
  box-sizing: border-box;
232
  }
233
 
234
+ .tab-content-wrapper {
235
+ background: transparent !important;
236
+ }
237
+
238
+ .tab-content-wrapper fieldset{
239
+ background: transparent !important;
240
+ }
241
+
242
+ .tab-content-wrapper fieldset input{
243
+ background: white !important;
244
+ }
245
+
246
+ .tab-content-wrapper textarea{
247
+ background: white !important;
248
+ }
249
+
250
+ .tab-content-wrapper fieldset select {
251
+ background: white url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;
252
+ background-size: auto;
253
+
254
+ }
255
+
256
  .tab-content-wrapper *,
257
  .sync-content-wrapper {
258
  margin: 0;
273
 
274
  .tab-content-wrapper form {
275
  margin: 0 auto;
276
+ /* padding: 3em; */
277
  }
278
 
279
  .tab-content-wrapper fieldset{
280
+ background: transparent;
281
  width: 100%;
282
  }
283
 
284
+ .tab-content-wrapper fieldset .fieldset-header {
285
  float: left;
286
  padding-top: 3em;
287
  width: 100%;
288
+ font-size: 18px !important;
289
+ }
290
+
291
+ .tab-content-wrapper fieldset .fieldset-header.no-padding {
292
+ padding-top: 1em;
293
  }
294
 
295
  .tab-content-wrapper p.submit {
296
  margin-top: 0 !important;
297
+ padding-top: 35px !important;
298
  margin-bottom: 45px !important;
 
299
  }
300
 
301
  .tab-content-wrapper p.submit:focus {
302
  margin-top: 10px !important;
303
  }
304
 
305
+ .tab-content-wrapper .required-field-mark {
306
+ color: red;
307
+ }
308
+
309
+ a.button.create-account {
310
+ color: #7FAD45 !important;
311
+ background-color: white !important;
312
+ border: none !important;
313
+ font-family: proxima-nova, Arial, Helvetica, sans-serif !important;
314
+ font-size: 14px !important;
315
+ line-height: 16px !important;
316
+ padding: 15px 35px 27px 35px !important;
317
+ box-shadow: none;
318
+ /* identical to box height */
319
+ text-transform: uppercase !important;
320
+ }
321
+
322
  .tab-content-submit,
323
  .mc-woocommerce-resync-button,
324
  .mc-woocommerce-log-button {
330
  /* identical to box height */
331
  text-transform: uppercase !important;
332
  color: #FFFFFF !important;
 
333
  border: none !important;
334
 
335
  }
336
 
337
  .oauth-description {
338
  display: none;
339
+ color: #8C8C8C;
340
+ position: absolute;
341
  }
342
 
343
  #mailchimp-oauth-connected {
351
  background-color: #FFFF;
352
  }
353
 
354
+ .mc-woocommerce-log-button.delete-log-button:hover span {
355
+ color: red;
356
+ }
357
+
358
+ .mc-woocommerce-log-button.mc-woocommerce-copy-log-button span.yes {
359
+ color: green;
360
+ display:none;
361
+ }
362
+
363
+ .tab-content-submit:not(.create-account):not(.mc-woocommerce-disconnect-button):not(.disconnect-confirm) {
364
  background: #7FAD45 !important;
365
  box-shadow:0 1px 0 #7FAD45 !important;
366
  text-shadow: 0 -1px 1px #7FAD45,1px 0 1px #7FAD45,0 1px 1px #7FAD45,-1px 0 1px #7FAD45 !important;
378
  box-shadow 0.3s ease-out;
379
  }
380
 
381
+ .disconnect-confirm {
382
  width:180px;
383
  margin: 0 0.5em !important;
384
+ background: #b83110 !important;
385
+ box-shadow:0 1px 0 #b83110 !important;
386
+ text-shadow: 0 -1px 1px #b83110,1px 0 1px #b83110,0 1px 1px #b83110,-1px 0 1px #b83110 !important;
387
+ -webkit-transition: background-color 0.3s ease-out,
388
+ text-shadow 0.3s ease-out,
389
+ box-shadow 0.3s ease-out;
390
+ -moz-transition: background-color 0.3s ease-out,
391
+ text-shadow 0.3s ease-out,
392
+ box-shadow 0.3s ease-out;
393
+ -o-transition: background-color 0.3s ease-out,
394
+ text-shadow 0.3s ease-out,
395
+ box-shadow 0.3s ease-out;
396
+ transition: background-color 0.3s ease-out,
397
+ text-shadow 0.3s ease-out,
398
+ box-shadow 0.3s ease-out;
399
  }
400
 
401
+ .disconnect-confirm:hover {
402
+ background: #F72E2E !important;
403
+ box-shadow:0 1px 0 #F72E2E !important;
404
+ text-shadow: 0 -1px 1px #F72E2E,1px 0 1px #F72E2E,0 1px 1px #F72E2E,-1px 0 1px #F72E2E !important;
405
+ }
406
+
407
+ .tab-content-submit:not(.mc-woocommerce-disconnect-button):not(.disconnect-confirm):hover {
408
  background: #9EC769 !important;
409
  box-shadow:0 1px 0 #9EC769 !important;
410
  text-shadow: 0 -1px 1px #9EC769,1px 0 1px #9EC769,0 1px 1px #9EC769,-1px 0 1px #9EC769 !important;
426
  .mc-woocommerce-resync-button,
427
  .mc-woocommerce-log-button {
428
  color: #3C3C3C !important;
429
+ background: #DBD9D2 !important;
430
+ box-shadow:0 1px 0 #DBD9D2 !important;
 
431
  -webkit-transition: background-color 0.3s ease-out,
432
  text-shadow 0.3s ease-out,
433
  box-shadow 0.3s ease-out;
448
  color: #3C3C3C !important;
449
  background: #DADADA !important;
450
  box-shadow:0 1px 0 #DADADA !important;
 
451
  -webkit-transition: background-color 0.3s ease-out,
452
  text-shadow 0.3s ease-out,
453
  box-shadow 0.3s ease-out;
460
  transition: background-color 0.3s ease-out,
461
  text-shadow 0.3s ease-out,
462
  box-shadow 0.3s ease-out;
463
+ text-decoration: none !important;
464
  }
465
 
466
  .mc-woocommerce-log-button {
467
  background: #fff !important;
468
  box-shadow:none !important;
 
469
  }
470
 
471
  .mc-woocommerce-log-button:hover {
472
  background: #eee !important;
473
  }
474
 
 
475
  .tab-content-submit:focus,.tab-content-submit:hover{
476
  background: rgb(149, 189, 101);
477
  border-color: rgb(149, 189, 101);
495
 
496
  .sync-content-wrapper {
497
  display: table;
498
+ margin: auto;
499
+ width: 90%;
500
+ padding: 0.5rem 1rem;
501
  }
502
 
503
+ .sync-more-wrapper {
504
+ position:relative;
505
+ height: 264px;
506
+ }
507
+
508
+ .mc-comm-save {
509
+ position: absolute;
510
+ display: none;
511
+ font-size: 0.8em;
512
+ font-weight: 100 !important;
513
+ color: #628735;
514
+ }
515
+
516
+ .sync-content-wrapper .sync-stats-wrapper {
517
  position:relative;
518
  background-color: white;
519
+ padding: 4px 0em 0 0em;
 
520
  -webkit-border-radius: 4px;
521
  -moz-border-radius: 4px;
522
  border-radius: 4px;
 
523
  }
524
 
525
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-store{
526
+ margin-right: 13px;
527
  }
528
 
529
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-audience{
530
+ margin-left: 13px;
 
 
 
 
 
 
531
  }
532
 
533
+ .sync-content-wrapper .sync-stats-card {
534
+ border-bottom: 1px solid #DBD9D2;
535
+ margin: 1em 2em 0em 2em;
536
+ padding: 2em 1em;
537
+ min-height: 20px;
538
  }
539
 
540
+ .sync-content-wrapper .overview-stats-store {
541
+ margin-right: 13px;
542
+ margin-bottom: 16px;
543
+ padding: 2em 1em;
544
+ min-height: 20px;
545
  }
546
 
547
+ .sync-content-wrapper .last-updated {
548
+ margin-left: 13px;
549
+ margin-bottom: 16px;
550
+ padding: 2em 1em;
551
+ min-height: 20px;
 
 
 
552
  }
553
 
554
+ .sync-content-wrapper .overview-stats-store .box,
555
+ .sync-content-wrapper .last-updated .box {
556
+ margin: 0 2em;
557
+ padding: 1em 0 0 0;
558
  min-height: 20px;
559
  }
560
 
568
 
569
  .sync-content-wrapper .sync-stats-card span.card_label,
570
  .sync-content-wrapper .sync-stats-card span.card_label{
 
571
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
572
  font-size: 14px;
573
  line-height: 14px;
588
  position: absolute;
589
  top: -1.3em;
590
  right: 0;
591
+ color: #DBD9D2;
592
  }
593
 
594
  .sync-content-wrapper .sync-stats-card .sync-loader {
618
  }
619
 
620
  .sync-content-wrapper .sync-controls-wrapper {
621
+ background-color: white;
622
  -webkit-border-radius: 4px;
623
  -moz-border-radius: 4px;
624
  border-radius: 4px;
625
+ width: 100%;
 
626
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
627
  font-size: 14px ;
628
  line-height: 14px;
629
+ margin-bottom: 26px;
630
  }
631
 
632
  .sync-content-wrapper .sync-controls {
633
  padding: 1em 1em 1em 3em;
634
  font-size: 14px;
635
  line-height: 14px;
636
+ min-height: 90px;
637
+ position:relative;
638
+ }
639
+
640
+ .sync-content-wrapper .sync-controls .sync-controls-item {
641
+ display: inline;
642
+ float: left;
643
+ margin-right: 42px;
644
+
645
+ }
646
+
647
+ .sync-content-wrapper .sync-controls p {
648
+ white-space: nowrap;
649
+ overflow: hidden;
650
+ text-overflow: ellipsis;
651
+ max-width: 300px;
652
+ }
653
+
654
+
655
+ .sync-content-wrapper .sync-controls .sync-controls-item .sync-controls-label{
656
+ font-size: 13px;
657
+ line-height: 20px;
658
+ }
659
+
660
+ .sync-content-wrapper .sync-controls #mailchimp_account_connected,
661
+ .sync-content-wrapper .sync-controls #mailchimp_list_name {
662
+ font-size: 20px;
663
+ line-height: 28px;
664
  }
665
 
666
  .sync-content-wrapper .sync-controls .mc-woocommerce-last-sync{
667
+ display: table;
668
+ float: right;
669
+ min-height:90px;
670
+ margin-right: 30px;
671
  }
672
 
673
+ .sync-content-wrapper .sync-controls .mc-woocommerce-last-sync p{
674
+ display: table-cell;
675
+ vertical-align: middle;
676
+ }
677
+
678
+ .mc-woocommerce-disconnect-button {
679
+ margin-top: 1em !important;
680
+ border: 1px solid #b83110 !important;
681
+ color: #b83110 !important;
682
+ background: #F1F1F1 !important;
683
+ box-shadow:0 1px 0 #F1F1F1 !important;
684
+ text-shadow: 0 -1px 1px #F1F1F1,1px 0 1px #F1F1F1,0 1px 1px #F1F1F1,-1px 0 1px #F1F1F1 !important;
 
 
 
 
685
  -webkit-transition: background-color 0.3s ease-out;
686
  -moz-transition: background-color 0.3s ease-out;
687
  -o-transition: background-color 0.3s ease-out;
688
  transition: background-color 0.3s ease-out;
689
+ padding:10px !important;
690
  }
691
+
692
+ .mc-woocommerce-disconnect-button span.dashicons{
693
+
694
+ margin: -3px auto;
695
  }
696
 
697
+ .mc-woocommerce-disconnect-button:hover {
698
+ text-decoration: none !important;
699
+ background: #f0f0f0 !important;
 
 
 
 
700
  }
701
 
702
+ .mc-woocommerce-disconnect-button svg {
703
  margin-right: 2em;
704
+ padding: 10px !important;
705
  }
706
 
707
 
708
+ .tab-content-wrapper.overview-example {
709
+ position: absolute;
710
+ z-index:1;
711
+ width:200px;
712
+ height:200px;
713
+ margin:50px auto;
714
+ width:100%;
715
+ text-align: center;
716
+ }
717
+
718
+ .tab-content-wrapper.overview-example:before {
719
+ position:absolute;
720
+ z-index:-1;
721
+ top:0;
722
+ left:0;
723
+ width:100%;
724
+ height:70%;
725
+ content:"";
726
+ background-color:white;
727
+ }
728
+
729
+ .tab-content-wrapper.overview-example img{
730
+ width: 90%;
731
+ margin: 0 auto;
732
+ border: 1px solid silver;
733
+ }
734
+
735
  .tab-content-wrapper .box {
736
  padding: 0.5rem 1rem;
737
  margin: 0;
738
  clear:both;
739
  }
740
 
741
+ .sync-more-wrapper .box {
 
742
  margin: 0;
743
  }
744
 
745
+ .sync-more-wrapper .box {
746
+ -webkit-border-radius: 4px;
747
+ -moz-border-radius: 4px;
748
+ border-radius: 4px;
749
+ }
750
+
751
  .tab-content-wrapper .box.box-half,
752
+ .sync-content-wrapper .box.box-half,
753
+ .sync-more-wrapper .box.box-half {
754
  float: left;
755
  clear: none;
756
  width: 50%;
757
 
758
  }
759
 
760
+ .sync-more-wrapper .box.box-half .content{
761
+ padding: 0 2em;
762
+ background: white;
763
+ min-height: 260px;
764
+ -webkit-border-radius: 4px;
765
+ -moz-border-radius: 4px;
766
+ border-radius: 4px;
767
+ }
768
+
769
+ .sync-more-wrapper .box.box-half.resync-container{
770
+ width: 30%;
771
+ }
772
+
773
+ .sync-more-wrapper .box.box-half.resync-container .content{
774
+ margin-left: 13px;
775
+ }
776
+
777
+ .sync-more-wrapper .box.box-half.support-container {
778
+ width: 70%;
779
+ }
780
+
781
+ .sync-more-wrapper .box.box-half.support-container ul {
782
+ padding-bottom: 1em;
783
+ }
784
+
785
+ .sync-more-wrapper .box.box-half.support-container .content{
786
+ margin-right: 13px;
787
+ }
788
+
789
  .sync-content-wrapper .box.box-half {
790
  height: 100%;
791
  }
812
  .tab-content-wrapper fieldset input[type="password"],
813
  .tab-content-wrapper fieldset input[type="email"],
814
  .tab-content-wrapper fieldset textarea {
815
+ border: 1px solid #DBD9D2;
816
  box-sizing: border-box;
817
  border-radius: 4px;
818
+ padding: 0.6em 1.5em;
819
  width: 100%;
820
  font-family: "Proxima Nova Alt Light", Arial, Helvetica, sans-serif
821
 
822
  }
823
 
824
  .tab-content-wrapper .mailchimp-select-wrapper {
825
+ border: 1px solid #DBD9D2;
826
+ padding: 6px 6px 4px 20px;
827
  -webkit-border-radius: 4px;
828
  -moz-border-radius: 4px;
829
  border-radius: 4px;
830
  box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
831
+ background-color: white;
832
  }
833
 
834
  .tab-content-wrapper .mailchimp-select-wrapper select {
835
  padding: 0;
836
+ background: transparent;
837
  font-size: 14px;
838
  font-family: "Proxima Nova Alt Light", Arial, Helvetica, sans-serif;
839
  border: none;
844
  background: no-repeat right center url("data:image/svg+xml;charset=UTF-8,%3csvg width='13' height='8' viewBox='0 0 13 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.34 0.590027L6.75 5.17003L2.16 0.590027L0.75 2.00003L6.75 8.00003L12.75 2.00003L11.34 0.590027Z' fill='%23212121'/%3e%3c/svg%3e ");
845
  }
846
 
847
+ .tab-content-wrapper .mailchimp-select-wrapper select option{
848
+ outline: none;
849
+ }
850
+
851
  .tab-content-wrapper .mailchimp-select-wrapper select:disabled {
852
  color: #aaa;
853
  background: none;
857
  outline: none;
858
  }
859
 
860
+ .tab-content-wrapper fieldset input[type='checkbox']:not(#mailchimp_woocommerce_newsletter) {
861
  width: 2em;
862
  height: 2em;
863
  border-radius: 4px;
864
+ border: 1px solid #DBD9D2;
865
  }
866
+
867
+ .tab-content-wrapper fieldset input[type='checkbox']:not(#mailchimp_woocommerce_newsletter):checked::before {
868
  color: #7FAD45;
869
  margin: -3px 0px 0px 5px;
870
  content: url("data:image/svg+xml;charset=UTF-8,%3csvg width='13' height='9' viewBox='0 0 13 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.75 0.5L12.25 2L5.26 9L0.75 4.5L2.25 3L5.26 6L10.75 0.5Z' fill='%237FAD45'/%3e%3c/svg%3e ");
876
  .sync-content-wrapper fieldset input[type='radio'] {
877
  width: 2em;
878
  height: 2em;
879
+ border: 1px solid #DBD9D2;
880
  margin-right: 10px;
881
  }
882
 
894
  margin-bottom: 10px;
895
  }
896
 
 
 
 
 
 
 
897
  .tab-content-wrapper fieldset textarea {
898
+ border: 1px solid #DBD9D2;
899
  box-sizing: border-box;
900
  border-radius: 4px;
901
  padding: 15px 20px;
903
 
904
  }
905
 
906
+ .tab-content-wrapper .optional-settings-label,
907
  .tab-content-wrapper .optional-settings-button {
908
  margin-top: 3em;
909
  font-weight: 600;
912
  .tab-content-wrapper .optional-settings-button:hover span {
913
  color: #628735;
914
  }
915
+
916
+ .tab-content-wrapper .optional-settings-label span,
917
  .tab-content-wrapper .optional-settings-button span {
918
  text-transform: uppercase;
919
  color: #7FAD45 ;
 
 
920
  font-size: 14px;
921
+ cursor: default;
922
+ }
923
+
924
+ .tab-content-wrapper .optional-settings-button span {
925
+ background: no-repeat left center url("data:image/svg+xml;charset=UTF-8,%3csvg width='13' height='8' viewBox='0 0 13 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.34 0.590027L6.75 5.17003L2.16 0.590027L0.75 2.00003L6.75 8.00003L12.75 2.00003L11.34 0.590027Z' fill='%23212121'/%3e%3c/svg%3e ");
926
+ padding-left: 2em;
927
  cursor: pointer;
928
  }
929
 
943
  }
944
 
945
  .view-log-select {
946
+ width: 100%;
947
  display: inline-block;
948
  }
949
 
955
 
956
  #log-actions {
957
  float: right;
958
+ flex: 0 0 104px;
959
  margin-left: 20px;
960
  }
961
 
968
  background: #fff;
969
  border: 1px solid #e5e5e5;
970
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
971
+ text-align: center;
972
  }
973
 
974
  #log-viewer pre {
976
  white-space: pre-wrap;
977
  }
978
 
979
+ #log-viewer #log-header {
980
+ border-bottom: 1px solid #e5e5e5;
981
+ padding: 15px 20px;
982
+ }
983
+
984
+ #log-viewer #log-content {
985
+ height: 500px;
986
+ padding: 15px 20px;
987
+ width: 100%;
988
+ background-color: white;
989
+ color: #444;
990
+ font-family: monospace;
991
+ white-space: pre-wrap;
992
+ font-size: 1em;
993
+
994
+ }
995
+
996
+ #log-viewer #log-content:focus {
997
+ outline: none;
998
+ box-shadow: none !important;
999
+ }
1000
+
1001
+ #log-viewer .spinner {
1002
+ float:none;
1003
+ background-size: 16px 16px;
1004
+ width: 16px;
1005
+ height: 16px;
1006
+ margin: 30px 10px
1007
+ }
1008
 
1009
  /* account create modal */
1010
  #mc-woocommerce-create-account-link {
1011
  padding-top: 20px;
1012
  }
1013
 
1014
+ #mc-woocommerce-create-account-go {
1015
+ float:right;
1016
+ }
1017
+
1018
+ #mc-woocommerce-create-account-go-spinner {
1019
+ float:left;
1020
+ }
1021
+
1022
+ .mc-woocommerce-modal {
1023
  width: 100%;
1024
  display: flex;
1025
  align-items: center;
1026
  justify-content: center;
1027
  position: absolute;
 
1028
  left: 0;
1029
  visibility: hidden;
1030
  display: none;
1033
  opacity: 0.5; */
1034
  }
1035
 
1036
+ #mc-woocommerce-support-form {
1037
+ bottom:0px;
1038
+ padding-bottom: 20px;
1039
+ }
1040
+
1041
+ #mc-woocommerce-create-account {
1042
+ top:-235px;
1043
+ }
1044
+
1045
+ .mc-woocommerce-modal .terms {
1046
  padding-top: 20px;
1047
  padding-bottom: 20px;
1048
  }
1049
 
1050
+ .mc-woocommerce-modal .terms a {
1051
  color: #7FAD45 !important;
1052
  }
1053
 
1054
+ .mc-woocommerce-modal h3 {
1055
  padding-bottom: 20px;
1056
  }
1057
 
1058
+ .mc-woocommerce-modal .notices {
1059
  background:#fff;
1060
  border-left: 4px solid#fff;
1061
  border-left-color: rgb(255, 255, 255);
1065
  padding-right: 12px;
1066
  }
1067
 
1068
+ #mc-woocommerce-create-account:target,
1069
+ #mc-woocommerce-support-form:target {
1070
  visibility: visible;
1071
  display: block;
1072
  }
1073
 
1074
+ .mc-woocommerce-modal .reveal-modal {
1075
  position: relative;
1076
  margin: 0 auto;
1077
  width: 70%;
1082
  line-height: 17px;
1083
  }
1084
 
1085
+ .mc-woocommerce-modal .close-modal {
1086
  position: absolute;
1087
  left: 10px;
1088
  top: 10px;
1089
  }
1090
 
1091
+ .mc-woocommerce-modal .modal-header {
1092
  text-align: center;
1093
  padding-top: 30px;
1094
  }
1095
 
1096
+ #mc-woocommerce-support-form .modal-header svg{
1097
+ display: inline;
1098
+ }
1099
+
1100
+ #mc-woocommerce-support-form .modal-header h3{
1101
+ text-align: center;
1102
+ padding: 0px 0 20px 30px;
1103
+ font-size: 2em;
1104
+ display: inline-block;
1105
+ }
1106
+
1107
+ .mc-woocommerce-modal .modal-header h3{
1108
  text-align: center;
1109
  padding-top: 30px;
1110
  font-size: 2em;
1111
  }
1112
 
1113
+ #mc-woocommerce-support-form h3{
1114
+ padding-bottom: 0;
1115
+ }
1116
+
1117
+ .mc-woocommerce-modal .modal-footer {
1118
  padding: 35px;
1119
  bottom: 0px;
1120
  color: #B0B4BD;
1125
  padding: 5px 35px 10px 35px;
1126
  }
1127
 
1128
+ #mc-woocommerce-create-account-step-2 {
1129
+ display: none;
1130
+ }
1131
+
1132
  .mc-woocommerce-create-account-step .spinner{
1133
  float:right;
1134
  background-size: 16px 16px;
1137
  margin: 15px 10px;
1138
  }
1139
 
 
 
 
 
1140
  .mc-woocommerce-create-account-step-error p{
1141
  display: none;
1142
 
1149
  padding-right: 12px;
1150
  }
1151
 
1152
+ .mc-woocommerce-create-account-step-error #connecting,
1153
+ .mc-woocommerce-create-account-step-error #success{
1154
  border-left-color: #7FAD45;
1155
  }
1156
 
1169
  }
1170
 
1171
  .mc-woocommerce-create-account-step .whitebtn{
 
1172
  background: white !important;
1173
+ box-shadow: 0 1px 0 #DBD9D2 !important;
1174
+ text-shadow: 0 -1px 1px #DBD9D2,1px 0 1px #DBD9D2,0 1px 1px #DBD9D2,-1px 0 1px #DBD9D2 !important;
 
1175
  }
1176
 
1177
  #mc-woocommerce-create-account-next {
1178
+ float: right;
1179
  }
1180
 
1181
  #mc-woocommerce-create-account-prev {
1191
  margin-left: 13px;
1192
  }
1193
 
1194
+ .settings-sample-frame {
1195
+
1196
+ border: 1px solid black;
1197
+ padding: 2em;
1198
+ position: relative;
1199
+ background: rgb(255,255,255);
1200
+ }
1201
+
1202
+ .settings-sample-frame .mailchimp-newsletter{
1203
+ margin-top: 1em;
1204
+ }
1205
+
1206
+ .settings-sample-frame .mailchimp-newsletter label{
1207
+ display: inline;
1208
+ }
1209
+
1210
+ .settings-sample-frame .overlay {
1211
+ position: absolute;
1212
+ width:100%;
1213
+ height: 100%;
1214
+ top: 0;
1215
+ left: 0;
1216
+ background: rgb(255,255,255);
1217
+ background: linear-gradient(0deg, rgba(255,255,255,0) 10%, rgba(255,255,255,0.6964986678265056) 36%, rgba(255,255,255,1) 100%);
1218
+ }
1219
 
1220
  @media screen and (max-width: 782px) {
1221
+ .tab-content-wrapper, .notices-content-wrapper {
1222
+ padding: 0 1em;
 
 
1223
  }
1224
+ .tab-content-submit,
1225
+ .mc-woocommerce-resync-button {
1226
+ padding: 15px 35px 27px 35px !important;
 
 
1227
  }
1228
 
1229
  .log-file-actions {
1233
  #log-actions {
1234
  float: left;
1235
  }
1236
+
1237
  .tab-content-wrapper form{
1238
  padding: 1em;
1239
  }
1240
 
1241
+ .tab-content-wrapper .mailchimp-select-wrapper select {
1242
+
1243
+ font-size: 16px;
1244
+ line-height: 32px;
1245
+ }
1246
+
1247
+ .mc-woocommerce-settings-header-wrapper.wiz-header .mc-woocommerce-settings-subtitles {
1248
+ padding-left: 28px;
1249
+ margin-top: 28px;
1250
+ }
1251
+
1252
  .tab-content-wrapper .box.box-half,
1253
  .tab-content-wrapper .box.box-third,
1254
+ .sync-more-wrapper .box.box-half,
1255
+ .sync-content-wrapper .box.box-half {
1256
  width: 100%;
1257
  }
1258
 
1259
+ .sync-content-wrapper {
1260
+ padding: 0 1rem;
1261
+ }
1262
+
1263
  .sync-content-wrapper .sync-stats-wrapper {
1264
  display: block;
 
1265
  position:relative;
1266
+ margin-bottom: 14px;
1267
+ margin-right: 0;
1268
  }
1269
 
1270
  .sync-content-wrapper .sync-stats-content-wrapper {
1278
  margin-bottom: 0;
1279
  }
1280
 
1281
+ .sync-content-wrapper .sync-controls-wrapper,
1282
+ .sync-more-wrapper .box.box-half.support-container {
1283
  display: block;
1284
  width: 100%;
1285
  position:relative;
1286
+ margin-bottom: 14px;
1287
  }
1288
 
1289
+ .sync-more-wrapper .box.box-half .content {
1290
+ padding: 0 1em;
1291
  }
1292
 
1293
+ .sync-content-wrapper .sync-controls {
1294
+ min-height: 150px;
1295
+ }
1296
 
1297
+ .sync-content-wrapper .sync-controls .sync-controls-item {
1298
+ display: inline;
1299
+ float: left;
1300
+ margin-right: 42px;
1301
+ }
1302
+
1303
  .sync-content-wrapper .sync-controls .spinner {
1304
  margin: -3px 10px 0 5px;
1305
  }
1306
+
1307
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-store,
1308
+ .sync-more-wrapper .box.box-half.support-container .content {
1309
+ margin-right: 0px;
1310
+ }
1311
 
1312
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-store,
1313
+ .sync-content-wrapper .sync-stats-wrapper.overview-stats-store,
1314
+ .sync-content-wrapper .sync-stats-wrapper.last-updated {
1315
+ margin-right: 0px;
1316
+ margin-bottom: 26px;
1317
  }
1318
+
1319
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-audience,
1320
+ .sync-content-wrapper .sync-stats-wrapper.last-updated,
1321
+ .sync-more-wrapper .box.box-half.resync-container .content {
1322
+ margin-left: 0;
1323
+ }
1324
+
1325
+ .sync-more-wrapper .box.box-half.support-container,
1326
+ .sync-more-wrapper .box.box-half.resync-container {
1327
+ width: 100%;
1328
+
1329
+ }
1330
+
1331
  .view-log-select,
1332
  .view-log-submit {
1333
  width: 100%;
1360
  border-radius: 0 !important;
1361
  }
1362
 
1363
+ .connect-buttons {
1364
+ padding-left: 28px;
1365
+ width: 100%;
1366
+ }
1367
+
1368
  .nav-tab:last-child {
1369
  border: none;
1370
  }
1383
  .mc-woocommerce-create-account-step {
1384
  padding: 5px 5px 10px 5px;
1385
  }
1386
+
1387
+ .mc-woocommerce-settings-header {
1388
+ margin-top: 1em !important;
1389
+ }
1390
+
1391
+ .sync-content-wrapper .sync-controls {
1392
+ min-height: 280px;
1393
+ }
1394
+
1395
+ .mc-woocommerce-settings-header-wrapper.wiz-header .mc-woocommerce-settings-subtitles {
1396
+ padding-left: 28px;
1397
+ }
1398
  }
admin/css/mailchimp-woocommerce-admin-settings-rtl.css CHANGED
@@ -15,103 +15,154 @@ html {
15
  }
16
 
17
  .mc-woocommerce-settings {
18
- width:90%;
19
- margin: 4em auto 0 auto !important;
20
  font-family: "proxima-nova", Arial, Helvetica, sans-serif;
21
 
22
  }
23
 
24
- .mc-woocommerce-settings p {
25
- font-size: 14px;
26
- font-family: "Proxima Nova Alt Light", Arial, Helvetica, sans-serif;
27
  }
28
 
29
- .mc-woocommerce-settings-subtitles {
30
- font-family: "proxima-nova", Arial, Helvetica, sans-serif;
31
- font-size: 22px !important;
32
- line-height: 32px;
33
- color: #3C3C3C;
34
  }
35
 
36
- .description {
37
- font-family: proxima-nova, Arial, Helvetica, sans-serif;
38
- font-size: 12px !important;
39
- line-height: 16px !important;
40
- color: #b3b3b3 !important;
41
  }
42
 
43
- .description.support-form {
44
- color: #444 !important;
45
  }
46
 
47
- .nav-wizard-wrapper {
48
- cursor: default;
49
- margin-bottom: 110px !important;
50
-
51
  }
52
 
53
- .nav-wizard-wrapper .wizard-tab {
 
 
 
 
 
 
 
 
54
  display: inline-block;
55
- height: 13px;
56
- width: 57px;
57
- margin-left: 0.5em;
58
- position: relative;
59
- align-items: center;
60
- text-align: center;
61
- text-transform: uppercase;
62
  }
63
 
64
- .nav-wizard-wrapper .wizard-tab .marker{
65
- display: block;
66
- height: 13px;
67
- width: 57px;
68
- border-bottom: 3px solid #E6E6E6;
69
  }
70
 
71
- .nav-wizard-wrapper .wizard-tab .marker-disabled{
72
- display: block;
73
- height: 13px;
74
- width: 57px;
75
- border-bottom: 3px solid #E6E6E6;
76
  }
77
 
78
- .nav-wizard-wrapper .wizard-tab .marker:hover{
79
- border-bottom: 3px solid #212121;
 
 
 
 
 
 
 
 
 
 
80
  }
81
 
82
- .nav-wizard-wrapper .wizard-tab-tooltip{
83
- display: none;
 
 
 
 
 
 
84
  }
85
 
86
- .nav-wizard-wrapper .wizard-tab-active .wizard-tab-tooltip{
87
  display: block;
 
 
 
 
 
 
88
  }
89
 
90
- .nav-wizard-wrapper .wizard-tab-tooltip {
91
- position: absolute;
92
- right: 0;
93
- top: 40px;
94
- width: 150px;
95
- background: white;
96
- border-radius: 6px;
97
- padding: 20px 30px;
98
- font-family: proxima-nova, Arial, Helvetica, sans-serif;
 
 
 
 
 
 
 
99
  font-size: 14px;
100
- line-height: 17px;
 
 
 
 
 
 
 
 
 
 
 
 
101
  color: #3C3C3C;
102
- cursor: default;
 
103
  }
104
 
105
- .nav-wizard-wrapper .wizard-tab-tooltip svg{
106
- position: absolute;
107
- right: 13px;
108
- top: -13px;
109
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  }
111
 
112
  .nav-tab-wrapper {
113
  border-bottom: 2px solid white !important;
114
  margin-bottom: 25px !important;
 
115
  }
116
 
117
  .nav-tab-wrapper .nav-tab {
@@ -162,15 +213,43 @@ html {
162
  border-bottom: none;
163
  }
164
 
165
- .tab-content-wrapper {
166
- background: white;
 
 
 
 
 
 
167
  padding: 0;
168
- margin: 0;
169
  -webkit-box-sizing: border-box;
170
  -moz-box-sizing: border-box;
171
  box-sizing: border-box;
172
  }
173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  .tab-content-wrapper *,
175
  .sync-content-wrapper {
176
  margin: 0;
@@ -191,26 +270,29 @@ html {
191
 
192
  .tab-content-wrapper form {
193
  margin: 0 auto;
194
- padding: 3em;
195
  }
196
 
197
  .tab-content-wrapper fieldset{
198
- background: white;
199
  width: 100%;
200
  }
201
 
202
- .tab-content-wrapper fieldset .fieldset-header{
203
  float: left;
204
  padding-top: 3em;
205
  width: 100%;
206
- font-size: 18px;
 
 
 
 
207
  }
208
 
209
  .tab-content-wrapper p.submit {
210
  margin-top: 0 !important;
211
  padding-top: 35px !important;
212
  margin-bottom: 45px !important;
213
- font-weight: 600;
214
  }
215
 
216
  .tab-content-wrapper p.submit:focus {
@@ -221,6 +303,19 @@ html {
221
  color: red;
222
  }
223
 
 
 
 
 
 
 
 
 
 
 
 
 
 
224
  .tab-content-submit,
225
  .mc-woocommerce-resync-button,
226
  .mc-woocommerce-log-button {
@@ -232,13 +327,14 @@ html {
232
  /* identical to box height */
233
  text-transform: uppercase !important;
234
  color: #FFFFFF !important;
235
- border-radius: 100px !important;
236
  border: none !important;
237
 
238
  }
239
 
240
  .oauth-description {
241
  display: none;
 
 
242
  }
243
 
244
  #mailchimp-oauth-connected {
@@ -261,8 +357,7 @@ html {
261
  display:none;
262
  }
263
 
264
- .tab-content-submit {
265
- float:right;
266
  background: #7FAD45 !important;
267
  box-shadow:0 1px 0 #7FAD45 !important;
268
  text-shadow: 0 -1px 1px #7FAD45,1px 0 1px #7FAD45,0 1px 1px #7FAD45,-1px 0 1px #7FAD45 !important;
@@ -280,13 +375,33 @@ html {
280
  box-shadow 0.3s ease-out;
281
  }
282
 
283
- .disconnect-button {
284
  width:180px;
285
  margin: 0 0.5em !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  }
287
 
288
- .tab-content-submit:hover {
289
- float:right;
 
 
 
 
 
290
  background: #9EC769 !important;
291
  box-shadow:0 1px 0 #9EC769 !important;
292
  text-shadow: 0 -1px 1px #9EC769,1px 0 1px #9EC769,0 1px 1px #9EC769,-1px 0 1px #9EC769 !important;
@@ -308,9 +423,8 @@ html {
308
  .mc-woocommerce-resync-button,
309
  .mc-woocommerce-log-button {
310
  color: #3C3C3C !important;
311
- background: #E6E6E6 !important;
312
- box-shadow:0 1px 0 #E6E6E6 !important;
313
- text-shadow: 0 -1px 1px #E6E6E6,1px 0 1px #E6E6E6,0 1px 1px #E6E6E6,-1px 0 1px #E6E6E6 !important;
314
  -webkit-transition: background-color 0.3s ease-out,
315
  text-shadow 0.3s ease-out,
316
  box-shadow 0.3s ease-out;
@@ -331,7 +445,6 @@ html {
331
  color: #3C3C3C !important;
332
  background: #DADADA !important;
333
  box-shadow:0 1px 0 #DADADA !important;
334
- text-shadow: 0 -1px 1px #DADADA,1px 0 1px #DADADA,0 1px 1px #DADADA,-1px 0 1px #DADADA !important;
335
  -webkit-transition: background-color 0.3s ease-out,
336
  text-shadow 0.3s ease-out,
337
  box-shadow 0.3s ease-out;
@@ -350,7 +463,6 @@ html {
350
  .mc-woocommerce-log-button {
351
  background: #fff !important;
352
  box-shadow:none !important;
353
- text-shadow: 0 -1px 1px #DADADA,1px 0 1px #DADADA,0 1px 1px #DADADA,-1px 0 1px #DADADA !important;
354
  }
355
 
356
  .mc-woocommerce-log-button:hover {
@@ -380,63 +492,65 @@ html {
380
 
381
  .sync-content-wrapper {
382
  display: table;
383
- width: 100%;
384
- }
385
-
386
- .sync-comm-wrapper {
387
- position:relative;
388
- background-color: white;
389
- padding: 4px 2em;
390
- margin-top: 26px;
391
- -webkit-border-radius: 4px;
392
- -moz-border-radius: 4px;
393
- border-radius: 4px;
394
- height: 164px;
395
  }
396
 
397
  .sync-more-wrapper {
398
  position:relative;
399
- padding: 4px 0em;
400
  height: 264px;
401
  }
 
 
 
 
 
 
 
402
 
403
- .sync-comm-wrapper .comm_box_status {
404
- font-weight: 700;
 
 
 
 
 
405
  }
406
 
407
- .el-switch > input[type="checkbox"]:checked + .el-switch-style {
408
- background-color: #4DD463;
409
  }
410
 
411
- .comm_box_wrapper fieldset {
412
- border: 2px solid #E0E0E0;
413
- padding: 0 1em 0 1em;
414
- margin: 1em 0;
415
  }
416
 
417
- .comm_box_wrapper .el-switch,
418
- .comm_box_wrapper .mc-comm-save{
419
- float: right;
 
 
420
  }
421
 
422
- .comm_box_wrapper .mc-comm-save {
423
- margin-right: 10px;
 
 
 
424
  }
425
 
426
- .sync-content-wrapper .sync-stats-wrapper {
427
- position:relative;
428
- background-color: white;
429
- padding: 4px 2em 0 2em;
430
- margin-left: 2em;
431
- -webkit-border-radius: 4px;
432
- -moz-border-radius: 4px;
433
- border-radius: 4px;
434
  }
435
 
436
- .sync-content-wrapper .sync-stats-card {
437
- width: 100%;
438
- border-bottom: 1px solid #E6E6E6;
439
- padding: 2em 0;
440
  min-height: 20px;
441
  }
442
 
@@ -450,7 +564,6 @@ html {
450
 
451
  .sync-content-wrapper .sync-stats-card span.card_label,
452
  .sync-content-wrapper .sync-stats-card span.card_label{
453
- padding-left: 0.7em;
454
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
455
  font-size: 14px;
456
  line-height: 14px;
@@ -471,7 +584,7 @@ html {
471
  position: absolute;
472
  top: -1.3em;
473
  right: 0;
474
- color: #E6E6E6;
475
  }
476
 
477
  .sync-content-wrapper .sync-stats-card .sync-loader {
@@ -479,7 +592,7 @@ html {
479
  font-size: 22px;
480
  line-height: 22px;
481
  position: absolute;
482
- right: 1em;
483
  margin: 8px 0px;
484
  visibility: hidden;
485
  }
@@ -501,82 +614,129 @@ html {
501
  }
502
 
503
  .sync-content-wrapper .sync-controls-wrapper {
504
- background-color: #E6E6E6;
505
  -webkit-border-radius: 4px;
506
  -moz-border-radius: 4px;
507
  border-radius: 4px;
508
- display: table-cell;
509
- width: 60%;
510
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
511
  font-size: 14px ;
512
  line-height: 14px;
 
513
  }
514
 
515
  .sync-content-wrapper .sync-controls {
516
  padding: 1em 1em 1em 3em;
517
  font-size: 14px;
518
  line-height: 14px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
519
  }
520
 
521
  .sync-content-wrapper .sync-controls .mc-woocommerce-last-sync{
522
- margin-top: 14em;
 
 
 
523
  }
524
 
525
- .sync-content-wrapper .mc-woocommerce-disconnect-button {
526
- cursor: pointer;
527
- padding-top: 1em;
528
- font-family: proxima-nova, Arial, Helvetica, sans-serif;
529
- font-size: 14px;
530
- line-height: 17px;
531
- font-weight: 600;
532
- display: flex;
533
- align-items: center;
534
- text-transform: uppercase;
535
- text-decoration: none;
536
- color: #3C3C3C;
537
- border: none;
538
- border-radius: 100px;
539
- padding: 1em 2em 1em 1em;
540
- background: #E6E6E6;
541
  -webkit-transition: background-color 0.3s ease-out;
542
  -moz-transition: background-color 0.3s ease-out;
543
  -o-transition: background-color 0.3s ease-out;
544
  transition: background-color 0.3s ease-out;
545
-
546
  }
547
- .sync-content-wrapper .mc-woocommerce-disconnect-button {
548
- float: left;
 
 
549
  }
550
 
551
- .sync-content-wrapper .mc-woocommerce-disconnect-button:hover {
552
- color: #3C3C3C;
553
- background-color: #DADADA;
554
- -webkit-transition: background-color 0.3s ease-out;
555
- -moz-transition: background-color 0.3s ease-out;
556
- -o-transition: background-color 0.3s ease-out;
557
- transition: background-color 0.3s ease-out;
558
  text-decoration: none !important;
 
559
  }
560
 
561
- .sync-content-wrapper .mc-woocommerce-disconnect-button svg {
562
  margin-left: 2em;
563
  }
564
 
565
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
566
  .tab-content-wrapper .box {
567
  padding: 0.5rem 1rem;
568
  margin: 0;
569
  clear:both;
570
  }
571
 
572
- .sync-comm-wrapper .box,
573
  .sync-more-wrapper .box {
574
- padding: 0.5rem 0rem;
575
  margin: 0;
576
  }
577
 
578
  .sync-more-wrapper .box {
579
- height: 200px !important;
580
  -webkit-border-radius: 4px;
581
  -moz-border-radius: 4px;
582
  border-radius: 4px;
@@ -593,6 +753,31 @@ html {
593
 
594
  .sync-more-wrapper .box.box-half .content{
595
  padding: 0 2em;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
596
  }
597
 
598
  .sync-content-wrapper .box.box-half {
@@ -621,7 +806,7 @@ html {
621
  .tab-content-wrapper fieldset input[type="password"],
622
  .tab-content-wrapper fieldset input[type="email"],
623
  .tab-content-wrapper fieldset textarea {
624
- border: 1px solid #E6E6E6;
625
  box-sizing: border-box;
626
  border-radius: 4px;
627
  padding: 0.6em 1.5em;
@@ -631,12 +816,13 @@ html {
631
  }
632
 
633
  .tab-content-wrapper .mailchimp-select-wrapper {
634
- border: 1px solid #E6E6E6;
635
  padding: 6px 6px 4px 20px;
636
  -webkit-border-radius: 4px;
637
  -moz-border-radius: 4px;
638
  border-radius: 4px;
639
  box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
 
640
  }
641
 
642
  .tab-content-wrapper .mailchimp-select-wrapper select {
@@ -669,7 +855,7 @@ html {
669
  width: 2em;
670
  height: 2em;
671
  border-radius: 4px;
672
- border: 1px solid #E6E6E6;
673
  }
674
  .tab-content-wrapper fieldset input[type='checkbox']:checked::before {
675
  color: #7FAD45;
@@ -683,7 +869,7 @@ html {
683
  .sync-content-wrapper fieldset input[type='radio'] {
684
  width: 2em;
685
  height: 2em;
686
- border: 1px solid #E6E6E6;
687
  margin-right: 10px;
688
  }
689
 
@@ -693,8 +879,7 @@ html {
693
  background-repeat: none;
694
  width: 13px;
695
  height: 9px;
696
- margin: 8px 0 0 7px;
697
- float: left !important;
698
  }
699
 
700
  .tab-content-wrapper fieldset .radio-label,
@@ -702,14 +887,8 @@ html {
702
  margin-bottom: 10px;
703
  }
704
 
705
- .mc-comm-save {
706
- display:none;
707
- color: #628735;
708
- margin-left: 10px;
709
- }
710
-
711
  .tab-content-wrapper fieldset textarea {
712
- border: 1px solid #E6E6E6;
713
  box-sizing: border-box;
714
  border-radius: 4px;
715
  padding: 15px 20px;
@@ -825,6 +1004,14 @@ html {
825
  padding-top: 20px;
826
  }
827
 
 
 
 
 
 
 
 
 
828
  .mc-woocommerce-modal {
829
  width: 100%;
830
  display: flex;
@@ -845,7 +1032,7 @@ html {
845
  }
846
 
847
  #mc-woocommerce-create-account {
848
- top:50px;
849
  }
850
 
851
  .mc-woocommerce-modal .terms {
@@ -975,14 +1162,13 @@ html {
975
  }
976
 
977
  .mc-woocommerce-create-account-step .whitebtn{
978
- color: #3C3C3C !important;
979
  background: white !important;
980
- box-shadow: 0 1px 0 #E6E6E6 !important;
981
- text-shadow: 0 -1px 1px #E6E6E6,1px 0 1px #E6E6E6,0 1px 1px #E6E6E6,-1px 0 1px #E6E6E6 !important;
982
- border: 1px solid #E6E6E6 !important;
983
  }
984
 
985
  #mc-woocommerce-create-account-next {
 
986
  }
987
 
988
  #mc-woocommerce-create-account-prev {
@@ -1000,6 +1186,9 @@ html {
1000
 
1001
 
1002
  @media screen and (max-width: 782px) {
 
 
 
1003
  .tab-content-submit,
1004
  .mc-woocommerce-resync-button {
1005
  padding: 15px 35px 15px 35px !important;
@@ -1022,21 +1211,22 @@ html {
1022
  font-size: 16px;
1023
  line-height: 32px;
1024
  }
 
1025
  .tab-content-wrapper .box.box-half,
1026
  .tab-content-wrapper .box.box-third,
1027
- .sync-comm-wrapper .box.box-half,
1028
- .sync-more-wrapper .box.box-half {
1029
  width: 100%;
1030
  }
1031
 
1032
- .sync-more-wrapper .box.box-half:last-child {
1033
- margin-top: 26px;
1034
  }
1035
 
1036
  .sync-content-wrapper .sync-stats-wrapper {
1037
  display: block;
1038
  position:relative;
1039
- margin-bottom: 2em;
1040
  margin-left: 0;
1041
  }
1042
 
@@ -1051,25 +1241,56 @@ html {
1051
  margin-bottom: 0;
1052
  }
1053
 
1054
- .sync-content-wrapper .sync-controls-wrapper {
 
1055
  display: block;
1056
  width: 100%;
1057
  position:relative;
 
1058
  }
1059
 
1060
- .sync-content-wrapper .sync-controls .mc-woocommerce-last-sync{
1061
- margin-top: 3em;
1062
  }
1063
 
 
 
 
1064
 
 
 
 
 
 
 
1065
  .sync-content-wrapper .sync-controls .spinner {
1066
  margin: -3px 10px 0 5px;
1067
  }
 
 
 
 
 
1068
 
1069
- .sync-comm-wrapper {
1070
- padding-bottom: 20px;
 
 
 
1071
  }
1072
-
 
 
 
 
 
 
 
 
 
 
 
 
1073
  .view-log-select,
1074
  .view-log-submit {
1075
  width: 100%;
@@ -1120,4 +1341,16 @@ html {
1120
  .mc-woocommerce-create-account-step {
1121
  padding: 5px 5px 10px 5px;
1122
  }
 
 
 
 
 
 
 
 
 
 
 
 
1123
  }
15
  }
16
 
17
  .mc-woocommerce-settings {
18
+ width: 100%;
19
+ margin: 0 !important;
20
  font-family: "proxima-nova", Arial, Helvetica, sans-serif;
21
 
22
  }
23
 
24
+ .woocommerce-layout .woocommerce-store-alerts{
25
+ display: none !important;
 
26
  }
27
 
28
+ .mc-woocommerce-settings-header-wrapper {
29
+ width:100%;
30
+ padding-top: 56px;
 
 
31
  }
32
 
33
+ .mc-woocommerce-settings-header-wrapper.wiz-header {
34
+ background-color: white;
 
 
 
35
  }
36
 
37
+ .mc-woocommerce-settings-header-wrapper.wiz-header .mc-woocommerce-settings-header{
38
+ padding-bottom: 69px;
39
  }
40
 
41
+ .mc-woocommerce-settings-header .mailchimp-logo {
42
+ margin: 0 1em;
 
 
43
  }
44
 
45
+ .mc-woocommerce-settings-header {
46
+ width: 90%;
47
+ margin: 2em auto 0 auto !important;
48
+ font-family: "proxima-nova", Arial, Helvetica, sans-serif;
49
+ padding-bottom: 0px;
50
+ display:table;
51
+ }
52
+ .mc-woocommerce-settings-header svg.mc-woocommerce-logo{
53
+ padding-left: 1em;
54
  display: inline-block;
 
 
 
 
 
 
 
55
  }
56
 
57
+ .mc-woocommerce-settings-header .mc-woocommerce-wizard-btn {
58
+ float: left;
59
+ margin-top: 50px;
 
 
60
  }
61
 
62
+ .mc-woocommerce-settings-header .mc-woocommerce-wizard-btn p{
63
+ display: inline;
 
 
 
64
  }
65
 
66
+ a.button.back-step {
67
+ color: #7FAD45 !important;
68
+ background-color: white !important;
69
+ border: none !important;
70
+ font-family: proxima-nova, Arial, Helvetica, sans-serif !important;
71
+ font-size: 14px !important;
72
+ line-height: 16px !important;
73
+ padding: 15px 35px 15px 35px !important;
74
+ display: inline;
75
+ float: right;
76
+ /* identical to box height */
77
+ text-transform: uppercase !important;
78
  }
79
 
80
+ .mc-woocommerce-header-steps {
81
+ display: block;
82
+ font-size: 12px;
83
+ line-height: 24px;
84
+ letter-spacing: 0.5px;
85
+ text-transform: uppercase;
86
+ margin-bottom: 15px;
87
+ color: #AFAFAF;
88
  }
89
 
90
+ .mc-woocommerce-header-title {
91
  display: block;
92
+ font-style: normal;
93
+ font-weight: 500;
94
+ font-size: 30px;
95
+ line-height: 28px;
96
+ color: #241C15;
97
+ margin-bottom: 15px;
98
  }
99
 
100
+
101
+ .mc-woocommerce-header-subtitle {
102
+ display: inline-block;
103
+ font-style: normal;
104
+ font-weight: normal;
105
+ font-size: 20px;
106
+ line-height: 30px;
107
+
108
+ /* or 150% */
109
+ letter-spacing: -0.32px;
110
+
111
+ /* Functional / Tuna */
112
+ color: #8C8C8C;
113
+ }
114
+
115
+ .mc-woocommerce-settings p {
116
  font-size: 14px;
117
+ font-family: "Proxima Nova Alt Light", Arial, Helvetica, sans-serif;
118
+ }
119
+
120
+ .mc-woocommerce-settings-header-wrapper.wiz-header .mc-woocommerce-settings-subtitles {
121
+ margin: 1em 0;
122
+ display: inline-block;
123
+ padding-right: 58px;
124
+ }
125
+
126
+ .mc-woocommerce-settings-subtitles {
127
+ font-family: "proxima-nova", Arial, Helvetica, sans-serif;
128
+ font-size: 22px !important;
129
+ line-height: 32px;
130
  color: #3C3C3C;
131
+ margin: 1em 1em 1em 13px;
132
+ max-width: 75%;
133
  }
134
 
135
+ .connect-buttons {
136
+ padding-left: 28px;
137
+ margin-top: 38px;
138
+ z-index: 2;
139
+ position: relative;
140
+ }
141
+
142
+ .mc-woocommerce-settings-header-wrapper.wiz-header .mc-woocommerce-settings-subtitles {
143
+ padding-left: 28px;
144
+ margin-top: 28px;
145
+ }
146
+
147
+ .connect-buttons .connect-button {
148
+ display: inline;
149
+ }
150
+
151
+ .description {
152
+ font-family: proxima-nova, Arial, Helvetica, sans-serif;
153
+ font-size: 12px !important;
154
+ line-height: 16px !important;
155
+ color: #868585 !important;
156
+ }
157
+
158
+ .description.support-form {
159
+ color: #444 !important;
160
  }
161
 
162
  .nav-tab-wrapper {
163
  border-bottom: 2px solid white !important;
164
  margin-bottom: 25px !important;
165
+ margin: 0 1em;
166
  }
167
 
168
  .nav-tab-wrapper .nav-tab {
213
  border-bottom: none;
214
  }
215
 
216
+ .notices-content-wrapper.sync-notices {
217
+ margin-bottom: 20px !important;
218
+ }
219
+
220
+ .tab-content-wrapper,
221
+ .notices-content-wrapper {
222
+ width: 90%;
223
+ background: transparent;
224
  padding: 0;
225
+ margin: 0 auto 0 auto !important;
226
  -webkit-box-sizing: border-box;
227
  -moz-box-sizing: border-box;
228
  box-sizing: border-box;
229
  }
230
 
231
+ .tab-content-wrapper {
232
+ background: transparent !important;
233
+ }
234
+
235
+ .tab-content-wrapper fieldset{
236
+ background: transparent !important;
237
+ }
238
+
239
+ .tab-content-wrapper fieldset input{
240
+ background: white !important;
241
+ }
242
+
243
+ .tab-content-wrapper textarea{
244
+ background: white !important;
245
+ }
246
+
247
+ .tab-content-wrapper fieldset select {
248
+ background: white url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat left 5px top 55%;
249
+ background-size: auto;
250
+
251
+ }
252
+
253
  .tab-content-wrapper *,
254
  .sync-content-wrapper {
255
  margin: 0;
270
 
271
  .tab-content-wrapper form {
272
  margin: 0 auto;
273
+ /* padding: 3em; */
274
  }
275
 
276
  .tab-content-wrapper fieldset{
277
+ background: transparent;
278
  width: 100%;
279
  }
280
 
281
+ .tab-content-wrapper fieldset .fieldset-header {
282
  float: left;
283
  padding-top: 3em;
284
  width: 100%;
285
+ font-size: 18px !important;
286
+ }
287
+
288
+ .tab-content-wrapper fieldset .fieldset-header.no-padding {
289
+ padding-top: 1em;
290
  }
291
 
292
  .tab-content-wrapper p.submit {
293
  margin-top: 0 !important;
294
  padding-top: 35px !important;
295
  margin-bottom: 45px !important;
 
296
  }
297
 
298
  .tab-content-wrapper p.submit:focus {
303
  color: red;
304
  }
305
 
306
+ a.button.create-account {
307
+ color: #7FAD45 !important;
308
+ background-color: white !important;
309
+ border: none !important;
310
+ font-family: proxima-nova, Arial, Helvetica, sans-serif !important;
311
+ font-size: 14px !important;
312
+ line-height: 16px !important;
313
+ padding: 15px 35px 15px 35px !important;
314
+
315
+ /* identical to box height */
316
+ text-transform: uppercase !important;
317
+ }
318
+
319
  .tab-content-submit,
320
  .mc-woocommerce-resync-button,
321
  .mc-woocommerce-log-button {
327
  /* identical to box height */
328
  text-transform: uppercase !important;
329
  color: #FFFFFF !important;
 
330
  border: none !important;
331
 
332
  }
333
 
334
  .oauth-description {
335
  display: none;
336
+ color: #8C8C8C;
337
+ position: absolute;
338
  }
339
 
340
  #mailchimp-oauth-connected {
357
  display:none;
358
  }
359
 
360
+ .tab-content-submit:not(.create-account):not(.mc-woocommerce-disconnect-button):not(.disconnect-confirm) {
 
361
  background: #7FAD45 !important;
362
  box-shadow:0 1px 0 #7FAD45 !important;
363
  text-shadow: 0 -1px 1px #7FAD45,1px 0 1px #7FAD45,0 1px 1px #7FAD45,-1px 0 1px #7FAD45 !important;
375
  box-shadow 0.3s ease-out;
376
  }
377
 
378
+ .disconnect-confirm {
379
  width:180px;
380
  margin: 0 0.5em !important;
381
+ background: #b83110 !important;
382
+ box-shadow:0 1px 0 #b83110 !important;
383
+ text-shadow: 0 -1px 1px #b83110,1px 0 1px #b83110,0 1px 1px #b83110,-1px 0 1px #b83110 !important;
384
+ -webkit-transition: background-color 0.3s ease-out,
385
+ text-shadow 0.3s ease-out,
386
+ box-shadow 0.3s ease-out;
387
+ -moz-transition: background-color 0.3s ease-out,
388
+ text-shadow 0.3s ease-out,
389
+ box-shadow 0.3s ease-out;
390
+ -o-transition: background-color 0.3s ease-out,
391
+ text-shadow 0.3s ease-out,
392
+ box-shadow 0.3s ease-out;
393
+ transition: background-color 0.3s ease-out,
394
+ text-shadow 0.3s ease-out,
395
+ box-shadow 0.3s ease-out;
396
  }
397
 
398
+ .disconnect-confirm:hover {
399
+ background: #F72E2E !important;
400
+ box-shadow:0 1px 0 #F72E2E !important;
401
+ text-shadow: 0 -1px 1px #F72E2E,1px 0 1px #F72E2E,0 1px 1px #F72E2E,-1px 0 1px #F72E2E !important;
402
+ }
403
+
404
+ .tab-content-submit:not(.mc-woocommerce-disconnect-button):not(.disconnect-confirm):hover {
405
  background: #9EC769 !important;
406
  box-shadow:0 1px 0 #9EC769 !important;
407
  text-shadow: 0 -1px 1px #9EC769,1px 0 1px #9EC769,0 1px 1px #9EC769,-1px 0 1px #9EC769 !important;
423
  .mc-woocommerce-resync-button,
424
  .mc-woocommerce-log-button {
425
  color: #3C3C3C !important;
426
+ background: #DBD9D2 !important;
427
+ box-shadow:0 1px 0 #DBD9D2 !important;
 
428
  -webkit-transition: background-color 0.3s ease-out,
429
  text-shadow 0.3s ease-out,
430
  box-shadow 0.3s ease-out;
445
  color: #3C3C3C !important;
446
  background: #DADADA !important;
447
  box-shadow:0 1px 0 #DADADA !important;
 
448
  -webkit-transition: background-color 0.3s ease-out,
449
  text-shadow 0.3s ease-out,
450
  box-shadow 0.3s ease-out;
463
  .mc-woocommerce-log-button {
464
  background: #fff !important;
465
  box-shadow:none !important;
 
466
  }
467
 
468
  .mc-woocommerce-log-button:hover {
492
 
493
  .sync-content-wrapper {
494
  display: table;
495
+ margin: auto;
496
+ width: 90%;
497
+ padding: 0.5rem 1rem;
 
 
 
 
 
 
 
 
 
498
  }
499
 
500
  .sync-more-wrapper {
501
  position:relative;
 
502
  height: 264px;
503
  }
504
+ .mc-comm-save {
505
+ position: absolute;
506
+ display: none;
507
+ font-size: 0.8em;
508
+ font-weight: 100 !important;
509
+ color: #628735;
510
+ }
511
 
512
+ .sync-content-wrapper .sync-stats-wrapper {
513
+ position:relative;
514
+ background-color: white;
515
+ padding: 4px 0em 0 0em;
516
+ -webkit-border-radius: 4px;
517
+ -moz-border-radius: 4px;
518
+ border-radius: 4px;
519
  }
520
 
521
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-store{
522
+ margin-right: 13px;
523
  }
524
 
525
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-audience{
526
+ margin-left: 13px;
 
 
527
  }
528
 
529
+ .sync-content-wrapper .sync-stats-card {
530
+ border-bottom: 1px solid #DBD9D2;
531
+ margin: 1em 2em 0em 2em;
532
+ padding: 2em 1em;
533
+ min-height: 20px;
534
  }
535
 
536
+ .sync-content-wrapper .overview-stats-store {
537
+ margin-right: 13px;
538
+ margin-bottom: 16px;
539
+ padding: 2em 1em;
540
+ min-height: 20px;
541
  }
542
 
543
+ .sync-content-wrapper .last-updated {
544
+ margin-left: 13px;
545
+ margin-bottom: 16px;
546
+ padding: 2em 1em;
547
+ min-height: 20px;
 
 
 
548
  }
549
 
550
+ .sync-content-wrapper .overview-stats-store .box,
551
+ .sync-content-wrapper .last-updated .box {
552
+ margin: 0 2em;
553
+ padding: 1em 0 0 0;
554
  min-height: 20px;
555
  }
556
 
564
 
565
  .sync-content-wrapper .sync-stats-card span.card_label,
566
  .sync-content-wrapper .sync-stats-card span.card_label{
 
567
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
568
  font-size: 14px;
569
  line-height: 14px;
584
  position: absolute;
585
  top: -1.3em;
586
  right: 0;
587
+ color: #DBD9D2;
588
  }
589
 
590
  .sync-content-wrapper .sync-stats-card .sync-loader {
592
  font-size: 22px;
593
  line-height: 22px;
594
  position: absolute;
595
+ left: 1em;
596
  margin: 8px 0px;
597
  visibility: hidden;
598
  }
614
  }
615
 
616
  .sync-content-wrapper .sync-controls-wrapper {
617
+ background-color: white;
618
  -webkit-border-radius: 4px;
619
  -moz-border-radius: 4px;
620
  border-radius: 4px;
621
+ width: 100%;
 
622
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
623
  font-size: 14px ;
624
  line-height: 14px;
625
+ margin-bottom: 26px;
626
  }
627
 
628
  .sync-content-wrapper .sync-controls {
629
  padding: 1em 1em 1em 3em;
630
  font-size: 14px;
631
  line-height: 14px;
632
+ min-height: 90px;
633
+ position:relative;
634
+ }
635
+
636
+ .sync-content-wrapper .sync-controls .sync-controls-item {
637
+ display: inline;
638
+ float: right;
639
+ margin-right: 42px;
640
+
641
+ }
642
+
643
+ .sync-content-wrapper .sync-controls p {
644
+ white-space: nowrap;
645
+ overflow: hidden;
646
+ text-overflow: ellipsis;
647
+ max-width: 300px;
648
+ }
649
+
650
+
651
+ .sync-content-wrapper .sync-controls .sync-controls-item .sync-controls-label{
652
+ font-size: 13px;
653
+ line-height: 20px;
654
+ }
655
+
656
+ .sync-content-wrapper .sync-controls #mailchimp_account_connected,
657
+ .sync-content-wrapper .sync-controls #mailchimp_list_name {
658
+ font-size: 20px;
659
+ line-height: 28px;
660
  }
661
 
662
  .sync-content-wrapper .sync-controls .mc-woocommerce-last-sync{
663
+ display: table;
664
+ float: left;
665
+ min-height:90px;
666
+ margin-right: 30px;
667
  }
668
 
669
+ .sync-content-wrapper .sync-controls .mc-woocommerce-last-sync p{
670
+ display: table-cell;
671
+ vertical-align: middle;
672
+ }
673
+
674
+ .mc-woocommerce-disconnect-button {
675
+ margin-top: 1em !important;
676
+ border: 1px solid #b83110 !important;
677
+ color: #b83110 !important;
678
+ background: #F1F1F1 !important;
679
+ box-shadow:0 1px 0 #F1F1F1 !important;
680
+ text-shadow: 0 -1px 1px #F1F1F1,1px 0 1px #F1F1F1,0 1px 1px #F1F1F1,-1px 0 1px #F1F1F1 !important;
 
 
 
 
681
  -webkit-transition: background-color 0.3s ease-out;
682
  -moz-transition: background-color 0.3s ease-out;
683
  -o-transition: background-color 0.3s ease-out;
684
  transition: background-color 0.3s ease-out;
 
685
  }
686
+
687
+ .mc-woocommerce-disconnect-button span.dashicons{
688
+
689
+ margin: -3px auto;
690
  }
691
 
692
+ .mc-woocommerce-disconnect-button:hover {
 
 
 
 
 
 
693
  text-decoration: none !important;
694
+ background: #f0f0f0 !important;
695
  }
696
 
697
+ .mc-woocommerce-disconnect-button svg {
698
  margin-left: 2em;
699
  }
700
 
701
 
702
+ .tab-content-wrapper.overview-example {
703
+ position: absolute;
704
+ z-index:1;
705
+ width:200px;
706
+ height:200px;
707
+ margin:50px auto;
708
+ width:100%;
709
+ text-align: center;
710
+ }
711
+
712
+ .tab-content-wrapper.overview-example:before {
713
+ position:absolute;
714
+ z-index:-1;
715
+ top:0;
716
+ left:0;
717
+ width:100%;
718
+ height:70%;
719
+ content:"";
720
+ background-color:white;
721
+ }
722
+
723
+ .tab-content-wrapper.overview-example img{
724
+ width: 90%;
725
+ margin: 0 auto;
726
+ border: 1px solid silver;
727
+ }
728
+
729
  .tab-content-wrapper .box {
730
  padding: 0.5rem 1rem;
731
  margin: 0;
732
  clear:both;
733
  }
734
 
 
735
  .sync-more-wrapper .box {
 
736
  margin: 0;
737
  }
738
 
739
  .sync-more-wrapper .box {
 
740
  -webkit-border-radius: 4px;
741
  -moz-border-radius: 4px;
742
  border-radius: 4px;
753
 
754
  .sync-more-wrapper .box.box-half .content{
755
  padding: 0 2em;
756
+ background: white;
757
+ min-height: 260px;
758
+ -webkit-border-radius: 4px;
759
+ -moz-border-radius: 4px;
760
+ border-radius: 4px;
761
+ }
762
+
763
+ .sync-more-wrapper .box.box-half.resync-container{
764
+ width: 30%;
765
+ }
766
+
767
+ .sync-more-wrapper .box.box-half.resync-container .content{
768
+ margin-left: 13px;
769
+ }
770
+
771
+ .sync-more-wrapper .box.box-half.support-container {
772
+ width: 70%;
773
+ }
774
+
775
+ .sync-more-wrapper .box.box-half.support-container ul {
776
+ padding-bottom: 1em;
777
+ }
778
+
779
+ .sync-more-wrapper .box.box-half.support-container .content{
780
+ margin-right: 13px;
781
  }
782
 
783
  .sync-content-wrapper .box.box-half {
806
  .tab-content-wrapper fieldset input[type="password"],
807
  .tab-content-wrapper fieldset input[type="email"],
808
  .tab-content-wrapper fieldset textarea {
809
+ border: 1px solid #DBD9D2;
810
  box-sizing: border-box;
811
  border-radius: 4px;
812
  padding: 0.6em 1.5em;
816
  }
817
 
818
  .tab-content-wrapper .mailchimp-select-wrapper {
819
+ border: 1px solid #DBD9D2;
820
  padding: 6px 6px 4px 20px;
821
  -webkit-border-radius: 4px;
822
  -moz-border-radius: 4px;
823
  border-radius: 4px;
824
  box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
825
+ background-color: white;
826
  }
827
 
828
  .tab-content-wrapper .mailchimp-select-wrapper select {
855
  width: 2em;
856
  height: 2em;
857
  border-radius: 4px;
858
+ border: 1px solid #DBD9D2;
859
  }
860
  .tab-content-wrapper fieldset input[type='checkbox']:checked::before {
861
  color: #7FAD45;
869
  .sync-content-wrapper fieldset input[type='radio'] {
870
  width: 2em;
871
  height: 2em;
872
+ border: 1px solid #DBD9D2;
873
  margin-right: 10px;
874
  }
875
 
879
  background-repeat: none;
880
  width: 13px;
881
  height: 9px;
882
+ margin: 8px 7px 0 0px;
 
883
  }
884
 
885
  .tab-content-wrapper fieldset .radio-label,
887
  margin-bottom: 10px;
888
  }
889
 
 
 
 
 
 
 
890
  .tab-content-wrapper fieldset textarea {
891
+ border: 1px solid #DBD9D2;
892
  box-sizing: border-box;
893
  border-radius: 4px;
894
  padding: 15px 20px;
1004
  padding-top: 20px;
1005
  }
1006
 
1007
+ #mc-woocommerce-create-account-go {
1008
+ float:right;
1009
+ }
1010
+
1011
+ #mc-woocommerce-create-account-go-spinner {
1012
+ float:left;
1013
+ }
1014
+
1015
  .mc-woocommerce-modal {
1016
  width: 100%;
1017
  display: flex;
1032
  }
1033
 
1034
  #mc-woocommerce-create-account {
1035
+ top:-235px;
1036
  }
1037
 
1038
  .mc-woocommerce-modal .terms {
1162
  }
1163
 
1164
  .mc-woocommerce-create-account-step .whitebtn{
 
1165
  background: white !important;
1166
+ box-shadow: 0 1px 0 #DBD9D2 !important;
1167
+ text-shadow: 0 -1px 1px #DBD9D2,1px 0 1px #DBD9D2,0 1px 1px #DBD9D2,-1px 0 1px #DBD9D2 !important;
 
1168
  }
1169
 
1170
  #mc-woocommerce-create-account-next {
1171
+ float: right;
1172
  }
1173
 
1174
  #mc-woocommerce-create-account-prev {
1186
 
1187
 
1188
  @media screen and (max-width: 782px) {
1189
+ .tab-content-wrapper, .notices-content-wrapper {
1190
+ padding: 0 1em;
1191
+ }
1192
  .tab-content-submit,
1193
  .mc-woocommerce-resync-button {
1194
  padding: 15px 35px 15px 35px !important;
1211
  font-size: 16px;
1212
  line-height: 32px;
1213
  }
1214
+
1215
  .tab-content-wrapper .box.box-half,
1216
  .tab-content-wrapper .box.box-third,
1217
+ .sync-more-wrapper .box.box-half,
1218
+ .sync-content-wrapper .box.box-half {
1219
  width: 100%;
1220
  }
1221
 
1222
+ .sync-content-wrapper {
1223
+ padding: 0 1rem;
1224
  }
1225
 
1226
  .sync-content-wrapper .sync-stats-wrapper {
1227
  display: block;
1228
  position:relative;
1229
+ margin-bottom: 14px;
1230
  margin-left: 0;
1231
  }
1232
 
1241
  margin-bottom: 0;
1242
  }
1243
 
1244
+ .sync-content-wrapper .sync-controls-wrapper,
1245
+ .sync-more-wrapper .box.box-half.support-container {
1246
  display: block;
1247
  width: 100%;
1248
  position:relative;
1249
+ margin-bottom: 14px;
1250
  }
1251
 
1252
+ .sync-more-wrapper .box.box-half .content {
1253
+ padding: 0 1em;
1254
  }
1255
 
1256
+ .sync-content-wrapper .sync-controls {
1257
+ min-height: 150px;
1258
+ }
1259
 
1260
+ .sync-content-wrapper .sync-controls .sync-controls-item {
1261
+ display: inline;
1262
+ float: left;
1263
+ margin-right: 42px;
1264
+ }
1265
+
1266
  .sync-content-wrapper .sync-controls .spinner {
1267
  margin: -3px 10px 0 5px;
1268
  }
1269
+
1270
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-store,
1271
+ .sync-more-wrapper .box.box-half.support-container .content {
1272
+ margin-right: 0px;
1273
+ }
1274
 
1275
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-store,
1276
+ .sync-content-wrapper .sync-stats-wrapper.overview-stats-store,
1277
+ .sync-content-wrapper .sync-stats-wrapper.last-updated {
1278
+ margin-right: 0px;
1279
+ margin-bottom: 26px;
1280
  }
1281
+
1282
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-audience,
1283
+ .sync-content-wrapper .sync-stats-wrapper.last-updated,
1284
+ .sync-more-wrapper .box.box-half.resync-container .content {
1285
+ margin-left: 0;
1286
+ }
1287
+
1288
+ .sync-more-wrapper .box.box-half.support-container,
1289
+ .sync-more-wrapper .box.box-half.resync-container {
1290
+ width: 100%;
1291
+
1292
+ }
1293
+
1294
  .view-log-select,
1295
  .view-log-submit {
1296
  width: 100%;
1341
  .mc-woocommerce-create-account-step {
1342
  padding: 5px 5px 10px 5px;
1343
  }
1344
+
1345
+ .mc-woocommerce-settings-header {
1346
+ margin-top: 1em !important;
1347
+ }
1348
+
1349
+ .sync-content-wrapper .sync-controls {
1350
+ min-height: 280px;
1351
+ }
1352
+
1353
+ .mc-woocommerce-settings-header-wrapper.wiz-header .mc-woocommerce-settings-subtitles {
1354
+ padding-left: 28px;
1355
+ }
1356
  }
admin/css/mailchimp-woocommerce-admin-settings.css CHANGED
@@ -15,103 +15,151 @@ html {
15
  }
16
 
17
  .mc-woocommerce-settings {
18
- width:90%;
19
- margin: 4em auto 0 auto !important;
20
  font-family: "proxima-nova", Arial, Helvetica, sans-serif;
21
 
22
  }
23
 
24
- .mc-woocommerce-settings p {
25
- font-size: 14px;
26
- font-family: "Proxima Nova Alt Light", Arial, Helvetica, sans-serif;
27
  }
28
 
29
- .mc-woocommerce-settings-subtitles {
30
- font-family: "proxima-nova", Arial, Helvetica, sans-serif;
31
- font-size: 22px !important;
32
- line-height: 32px;
33
- color: #3C3C3C;
34
  }
35
 
36
- .description {
37
- font-family: proxima-nova, Arial, Helvetica, sans-serif;
38
- font-size: 12px !important;
39
- line-height: 16px !important;
40
- color: #b3b3b3 !important;
41
  }
42
 
43
- .description.support-form {
44
- color: #444 !important;
45
  }
46
 
47
- .nav-wizard-wrapper {
48
- cursor: default;
49
- margin-bottom: 110px !important;
50
-
 
 
 
 
 
 
 
51
  }
52
 
53
- .nav-wizard-wrapper .wizard-tab {
 
54
  display: inline-block;
55
- height: 13px;
56
- width: 57px;
57
- margin-right: 0.5em;
58
- position: relative;
59
- align-items: center;
60
- text-align: center;
61
- text-transform: uppercase;
62
  }
63
 
64
- .nav-wizard-wrapper .wizard-tab .marker{
65
- display: block;
66
- height: 13px;
67
- width: 57px;
68
- border-bottom: 3px solid #E6E6E6;
69
  }
70
 
71
- .nav-wizard-wrapper .wizard-tab .marker-disabled{
72
- display: block;
73
- height: 13px;
74
- width: 57px;
75
- border-bottom: 3px solid #E6E6E6;
76
  }
77
 
78
- .nav-wizard-wrapper .wizard-tab .marker:hover{
79
- border-bottom: 3px solid #212121;
 
 
 
 
 
 
 
 
 
 
80
  }
81
 
82
- .nav-wizard-wrapper .wizard-tab-tooltip{
83
- display: none;
 
 
 
 
 
 
84
  }
85
 
86
- .nav-wizard-wrapper .wizard-tab-active .wizard-tab-tooltip{
87
  display: block;
 
 
 
 
 
 
88
  }
89
 
90
- .nav-wizard-wrapper .wizard-tab-tooltip {
91
- position: absolute;
92
- left: 0;
93
- top: 40px;
94
- width: 150px;
95
- background: white;
96
- border-radius: 6px;
97
- padding: 20px 30px;
98
- font-family: proxima-nova, Arial, Helvetica, sans-serif;
 
 
 
 
 
 
 
99
  font-size: 14px;
100
- line-height: 17px;
 
 
 
 
 
 
 
 
 
 
 
 
101
  color: #3C3C3C;
102
- cursor: default;
 
103
  }
104
 
105
- .nav-wizard-wrapper .wizard-tab-tooltip svg{
106
- position: absolute;
107
- left: 13px;
108
- top: -13px;
109
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  }
111
 
112
  .nav-tab-wrapper {
113
  border-bottom: 2px solid white !important;
114
  margin-bottom: 25px !important;
 
115
  }
116
 
117
  .nav-tab-wrapper .nav-tab {
@@ -162,15 +210,48 @@ html {
162
  border-bottom: none;
163
  }
164
 
165
- .tab-content-wrapper {
166
- background: white;
 
 
 
 
 
 
 
 
 
 
 
167
  padding: 0;
168
- margin: 0;
169
  -webkit-box-sizing: border-box;
170
  -moz-box-sizing: border-box;
171
  box-sizing: border-box;
172
  }
173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  .tab-content-wrapper *,
175
  .sync-content-wrapper {
176
  margin: 0;
@@ -191,26 +272,29 @@ html {
191
 
192
  .tab-content-wrapper form {
193
  margin: 0 auto;
194
- padding: 3em;
195
  }
196
 
197
  .tab-content-wrapper fieldset{
198
- background: white;
199
  width: 100%;
200
  }
201
 
202
- .tab-content-wrapper fieldset .fieldset-header{
203
  float: left;
204
  padding-top: 3em;
205
  width: 100%;
206
- font-size: 18px;
 
 
 
 
207
  }
208
 
209
  .tab-content-wrapper p.submit {
210
  margin-top: 0 !important;
211
  padding-top: 35px !important;
212
  margin-bottom: 45px !important;
213
- font-weight: 600;
214
  }
215
 
216
  .tab-content-wrapper p.submit:focus {
@@ -221,6 +305,19 @@ html {
221
  color: red;
222
  }
223
 
 
 
 
 
 
 
 
 
 
 
 
 
 
224
  .tab-content-submit,
225
  .mc-woocommerce-resync-button,
226
  .mc-woocommerce-log-button {
@@ -232,13 +329,14 @@ html {
232
  /* identical to box height */
233
  text-transform: uppercase !important;
234
  color: #FFFFFF !important;
235
- border-radius: 100px !important;
236
  border: none !important;
237
 
238
  }
239
 
240
  .oauth-description {
241
  display: none;
 
 
242
  }
243
 
244
  #mailchimp-oauth-connected {
@@ -261,8 +359,7 @@ html {
261
  display:none;
262
  }
263
 
264
- .tab-content-submit {
265
- float:right;
266
  background: #7FAD45 !important;
267
  box-shadow:0 1px 0 #7FAD45 !important;
268
  text-shadow: 0 -1px 1px #7FAD45,1px 0 1px #7FAD45,0 1px 1px #7FAD45,-1px 0 1px #7FAD45 !important;
@@ -280,13 +377,33 @@ html {
280
  box-shadow 0.3s ease-out;
281
  }
282
 
283
- .disconnect-button {
284
  width:180px;
285
  margin: 0 0.5em !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  }
287
 
288
- .tab-content-submit:hover {
289
- float:right;
 
 
 
 
 
290
  background: #9EC769 !important;
291
  box-shadow:0 1px 0 #9EC769 !important;
292
  text-shadow: 0 -1px 1px #9EC769,1px 0 1px #9EC769,0 1px 1px #9EC769,-1px 0 1px #9EC769 !important;
@@ -308,9 +425,8 @@ html {
308
  .mc-woocommerce-resync-button,
309
  .mc-woocommerce-log-button {
310
  color: #3C3C3C !important;
311
- background: #E6E6E6 !important;
312
- box-shadow:0 1px 0 #E6E6E6 !important;
313
- text-shadow: 0 -1px 1px #E6E6E6,1px 0 1px #E6E6E6,0 1px 1px #E6E6E6,-1px 0 1px #E6E6E6 !important;
314
  -webkit-transition: background-color 0.3s ease-out,
315
  text-shadow 0.3s ease-out,
316
  box-shadow 0.3s ease-out;
@@ -331,7 +447,6 @@ html {
331
  color: #3C3C3C !important;
332
  background: #DADADA !important;
333
  box-shadow:0 1px 0 #DADADA !important;
334
- text-shadow: 0 -1px 1px #DADADA,1px 0 1px #DADADA,0 1px 1px #DADADA,-1px 0 1px #DADADA !important;
335
  -webkit-transition: background-color 0.3s ease-out,
336
  text-shadow 0.3s ease-out,
337
  box-shadow 0.3s ease-out;
@@ -350,7 +465,6 @@ html {
350
  .mc-woocommerce-log-button {
351
  background: #fff !important;
352
  box-shadow:none !important;
353
- text-shadow: 0 -1px 1px #DADADA,1px 0 1px #DADADA,0 1px 1px #DADADA,-1px 0 1px #DADADA !important;
354
  }
355
 
356
  .mc-woocommerce-log-button:hover {
@@ -380,63 +494,66 @@ html {
380
 
381
  .sync-content-wrapper {
382
  display: table;
383
- width: 100%;
384
- }
385
-
386
- .sync-comm-wrapper {
387
- position:relative;
388
- background-color: white;
389
- padding: 4px 2em;
390
- margin-top: 26px;
391
- -webkit-border-radius: 4px;
392
- -moz-border-radius: 4px;
393
- border-radius: 4px;
394
- height: 164px;
395
  }
396
 
397
  .sync-more-wrapper {
398
  position:relative;
399
- padding: 4px 0em;
400
  height: 264px;
401
  }
402
 
403
- .sync-comm-wrapper .comm_box_status {
404
- font-weight: 700;
 
 
 
 
405
  }
406
 
407
- .el-switch > input[type="checkbox"]:checked + .el-switch-style {
408
- background-color: #4DD463;
 
 
 
 
 
409
  }
410
 
411
- .comm_box_wrapper fieldset {
412
- border: 2px solid #E0E0E0;
413
- padding: 0 1em 0 1em;
414
- margin: 1em 0;
415
  }
416
 
417
- .comm_box_wrapper .el-switch,
418
- .comm_box_wrapper .mc-comm-save{
419
- float: right;
420
  }
421
 
422
- .comm_box_wrapper .mc-comm-save {
423
- margin-right: 10px;
 
 
 
424
  }
425
 
426
- .sync-content-wrapper .sync-stats-wrapper {
427
- position:relative;
428
- background-color: white;
429
- padding: 4px 2em 0 2em;
430
- margin-right: 2em;
431
- -webkit-border-radius: 4px;
432
- -moz-border-radius: 4px;
433
- border-radius: 4px;
434
  }
435
 
436
- .sync-content-wrapper .sync-stats-card {
437
- width: 100%;
438
- border-bottom: 1px solid #E6E6E6;
439
- padding: 2em 0;
 
 
 
 
 
 
 
440
  min-height: 20px;
441
  }
442
 
@@ -450,7 +567,6 @@ html {
450
 
451
  .sync-content-wrapper .sync-stats-card span.card_label,
452
  .sync-content-wrapper .sync-stats-card span.card_label{
453
- padding-left: 0.7em;
454
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
455
  font-size: 14px;
456
  line-height: 14px;
@@ -471,7 +587,7 @@ html {
471
  position: absolute;
472
  top: -1.3em;
473
  right: 0;
474
- color: #E6E6E6;
475
  }
476
 
477
  .sync-content-wrapper .sync-stats-card .sync-loader {
@@ -501,67 +617,119 @@ html {
501
  }
502
 
503
  .sync-content-wrapper .sync-controls-wrapper {
504
- background-color: #E6E6E6;
505
  -webkit-border-radius: 4px;
506
  -moz-border-radius: 4px;
507
  border-radius: 4px;
508
- display: table-cell;
509
- width: 60%;
510
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
511
  font-size: 14px ;
512
  line-height: 14px;
 
513
  }
514
 
515
  .sync-content-wrapper .sync-controls {
516
  padding: 1em 1em 1em 3em;
517
  font-size: 14px;
518
  line-height: 14px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
519
  }
520
 
521
  .sync-content-wrapper .sync-controls .mc-woocommerce-last-sync{
522
- margin-top: 14em;
 
 
 
523
  }
524
 
525
- .sync-content-wrapper .mc-woocommerce-disconnect-button {
526
- cursor: pointer;
527
- padding-top: 1em;
528
- font-family: proxima-nova, Arial, Helvetica, sans-serif;
529
- font-size: 14px;
530
- line-height: 17px;
531
- font-weight: 600;
532
- display: flex;
533
- align-items: center;
534
- text-transform: uppercase;
535
- text-decoration: none;
536
- color: #3C3C3C;
537
- border: none;
538
- border-radius: 100px;
539
- padding: 1em 2em 1em 1em;
540
- background: #E6E6E6;
541
  -webkit-transition: background-color 0.3s ease-out;
542
  -moz-transition: background-color 0.3s ease-out;
543
  -o-transition: background-color 0.3s ease-out;
544
  transition: background-color 0.3s ease-out;
545
-
546
  }
547
- .sync-content-wrapper .mc-woocommerce-disconnect-button {
548
- float: right;
 
 
549
  }
550
 
551
- .sync-content-wrapper .mc-woocommerce-disconnect-button:hover {
552
- color: #3C3C3C;
553
- background-color: #DADADA;
554
- -webkit-transition: background-color 0.3s ease-out;
555
- -moz-transition: background-color 0.3s ease-out;
556
- -o-transition: background-color 0.3s ease-out;
557
- transition: background-color 0.3s ease-out;
558
  text-decoration: none !important;
 
559
  }
560
 
561
- .sync-content-wrapper .mc-woocommerce-disconnect-button svg {
562
  margin-right: 2em;
 
 
 
 
 
 
 
 
 
 
 
 
563
  }
564
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
565
 
566
  .tab-content-wrapper .box {
567
  padding: 0.5rem 1rem;
@@ -569,14 +737,11 @@ html {
569
  clear:both;
570
  }
571
 
572
- .sync-comm-wrapper .box,
573
  .sync-more-wrapper .box {
574
- padding: 0.5rem 0rem;
575
  margin: 0;
576
  }
577
 
578
  .sync-more-wrapper .box {
579
- height: 200px !important;
580
  -webkit-border-radius: 4px;
581
  -moz-border-radius: 4px;
582
  border-radius: 4px;
@@ -593,6 +758,31 @@ html {
593
 
594
  .sync-more-wrapper .box.box-half .content{
595
  padding: 0 2em;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
596
  }
597
 
598
  .sync-content-wrapper .box.box-half {
@@ -621,7 +811,7 @@ html {
621
  .tab-content-wrapper fieldset input[type="password"],
622
  .tab-content-wrapper fieldset input[type="email"],
623
  .tab-content-wrapper fieldset textarea {
624
- border: 1px solid #E6E6E6;
625
  box-sizing: border-box;
626
  border-radius: 4px;
627
  padding: 0.6em 1.5em;
@@ -631,12 +821,13 @@ html {
631
  }
632
 
633
  .tab-content-wrapper .mailchimp-select-wrapper {
634
- border: 1px solid #E6E6E6;
635
  padding: 6px 6px 4px 20px;
636
  -webkit-border-radius: 4px;
637
  -moz-border-radius: 4px;
638
  border-radius: 4px;
639
  box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
 
640
  }
641
 
642
  .tab-content-wrapper .mailchimp-select-wrapper select {
@@ -665,13 +856,14 @@ html {
665
  outline: none;
666
  }
667
 
668
- .tab-content-wrapper fieldset input[type='checkbox'] {
669
  width: 2em;
670
  height: 2em;
671
  border-radius: 4px;
672
- border: 1px solid #E6E6E6;
673
  }
674
- .tab-content-wrapper fieldset input[type='checkbox']:checked::before {
 
675
  color: #7FAD45;
676
  margin: 0.6em 0px 0px 0.2em;
677
  content: url("data:image/svg+xml;charset=UTF-8,%3csvg width='13' height='9' viewBox='0 0 13 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.75 0.5L12.25 2L5.26 9L0.75 4.5L2.25 3L5.26 6L10.75 0.5Z' fill='%237FAD45'/%3e%3c/svg%3e ");
@@ -683,7 +875,7 @@ html {
683
  .sync-content-wrapper fieldset input[type='radio'] {
684
  width: 2em;
685
  height: 2em;
686
- border: 1px solid #E6E6E6;
687
  margin-right: 10px;
688
  }
689
 
@@ -701,14 +893,8 @@ html {
701
  margin-bottom: 10px;
702
  }
703
 
704
- .mc-comm-save {
705
- display:none;
706
- color: #628735;
707
- margin-left: 10px;
708
- }
709
-
710
  .tab-content-wrapper fieldset textarea {
711
- border: 1px solid #E6E6E6;
712
  box-sizing: border-box;
713
  border-radius: 4px;
714
  padding: 15px 20px;
@@ -768,7 +954,7 @@ html {
768
 
769
  #log-actions {
770
  float: right;
771
- flex: 0 0 120px;
772
  margin-left: 20px;
773
  }
774
 
@@ -824,6 +1010,14 @@ html {
824
  padding-top: 20px;
825
  }
826
 
 
 
 
 
 
 
 
 
827
  .mc-woocommerce-modal {
828
  width: 100%;
829
  display: flex;
@@ -844,7 +1038,7 @@ html {
844
  }
845
 
846
  #mc-woocommerce-create-account {
847
- top:50px;
848
  }
849
 
850
  .mc-woocommerce-modal .terms {
@@ -974,14 +1168,13 @@ html {
974
  }
975
 
976
  .mc-woocommerce-create-account-step .whitebtn{
977
- color: #3C3C3C !important;
978
  background: white !important;
979
- box-shadow: 0 1px 0 #E6E6E6 !important;
980
- text-shadow: 0 -1px 1px #E6E6E6,1px 0 1px #E6E6E6,0 1px 1px #E6E6E6,-1px 0 1px #E6E6E6 !important;
981
- border: 1px solid #E6E6E6 !important;
982
  }
983
 
984
  #mc-woocommerce-create-account-next {
 
985
  }
986
 
987
  #mc-woocommerce-create-account-prev {
@@ -997,8 +1190,36 @@ html {
997
  margin-left: 13px;
998
  }
999
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1000
 
1001
  @media screen and (max-width: 782px) {
 
 
 
1002
  .tab-content-submit,
1003
  .mc-woocommerce-resync-button {
1004
  padding: 15px 35px 15px 35px !important;
@@ -1021,21 +1242,27 @@ html {
1021
  font-size: 16px;
1022
  line-height: 32px;
1023
  }
 
 
 
 
 
 
1024
  .tab-content-wrapper .box.box-half,
1025
  .tab-content-wrapper .box.box-third,
1026
- .sync-comm-wrapper .box.box-half,
1027
- .sync-more-wrapper .box.box-half {
1028
  width: 100%;
1029
  }
1030
 
1031
- .sync-more-wrapper .box.box-half:last-child {
1032
- margin-top: 26px;
1033
  }
1034
 
1035
  .sync-content-wrapper .sync-stats-wrapper {
1036
  display: block;
1037
  position:relative;
1038
- margin-bottom: 2em;
1039
  margin-right: 0;
1040
  }
1041
 
@@ -1050,25 +1277,56 @@ html {
1050
  margin-bottom: 0;
1051
  }
1052
 
1053
- .sync-content-wrapper .sync-controls-wrapper {
 
1054
  display: block;
1055
  width: 100%;
1056
  position:relative;
 
1057
  }
1058
 
1059
- .sync-content-wrapper .sync-controls .mc-woocommerce-last-sync{
1060
- margin-top: 3em;
1061
  }
1062
 
 
 
 
1063
 
 
 
 
 
 
 
1064
  .sync-content-wrapper .sync-controls .spinner {
1065
  margin: -3px 10px 0 5px;
1066
  }
 
 
 
 
 
1067
 
1068
- .sync-comm-wrapper {
1069
- padding-bottom: 20px;
 
 
 
1070
  }
1071
-
 
 
 
 
 
 
 
 
 
 
 
 
1072
  .view-log-select,
1073
  .view-log-submit {
1074
  width: 100%;
@@ -1101,6 +1359,11 @@ html {
1101
  border-radius: 0 !important;
1102
  }
1103
 
 
 
 
 
 
1104
  .nav-tab:last-child {
1105
  border: none;
1106
  }
@@ -1119,4 +1382,16 @@ html {
1119
  .mc-woocommerce-create-account-step {
1120
  padding: 5px 5px 10px 5px;
1121
  }
 
 
 
 
 
 
 
 
 
 
 
 
1122
  }
15
  }
16
 
17
  .mc-woocommerce-settings {
18
+ width: 100%;
19
+ margin: 0 !important;
20
  font-family: "proxima-nova", Arial, Helvetica, sans-serif;
21
 
22
  }
23
 
24
+ .woocommerce-layout .woocommerce-store-alerts{
25
+ display: none !important;
 
26
  }
27
 
28
+ .mc-woocommerce-settings-header-wrapper {
29
+ width:100%;
30
+ padding-top: 56px;
 
 
31
  }
32
 
33
+ .mc-woocommerce-settings-header-wrapper.wiz-header {
34
+ background-color: white;
 
 
 
35
  }
36
 
37
+ .mc-woocommerce-settings-header-wrapper.wiz-header .mc-woocommerce-settings-header{
38
+ padding-bottom: 69px;
39
  }
40
 
41
+
42
+ .mc-woocommerce-settings-header {
43
+ width: 90%;
44
+ margin: 2em auto 0 auto !important;
45
+ font-family: "proxima-nova", Arial, Helvetica, sans-serif;
46
+ padding-bottom: 0px;
47
+ display:table;
48
+ }
49
+
50
+ .mc-woocommerce-settings-header .mailchimp-logo {
51
+ margin: 0 1em;
52
  }
53
 
54
+ .mc-woocommerce-settings-header svg.mc-woocommerce-logo{
55
+ padding-left: 1em;
56
  display: inline-block;
 
 
 
 
 
 
 
57
  }
58
 
59
+ .mc-woocommerce-settings-header .mc-woocommerce-wizard-btn {
60
+ float: right;
61
+ margin-top: 50px;
 
 
62
  }
63
 
64
+ .mc-woocommerce-settings-header .mc-woocommerce-wizard-btn p{
65
+ display: inline;
 
 
 
66
  }
67
 
68
+ a.button.back-step {
69
+ color: #7FAD45 !important;
70
+ background-color: white !important;
71
+ border: none !important;
72
+ font-family: proxima-nova, Arial, Helvetica, sans-serif !important;
73
+ font-size: 14px !important;
74
+ line-height: 16px !important;
75
+ padding: 15px 35px 15px 35px !important;
76
+ display: inline;
77
+ float: left;
78
+ /* identical to box height */
79
+ text-transform: uppercase !important;
80
  }
81
 
82
+ .mc-woocommerce-header-steps {
83
+ display: block;
84
+ font-size: 12px;
85
+ line-height: 24px;
86
+ letter-spacing: 0.5px;
87
+ text-transform: uppercase;
88
+ margin-bottom: 15px;
89
+ color: #AFAFAF;
90
  }
91
 
92
+ .mc-woocommerce-header-title {
93
  display: block;
94
+ font-style: normal;
95
+ font-weight: 500;
96
+ font-size: 30px;
97
+ line-height: 28px;
98
+ color: #241C15;
99
+ margin-bottom: 15px;
100
  }
101
 
102
+
103
+ .mc-woocommerce-header-subtitle {
104
+ display: inline-block;
105
+ font-style: normal;
106
+ font-weight: normal;
107
+ font-size: 20px;
108
+ line-height: 30px;
109
+
110
+ /* or 150% */
111
+ letter-spacing: -0.32px;
112
+
113
+ /* Functional / Tuna */
114
+ color: #8C8C8C;
115
+ }
116
+
117
+ .mc-woocommerce-settings p {
118
  font-size: 14px;
119
+ font-family: "Proxima Nova Alt Light", Arial, Helvetica, sans-serif;
120
+ }
121
+
122
+ .mc-woocommerce-settings-header-wrapper.wiz-header .mc-woocommerce-settings-subtitles {
123
+ margin: 1em 0;
124
+ display: inline-block;
125
+ padding-left: 58px;
126
+ }
127
+
128
+ .mc-woocommerce-settings-subtitles {
129
+ font-family: "proxima-nova", Arial, Helvetica, sans-serif;
130
+ font-size: 22px !important;
131
+ line-height: 32px;
132
  color: #3C3C3C;
133
+ margin: 1em 1em 1em 13px;
134
+ max-width: 75%;
135
  }
136
 
137
+ .connect-buttons {
138
+ padding-left: 151px;
139
+ margin-top: 38px;
140
+ z-index: 2;
141
+ position: relative;
142
+ }
143
+
144
+ .connect-buttons .connect-button {
145
+ display: inline;
146
+ }
147
+
148
+ .description {
149
+ font-family: proxima-nova, Arial, Helvetica, sans-serif;
150
+ font-size: 12px !important;
151
+ line-height: 16px !important;
152
+ color: #868585 !important;
153
+ }
154
+
155
+ .description.support-form {
156
+ color: #444 !important;
157
  }
158
 
159
  .nav-tab-wrapper {
160
  border-bottom: 2px solid white !important;
161
  margin-bottom: 25px !important;
162
+ margin: 0 1em;
163
  }
164
 
165
  .nav-tab-wrapper .nav-tab {
210
  border-bottom: none;
211
  }
212
 
213
+ .notices-content-wrapper.sync-notices {
214
+ margin-bottom: 20px !important;
215
+ }
216
+
217
+ .mc-review-button {
218
+ border: 1px solid #DBD9D2 !important;
219
+ color: #0073AA !important;
220
+ }
221
+
222
+ .tab-content-wrapper,
223
+ .notices-content-wrapper {
224
+ width: 90%;
225
+ background: transparent;
226
  padding: 0;
227
+ margin: 0 auto 0 auto !important;
228
  -webkit-box-sizing: border-box;
229
  -moz-box-sizing: border-box;
230
  box-sizing: border-box;
231
  }
232
 
233
+ .tab-content-wrapper {
234
+ background: transparent !important;
235
+ }
236
+
237
+ .tab-content-wrapper fieldset{
238
+ background: transparent !important;
239
+ }
240
+
241
+ .tab-content-wrapper fieldset input{
242
+ background: white !important;
243
+ }
244
+
245
+ .tab-content-wrapper textarea{
246
+ background: white !important;
247
+ }
248
+
249
+ .tab-content-wrapper fieldset select {
250
+ background: white url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;
251
+ background-size: auto;
252
+
253
+ }
254
+
255
  .tab-content-wrapper *,
256
  .sync-content-wrapper {
257
  margin: 0;
272
 
273
  .tab-content-wrapper form {
274
  margin: 0 auto;
275
+ /* padding: 3em; */
276
  }
277
 
278
  .tab-content-wrapper fieldset{
279
+ background: transparent;
280
  width: 100%;
281
  }
282
 
283
+ .tab-content-wrapper fieldset .fieldset-header {
284
  float: left;
285
  padding-top: 3em;
286
  width: 100%;
287
+ font-size: 18px !important;
288
+ }
289
+
290
+ .tab-content-wrapper fieldset .fieldset-header.no-padding {
291
+ padding-top: 1em;
292
  }
293
 
294
  .tab-content-wrapper p.submit {
295
  margin-top: 0 !important;
296
  padding-top: 35px !important;
297
  margin-bottom: 45px !important;
 
298
  }
299
 
300
  .tab-content-wrapper p.submit:focus {
305
  color: red;
306
  }
307
 
308
+ a.button.create-account {
309
+ color: #7FAD45 !important;
310
+ background-color: white !important;
311
+ border: none !important;
312
+ font-family: proxima-nova, Arial, Helvetica, sans-serif !important;
313
+ font-size: 14px !important;
314
+ line-height: 16px !important;
315
+ padding: 15px 35px 15px 35px !important;
316
+
317
+ /* identical to box height */
318
+ text-transform: uppercase !important;
319
+ }
320
+
321
  .tab-content-submit,
322
  .mc-woocommerce-resync-button,
323
  .mc-woocommerce-log-button {
329
  /* identical to box height */
330
  text-transform: uppercase !important;
331
  color: #FFFFFF !important;
 
332
  border: none !important;
333
 
334
  }
335
 
336
  .oauth-description {
337
  display: none;
338
+ color: #8C8C8C;
339
+ position: absolute;
340
  }
341
 
342
  #mailchimp-oauth-connected {
359
  display:none;
360
  }
361
 
362
+ .tab-content-submit:not(.create-account):not(.mc-woocommerce-disconnect-button):not(.disconnect-confirm) {
 
363
  background: #7FAD45 !important;
364
  box-shadow:0 1px 0 #7FAD45 !important;
365
  text-shadow: 0 -1px 1px #7FAD45,1px 0 1px #7FAD45,0 1px 1px #7FAD45,-1px 0 1px #7FAD45 !important;
377
  box-shadow 0.3s ease-out;
378
  }
379
 
380
+ .disconnect-confirm {
381
  width:180px;
382
  margin: 0 0.5em !important;
383
+ background: #b83110 !important;
384
+ box-shadow:0 1px 0 #b83110 !important;
385
+ text-shadow: 0 -1px 1px #b83110,1px 0 1px #b83110,0 1px 1px #b83110,-1px 0 1px #b83110 !important;
386
+ -webkit-transition: background-color 0.3s ease-out,
387
+ text-shadow 0.3s ease-out,
388
+ box-shadow 0.3s ease-out;
389
+ -moz-transition: background-color 0.3s ease-out,
390
+ text-shadow 0.3s ease-out,
391
+ box-shadow 0.3s ease-out;
392
+ -o-transition: background-color 0.3s ease-out,
393
+ text-shadow 0.3s ease-out,
394
+ box-shadow 0.3s ease-out;
395
+ transition: background-color 0.3s ease-out,
396
+ text-shadow 0.3s ease-out,
397
+ box-shadow 0.3s ease-out;
398
  }
399
 
400
+ .disconnect-confirm:hover {
401
+ background: #F72E2E !important;
402
+ box-shadow:0 1px 0 #F72E2E !important;
403
+ text-shadow: 0 -1px 1px #F72E2E,1px 0 1px #F72E2E,0 1px 1px #F72E2E,-1px 0 1px #F72E2E !important;
404
+ }
405
+
406
+ .tab-content-submit:not(.mc-woocommerce-disconnect-button):not(.disconnect-confirm):hover {
407
  background: #9EC769 !important;
408
  box-shadow:0 1px 0 #9EC769 !important;
409
  text-shadow: 0 -1px 1px #9EC769,1px 0 1px #9EC769,0 1px 1px #9EC769,-1px 0 1px #9EC769 !important;
425
  .mc-woocommerce-resync-button,
426
  .mc-woocommerce-log-button {
427
  color: #3C3C3C !important;
428
+ background: #DBD9D2 !important;
429
+ box-shadow:0 1px 0 #DBD9D2 !important;
 
430
  -webkit-transition: background-color 0.3s ease-out,
431
  text-shadow 0.3s ease-out,
432
  box-shadow 0.3s ease-out;
447
  color: #3C3C3C !important;
448
  background: #DADADA !important;
449
  box-shadow:0 1px 0 #DADADA !important;
 
450
  -webkit-transition: background-color 0.3s ease-out,
451
  text-shadow 0.3s ease-out,
452
  box-shadow 0.3s ease-out;
465
  .mc-woocommerce-log-button {
466
  background: #fff !important;
467
  box-shadow:none !important;
 
468
  }
469
 
470
  .mc-woocommerce-log-button:hover {
494
 
495
  .sync-content-wrapper {
496
  display: table;
497
+ margin: auto;
498
+ width: 90%;
499
+ padding: 0.5rem 1rem;
 
 
 
 
 
 
 
 
 
500
  }
501
 
502
  .sync-more-wrapper {
503
  position:relative;
 
504
  height: 264px;
505
  }
506
 
507
+ .mc-comm-save {
508
+ position: absolute;
509
+ display: none;
510
+ font-size: 0.8em;
511
+ font-weight: 100 !important;
512
+ color: #628735;
513
  }
514
 
515
+ .sync-content-wrapper .sync-stats-wrapper {
516
+ position:relative;
517
+ background-color: white;
518
+ padding: 4px 0em 0 0em;
519
+ -webkit-border-radius: 4px;
520
+ -moz-border-radius: 4px;
521
+ border-radius: 4px;
522
  }
523
 
524
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-store{
525
+ margin-right: 13px;
 
 
526
  }
527
 
528
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-audience{
529
+ margin-left: 13px;
 
530
  }
531
 
532
+ .sync-content-wrapper .sync-stats-card {
533
+ border-bottom: 1px solid #DBD9D2;
534
+ margin: 1em 2em 0em 2em;
535
+ padding: 2em 1em;
536
+ min-height: 20px;
537
  }
538
 
539
+ .sync-content-wrapper .overview-stats-store {
540
+ margin-right: 13px;
541
+ margin-bottom: 16px;
542
+ padding: 2em 1em;
543
+ min-height: 20px;
 
 
 
544
  }
545
 
546
+ .sync-content-wrapper .last-updated {
547
+ margin-left: 13px;
548
+ margin-bottom: 16px;
549
+ padding: 2em 1em;
550
+ min-height: 20px;
551
+ }
552
+
553
+ .sync-content-wrapper .overview-stats-store .box,
554
+ .sync-content-wrapper .last-updated .box {
555
+ margin: 0 2em;
556
+ padding: 1em 0 0 0;
557
  min-height: 20px;
558
  }
559
 
567
 
568
  .sync-content-wrapper .sync-stats-card span.card_label,
569
  .sync-content-wrapper .sync-stats-card span.card_label{
 
570
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
571
  font-size: 14px;
572
  line-height: 14px;
587
  position: absolute;
588
  top: -1.3em;
589
  right: 0;
590
+ color: #DBD9D2;
591
  }
592
 
593
  .sync-content-wrapper .sync-stats-card .sync-loader {
617
  }
618
 
619
  .sync-content-wrapper .sync-controls-wrapper {
620
+ background-color: white;
621
  -webkit-border-radius: 4px;
622
  -moz-border-radius: 4px;
623
  border-radius: 4px;
624
+ width: 100%;
 
625
  font-family: proxima-nova, Arial, Helvetica, sans-serif;
626
  font-size: 14px ;
627
  line-height: 14px;
628
+ margin-bottom: 26px;
629
  }
630
 
631
  .sync-content-wrapper .sync-controls {
632
  padding: 1em 1em 1em 3em;
633
  font-size: 14px;
634
  line-height: 14px;
635
+ min-height: 90px;
636
+ position:relative;
637
+ }
638
+
639
+ .sync-content-wrapper .sync-controls .sync-controls-item {
640
+ display: inline;
641
+ float: left;
642
+ margin-right: 42px;
643
+
644
+ }
645
+
646
+ .sync-content-wrapper .sync-controls p {
647
+ white-space: nowrap;
648
+ overflow: hidden;
649
+ text-overflow: ellipsis;
650
+ max-width: 300px;
651
+ }
652
+
653
+
654
+ .sync-content-wrapper .sync-controls .sync-controls-item .sync-controls-label{
655
+ font-size: 13px;
656
+ line-height: 20px;
657
+ }
658
+
659
+ .sync-content-wrapper .sync-controls #mailchimp_account_connected,
660
+ .sync-content-wrapper .sync-controls #mailchimp_list_name {
661
+ font-size: 20px;
662
+ line-height: 28px;
663
  }
664
 
665
  .sync-content-wrapper .sync-controls .mc-woocommerce-last-sync{
666
+ display: table;
667
+ float: right;
668
+ min-height:90px;
669
+ margin-right: 30px;
670
  }
671
 
672
+ .sync-content-wrapper .sync-controls .mc-woocommerce-last-sync p{
673
+ display: table-cell;
674
+ vertical-align: middle;
675
+ }
676
+
677
+ .mc-woocommerce-disconnect-button {
678
+ margin-top: 1em !important;
679
+ border: 1px solid #b83110 !important;
680
+ color: #b83110 !important;
681
+ background: #F1F1F1 !important;
682
+ box-shadow:0 1px 0 #F1F1F1 !important;
683
+ text-shadow: 0 -1px 1px #F1F1F1,1px 0 1px #F1F1F1,0 1px 1px #F1F1F1,-1px 0 1px #F1F1F1 !important;
 
 
 
 
684
  -webkit-transition: background-color 0.3s ease-out;
685
  -moz-transition: background-color 0.3s ease-out;
686
  -o-transition: background-color 0.3s ease-out;
687
  transition: background-color 0.3s ease-out;
688
+ padding:10px !important;
689
  }
690
+
691
+ .mc-woocommerce-disconnect-button span.dashicons{
692
+
693
+ margin: -3px auto;
694
  }
695
 
696
+ .mc-woocommerce-disconnect-button:hover {
 
 
 
 
 
 
697
  text-decoration: none !important;
698
+ background: #f0f0f0 !important;
699
  }
700
 
701
+ .mc-woocommerce-disconnect-button svg {
702
  margin-right: 2em;
703
+ padding: 10px !important;
704
+ }
705
+
706
+
707
+ .tab-content-wrapper.overview-example {
708
+ position: absolute;
709
+ z-index:1;
710
+ width:200px;
711
+ height:200px;
712
+ margin:50px auto;
713
+ width:100%;
714
+ text-align: center;
715
  }
716
 
717
+ .tab-content-wrapper.overview-example:before {
718
+ position:absolute;
719
+ z-index:-1;
720
+ top:0;
721
+ left:0;
722
+ width:100%;
723
+ height:70%;
724
+ content:"";
725
+ background-color:white;
726
+ }
727
+
728
+ .tab-content-wrapper.overview-example img{
729
+ width: 90%;
730
+ margin: 0 auto;
731
+ border: 1px solid silver;
732
+ }
733
 
734
  .tab-content-wrapper .box {
735
  padding: 0.5rem 1rem;
737
  clear:both;
738
  }
739
 
 
740
  .sync-more-wrapper .box {
 
741
  margin: 0;
742
  }
743
 
744
  .sync-more-wrapper .box {
 
745
  -webkit-border-radius: 4px;
746
  -moz-border-radius: 4px;
747
  border-radius: 4px;
758
 
759
  .sync-more-wrapper .box.box-half .content{
760
  padding: 0 2em;
761
+ background: white;
762
+ min-height: 260px;
763
+ -webkit-border-radius: 4px;
764
+ -moz-border-radius: 4px;
765
+ border-radius: 4px;
766
+ }
767
+
768
+ .sync-more-wrapper .box.box-half.resync-container{
769
+ width: 30%;
770
+ }
771
+
772
+ .sync-more-wrapper .box.box-half.resync-container .content{
773
+ margin-left: 13px;
774
+ }
775
+
776
+ .sync-more-wrapper .box.box-half.support-container {
777
+ width: 70%;
778
+ }
779
+
780
+ .sync-more-wrapper .box.box-half.support-container ul {
781
+ padding-bottom: 1em;
782
+ }
783
+
784
+ .sync-more-wrapper .box.box-half.support-container .content{
785
+ margin-right: 13px;
786
  }
787
 
788
  .sync-content-wrapper .box.box-half {
811
  .tab-content-wrapper fieldset input[type="password"],
812
  .tab-content-wrapper fieldset input[type="email"],
813
  .tab-content-wrapper fieldset textarea {
814
+ border: 1px solid #DBD9D2;
815
  box-sizing: border-box;
816
  border-radius: 4px;
817
  padding: 0.6em 1.5em;
821
  }
822
 
823
  .tab-content-wrapper .mailchimp-select-wrapper {
824
+ border: 1px solid #DBD9D2;
825
  padding: 6px 6px 4px 20px;
826
  -webkit-border-radius: 4px;
827
  -moz-border-radius: 4px;
828
  border-radius: 4px;
829
  box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
830
+ background-color: white;
831
  }
832
 
833
  .tab-content-wrapper .mailchimp-select-wrapper select {
856
  outline: none;
857
  }
858
 
859
+ .tab-content-wrapper fieldset input[type='checkbox']:not(#mailchimp_woocommerce_newsletter) {
860
  width: 2em;
861
  height: 2em;
862
  border-radius: 4px;
863
+ border: 1px solid #DBD9D2;
864
  }
865
+
866
+ .tab-content-wrapper fieldset input[type='checkbox']:not(#mailchimp_woocommerce_newsletter):checked::before {
867
  color: #7FAD45;
868
  margin: 0.6em 0px 0px 0.2em;
869
  content: url("data:image/svg+xml;charset=UTF-8,%3csvg width='13' height='9' viewBox='0 0 13 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.75 0.5L12.25 2L5.26 9L0.75 4.5L2.25 3L5.26 6L10.75 0.5Z' fill='%237FAD45'/%3e%3c/svg%3e ");
875
  .sync-content-wrapper fieldset input[type='radio'] {
876
  width: 2em;
877
  height: 2em;
878
+ border: 1px solid #DBD9D2;
879
  margin-right: 10px;
880
  }
881
 
893
  margin-bottom: 10px;
894
  }
895
 
 
 
 
 
 
 
896
  .tab-content-wrapper fieldset textarea {
897
+ border: 1px solid #DBD9D2;
898
  box-sizing: border-box;
899
  border-radius: 4px;
900
  padding: 15px 20px;
954
 
955
  #log-actions {
956
  float: right;
957
+ flex: 0 0 104px;
958
  margin-left: 20px;
959
  }
960
 
1010
  padding-top: 20px;
1011
  }
1012
 
1013
+ #mc-woocommerce-create-account-go {
1014
+ float:right;
1015
+ }
1016
+
1017
+ #mc-woocommerce-create-account-go-spinner {
1018
+ float:left;
1019
+ }
1020
+
1021
  .mc-woocommerce-modal {
1022
  width: 100%;
1023
  display: flex;
1038
  }
1039
 
1040
  #mc-woocommerce-create-account {
1041
+ top:-235px;
1042
  }
1043
 
1044
  .mc-woocommerce-modal .terms {
1168
  }
1169
 
1170
  .mc-woocommerce-create-account-step .whitebtn{
 
1171
  background: white !important;
1172
+ box-shadow: 0 1px 0 #DBD9D2 !important;
1173
+ text-shadow: 0 -1px 1px #DBD9D2,1px 0 1px #DBD9D2,0 1px 1px #DBD9D2,-1px 0 1px #DBD9D2 !important;
 
1174
  }
1175
 
1176
  #mc-woocommerce-create-account-next {
1177
+ float: right;
1178
  }
1179
 
1180
  #mc-woocommerce-create-account-prev {
1190
  margin-left: 13px;
1191
  }
1192
 
1193
+ .settings-sample-frame {
1194
+
1195
+ border: 1px solid black;
1196
+ padding: 2em;
1197
+ position: relative;
1198
+ background: rgb(255,255,255);
1199
+ }
1200
+
1201
+ .settings-sample-frame .mailchimp-newsletter{
1202
+ margin-top: 1em;
1203
+ }
1204
+
1205
+ .settings-sample-frame .mailchimp-newsletter label{
1206
+ display: inline;
1207
+ }
1208
+
1209
+ .settings-sample-frame .overlay {
1210
+ position: absolute;
1211
+ width:100%;
1212
+ height: 100%;
1213
+ top: 0;
1214
+ left: 0;
1215
+ background: rgb(255,255,255);
1216
+ background: linear-gradient(0deg, rgba(255,255,255,0) 10%, rgba(255,255,255,0.6964986678265056) 36%, rgba(255,255,255,1) 100%);
1217
+ }
1218
 
1219
  @media screen and (max-width: 782px) {
1220
+ .tab-content-wrapper, .notices-content-wrapper {
1221
+ padding: 0 1em;
1222
+ }
1223
  .tab-content-submit,
1224
  .mc-woocommerce-resync-button {
1225
  padding: 15px 35px 15px 35px !important;
1242
  font-size: 16px;
1243
  line-height: 32px;
1244
  }
1245
+
1246
+ .mc-woocommerce-settings-header-wrapper.wiz-header .mc-woocommerce-settings-subtitles {
1247
+ padding-left: 28px;
1248
+ margin-top: 28px;
1249
+ }
1250
+
1251
  .tab-content-wrapper .box.box-half,
1252
  .tab-content-wrapper .box.box-third,
1253
+ .sync-more-wrapper .box.box-half,
1254
+ .sync-content-wrapper .box.box-half {
1255
  width: 100%;
1256
  }
1257
 
1258
+ .sync-content-wrapper {
1259
+ padding: 0 1rem;
1260
  }
1261
 
1262
  .sync-content-wrapper .sync-stats-wrapper {
1263
  display: block;
1264
  position:relative;
1265
+ margin-bottom: 14px;
1266
  margin-right: 0;
1267
  }
1268
 
1277
  margin-bottom: 0;
1278
  }
1279
 
1280
+ .sync-content-wrapper .sync-controls-wrapper,
1281
+ .sync-more-wrapper .box.box-half.support-container {
1282
  display: block;
1283
  width: 100%;
1284
  position:relative;
1285
+ margin-bottom: 14px;
1286
  }
1287
 
1288
+ .sync-more-wrapper .box.box-half .content {
1289
+ padding: 0 1em;
1290
  }
1291
 
1292
+ .sync-content-wrapper .sync-controls {
1293
+ min-height: 150px;
1294
+ }
1295
 
1296
+ .sync-content-wrapper .sync-controls .sync-controls-item {
1297
+ display: inline;
1298
+ float: left;
1299
+ margin-right: 42px;
1300
+ }
1301
+
1302
  .sync-content-wrapper .sync-controls .spinner {
1303
  margin: -3px 10px 0 5px;
1304
  }
1305
+
1306
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-store,
1307
+ .sync-more-wrapper .box.box-half.support-container .content {
1308
+ margin-right: 0px;
1309
+ }
1310
 
1311
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-store,
1312
+ .sync-content-wrapper .sync-stats-wrapper.overview-stats-store,
1313
+ .sync-content-wrapper .sync-stats-wrapper.last-updated {
1314
+ margin-right: 0px;
1315
+ margin-bottom: 26px;
1316
  }
1317
+
1318
+ .sync-content-wrapper .sync-stats-wrapper.sync-stats-audience,
1319
+ .sync-content-wrapper .sync-stats-wrapper.last-updated,
1320
+ .sync-more-wrapper .box.box-half.resync-container .content {
1321
+ margin-left: 0;
1322
+ }
1323
+
1324
+ .sync-more-wrapper .box.box-half.support-container,
1325
+ .sync-more-wrapper .box.box-half.resync-container {
1326
+ width: 100%;
1327
+
1328
+ }
1329
+
1330
  .view-log-select,
1331
  .view-log-submit {
1332
  width: 100%;
1359
  border-radius: 0 !important;
1360
  }
1361
 
1362
+ .connect-buttons {
1363
+ padding-left: 28px;
1364
+ width: 100%;
1365
+ }
1366
+
1367
  .nav-tab:last-child {
1368
  border: none;
1369
  }
1382
  .mc-woocommerce-create-account-step {
1383
  padding: 5px 5px 10px 5px;
1384
  }
1385
+
1386
+ .mc-woocommerce-settings-header {
1387
+ margin-top: 1em !important;
1388
+ }
1389
+
1390
+ .sync-content-wrapper .sync-controls {
1391
+ min-height: 280px;
1392
+ }
1393
+
1394
+ .mc-woocommerce-settings-header-wrapper.wiz-header .mc-woocommerce-settings-subtitles {
1395
+ padding-left: 28px;
1396
+ }
1397
  }
admin/js/mailchimp-woocommerce-admin.js CHANGED
@@ -2,18 +2,6 @@
2
  'use strict';
3
 
4
  $( window ).load(function() {
5
- // show/hide wizard tabs tooltips
6
- $('.wizard-tab a').hover(function (e) {
7
- e.stopPropagation();
8
- $('.wizard-tab-tooltip').hide();
9
- $(this).next('.wizard-tab-tooltip').show();
10
- });
11
-
12
- $('.wizard-tab a').mouseleave(function (e) {
13
- e.stopPropagation();
14
- $('.wizard-tab-tooltip').hide();
15
- $('.wizard-tab-active .wizard-tab-tooltip').show();
16
- });
17
 
18
  // show/hide optional settings
19
  var optionalSettings = false;
@@ -59,8 +47,6 @@
59
  $('#log-viewer .spinner').hide().css("visibility", "hidden");
60
  $('#log-viewer #log-content').css("visibility", "visible");
61
  });
62
-
63
-
64
  });
65
 
66
  $('#mailchimp-log-pref').change(function (e) {
@@ -97,14 +83,8 @@
97
  });
98
 
99
  // delete log button
100
- var mailchimp_woocommerce_delete_log = false;
101
  $('.delete-log-button').click(function (e) {
102
- if (mailchimp_woocommerce_delete_log) {
103
- mailchimp_woocommerce_delete_log = false; // reset flag
104
- return; // let the event bubble away
105
- }
106
  e.preventDefault();
107
- var me = $(e.target);
108
 
109
  Swal.fire({
110
  title: phpVars.l10n.are_you_sure,
@@ -124,8 +104,22 @@
124
 
125
  }).then((result) => {
126
  if (result.value) {
127
- mailchimp_woocommerce_delete_log = true;
128
- me.click();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  }
130
  })
131
  });
@@ -133,7 +127,7 @@
133
  $('.mc-woocommerce-resync-button').click(function(e) {
134
  e.preventDefault();
135
  Swal.fire({
136
- title: 'Resync Request In Progress',
137
  onBeforeOpen: () => {
138
  Swal.showLoading()
139
  }
@@ -145,7 +139,7 @@
145
  window.location.reload();
146
  }).fail(function(xhr) {
147
  Swal.hideLoading();
148
- Swal.showValidationMessage("Could not resync orders, please try again.");
149
  });
150
  });
151
 
@@ -167,7 +161,7 @@
167
 
168
  const swalWithBootstrapButtons = Swal.mixin({
169
  customClass: {
170
- confirmButton: 'button button-primary tab-content-submit disconnect-button',
171
  cancelButton: 'button button-default mc-woocommerce-resync-button disconnect-button'
172
  },
173
  buttonsStyling: false,
@@ -178,6 +172,8 @@
178
  text: phpVars.l10n.store_disconnect_subtitle,
179
  type: 'warning',
180
  showCancelButton: true,
 
 
181
  confirmButtonText: phpVars.l10n.store_disconnect_confirm,
182
  cancelButtonText: phpVars.l10n.no_cancel,
183
  reverseButtons: true,
@@ -195,7 +191,7 @@
195
  data+="&mailchimp_woocommerce_disconnect_store=1"
196
 
197
  Swal.fire({
198
- title: 'Disconnecting Store In Progress',
199
  onBeforeOpen: () => {
200
  Swal.showLoading()
201
  }
@@ -288,14 +284,14 @@
288
 
289
  swalWithBootstrapButtons.fire({
290
  type : 'error',
291
- title: 'Login Popup is blocked!',
292
- text: 'Please allow your browser to show popups for this page',
293
  footer: '<a href="https://mailchimp.com/help/enable-pop-ups-in-your-browser/">How to Enable Pop-ups in Your Browser</a>',
294
  showCancelButton: true,
295
  cancelButtonColor: '#d33',
296
  confirmButtonColor: '#7fad45',
297
- cancelButtonText: 'Cancel',
298
- confirmButtonText: 'Try again',
299
  reverseButtons: true
300
  }).then((result) => {
301
  if (result.value) {
@@ -314,22 +310,14 @@
314
  $('#mailchimp-oauth-waiting').hide();
315
  $('#mailchimp-oauth-connecting').show();
316
 
317
- // grab a copy of the ajax settings default headers
318
- var previous_default_headers = ($.ajaxSettings && $.ajaxSettings.headers) ?
319
- $.ajaxSettings.headers : {};
 
320
 
321
- // set the default headers to NOTHING because the oauth server will block
322
- // any non standard header that it was not expecting to receive and it was
323
- // preventing folks from being able to connect.
324
- $.ajaxSettings.headers = {};
325
-
326
  // ping status to check if auth was accepted
327
- $.post(domain + '/api/status/' + token).done(function(statusData) {
328
-
329
- // set the headers back to the previous defaults
330
- $.ajaxSettings.headers = previous_default_headers;
331
-
332
- if (statusData.status == "accepted") {
333
  // call for finish endpoint to retrieve access_token
334
  var finishData = {
335
  action: 'mailchimp_woocommerce_oauth_finish',
@@ -396,12 +384,12 @@
396
  $.post(ajaxurl, data, function(response) {
397
  if (response.success) {
398
  $('#mc-comm-save').html(response.data);
399
- $('#mc-comm-save').css('color', '#628735').show().fadeOut(5000);
400
  switch_button.checked = opt;
401
  }
402
  else {
403
  $('#mc-comm-save').html(response.data.error);
404
- $('#mc-comm-save').css('color', 'red').show().fadeOut(5000);
405
  switch_button.checked = 1 - opt;
406
  $('.comm_box_status').hide();
407
  $('#comm_box_status_' + (1 - opt)).show();
@@ -432,7 +420,7 @@
432
  });
433
 
434
  // Account create functionality
435
- $('#mc-woocommerce-create-account-next').click(function () {
436
  var next_button = $(this);
437
  var spinner = $(this).next('.spinner');
438
  spinner.css('visibility', 'visible')
@@ -491,7 +479,7 @@
491
 
492
  });
493
 
494
- $('#mc-woocommerce-create-account-go').click(function () {
495
  var email = $('input#email');
496
  var firstName = $('input#first_name');
497
  var lastName = $('input#last_name');
@@ -715,8 +703,8 @@
715
  };
716
 
717
  Swal.fire({
718
- title: 'Sending Support Request',
719
- html: 'please wait',
720
  onBeforeOpen: () => {
721
  Swal.showLoading();
722
  $.post(ajaxurl, data, function(response) {
@@ -730,8 +718,8 @@
730
  Swal.fire({
731
  icon: 'success',
732
  timer: 2000,
733
- title: 'Message Received',
734
- html: 'Thanks, your message has been received.',
735
  });
736
  } else if (response.data.error) {
737
  $('#error').show();
@@ -753,6 +741,40 @@
753
  }
754
  });
755
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
756
  });
757
  })( jQuery );
758
 
2
  'use strict';
3
 
4
  $( window ).load(function() {
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  // show/hide optional settings
7
  var optionalSettings = false;
47
  $('#log-viewer .spinner').hide().css("visibility", "hidden");
48
  $('#log-viewer #log-content').css("visibility", "visible");
49
  });
 
 
50
  });
51
 
52
  $('#mailchimp-log-pref').change(function (e) {
83
  });
84
 
85
  // delete log button
 
86
  $('.delete-log-button').click(function (e) {
 
 
 
 
87
  e.preventDefault();
 
88
 
89
  Swal.fire({
90
  title: phpVars.l10n.are_you_sure,
104
 
105
  }).then((result) => {
106
  if (result.value) {
107
+ var data = {
108
+ action:'mailchimp_woocommerce_delete_log_file',
109
+ log_file: $('#log_file').val()
110
+ };
111
+
112
+ $('#log-viewer #log-content').css("visibility", "hidden");
113
+ $('#log-viewer .spinner').show().css("visibility", "visible");
114
+
115
+ $.post(ajaxurl, data, function(response) {
116
+ console.log('deleted log file', data.log_file);
117
+ if (response.success) {
118
+ window.location.reload();
119
+ }
120
+ $('#log-viewer .spinner').hide().css("visibility", "hidden");
121
+ $('#log-viewer #log-content').css("visibility", "visible");
122
+ });
123
  }
124
  })
125
  });
127
  $('.mc-woocommerce-resync-button').click(function(e) {
128
  e.preventDefault();
129
  Swal.fire({
130
+ title: phpVars.l10n.resync_in_progress,
131
  onBeforeOpen: () => {
132
  Swal.showLoading()
133
  }
139
  window.location.reload();
140
  }).fail(function(xhr) {
141
  Swal.hideLoading();
142
+ Swal.showValidationMessage(phpVars.l10n.resync_failed);
143
  });
144
  });
145
 
161
 
162
  const swalWithBootstrapButtons = Swal.mixin({
163
  customClass: {
164
+ confirmButton: 'button button-primary tab-content-submit disconnect-confirm',
165
  cancelButton: 'button button-default mc-woocommerce-resync-button disconnect-button'
166
  },
167
  buttonsStyling: false,
172
  text: phpVars.l10n.store_disconnect_subtitle,
173
  type: 'warning',
174
  showCancelButton: true,
175
+ confirmButtonColor: '#3085d6',
176
+ cancelButtonColor: '#d33',
177
  confirmButtonText: phpVars.l10n.store_disconnect_confirm,
178
  cancelButtonText: phpVars.l10n.no_cancel,
179
  reverseButtons: true,
191
  data+="&mailchimp_woocommerce_disconnect_store=1"
192
 
193
  Swal.fire({
194
+ title: phpVars.l10n.store_disconnect_in_progress,
195
  onBeforeOpen: () => {
196
  Swal.showLoading()
197
  }
284
 
285
  swalWithBootstrapButtons.fire({
286
  type : 'error',
287
+ title: phpVars.l10n.login_popup_blocked,
288
+ text: phpVars.l10n.login_popup_blocked_desc,
289
  footer: '<a href="https://mailchimp.com/help/enable-pop-ups-in-your-browser/">How to Enable Pop-ups in Your Browser</a>',
290
  showCancelButton: true,
291
  cancelButtonColor: '#d33',
292
  confirmButtonColor: '#7fad45',
293
+ cancelButtonText: phpVars.l10n.no_cancel,
294
+ confirmButtonText: phpVars.l10n.try_again,
295
  reverseButtons: true
296
  }).then((result) => {
297
  if (result.value) {
310
  $('#mailchimp-oauth-waiting').hide();
311
  $('#mailchimp-oauth-connecting').show();
312
 
313
+ var checkData = {
314
+ action:'mailchimp_woocommerce_oauth_status',
315
+ url: domain + '/api/status/' + token,
316
+ };
317
 
 
 
 
 
 
318
  // ping status to check if auth was accepted
319
+ $.post(ajaxurl, checkData).done(function(statusData) {
320
+ if (statusData.data.status == "accepted") {
 
 
 
 
321
  // call for finish endpoint to retrieve access_token
322
  var finishData = {
323
  action: 'mailchimp_woocommerce_oauth_finish',
384
  $.post(ajaxurl, data, function(response) {
385
  if (response.success) {
386
  $('#mc-comm-save').html(response.data);
387
+ $('#mc-comm-save').css('color', '#628735').show().fadeOut(3000);
388
  switch_button.checked = opt;
389
  }
390
  else {
391
  $('#mc-comm-save').html(response.data.error);
392
+ $('#mc-comm-save').css('color', 'red').show().fadeOut(3000);
393
  switch_button.checked = 1 - opt;
394
  $('.comm_box_status').hide();
395
  $('#comm_box_status_' + (1 - opt)).show();
420
  });
421
 
422
  // Account create functionality
423
+ $('#mc-woocommerce-create-account-next').unbind().click(function (e) {
424
  var next_button = $(this);
425
  var spinner = $(this).next('.spinner');
426
  spinner.css('visibility', 'visible')
479
 
480
  });
481
 
482
+ $('#mc-woocommerce-create-account-go').unbind().click(function () {
483
  var email = $('input#email');
484
  var firstName = $('input#first_name');
485
  var lastName = $('input#last_name');
703
  };
704
 
705
  Swal.fire({
706
+ title: phpVars.l10n.support_message_sending,
707
+ html: phpVars.l10n.please_wait,
708
  onBeforeOpen: () => {
709
  Swal.showLoading();
710
  $.post(ajaxurl, data, function(response) {
718
  Swal.fire({
719
  icon: 'success',
720
  timer: 2000,
721
+ title: phpVars.l10n.support_message_ok,
722
+ html: phpVars.l10n.support_message_desc,
723
  });
724
  } else if (response.data.error) {
725
  $('#error').show();
741
  }
742
  });
743
 
744
+ var checkbox_label = phpVars.l10n.subscribe_newsletter;
745
+ var label = checkbox_label;
746
+ $('#mailchimp-woocommerce-newsletter-checkbox-label').keyup(function(event){
747
+ event.stopPropagation();
748
+ if ($('#mailchimp-woocommerce-newsletter-checkbox-label').val() == "") {
749
+ label = checkbox_label;
750
+ }
751
+ else label = $('#mailchimp-woocommerce-newsletter-checkbox-label').val();
752
+ $('#preview-label').html(label);
753
+ });
754
+
755
+ switchPreviewCheckbox(phpVars.current_optin_state)
756
+ $('input[type="radio"]').change(function(event){
757
+ event.stopPropagation();
758
+ switchPreviewCheckbox(event.currentTarget.value);
759
+ });
760
+
761
+ function switchPreviewCheckbox(currentState) {
762
+ switch (currentState) {
763
+ case 'check':
764
+ $('.mailchimp-newsletter').show();
765
+ $('.mailchimp-newsletter input').prop( "checked", true );
766
+ break;
767
+ case 'uncheck':
768
+ $('.mailchimp-newsletter').show();
769
+ $('.mailchimp-newsletter input').prop( "checked", false );
770
+ break;
771
+ case 'hide':
772
+ $('.mailchimp-newsletter').hide();
773
+ break;
774
+ default:
775
+ break;
776
+ }
777
+ }
778
  });
779
  })( jQuery );
780
 
admin/partials/mailchimp-woocommerce-admin-tabs.php CHANGED
@@ -22,7 +22,7 @@ if ($mc_configured && !$show_sync_tab && (bool) get_site_transient('mailchimp_wo
22
  $active_tab = 'sync';
23
  }
24
 
25
- $show_campaign_defaults = true;
26
  $has_valid_api_key = false;
27
  $allow_new_list = true;
28
  $only_one_list = false;
@@ -37,7 +37,7 @@ if (isset($options['mailchimp_api_key'])) {
37
 
38
  // if we don't have a valid api key we need to redirect back to the 'api_key' tab.
39
  if (($mailchimp_lists = $handler->getMailChimpLists()) && is_array($mailchimp_lists)) {
40
- $show_campaign_defaults = true;
41
  $allow_new_list = false;
42
  $only_one_list = count($mailchimp_lists) === 1;
43
 
@@ -49,7 +49,7 @@ if (isset($options['mailchimp_api_key'])) {
49
  }
50
 
51
  //display wizard if not all steps are complete
52
- if ($show_sync_tab && $this->getData('validation.store_info', false) && $this->getData('validation.campaign_defaults', false) && $this->getData('validation.newsletter_settings', false)) {
53
  $show_wizard = false;
54
  }
55
 
@@ -62,225 +62,243 @@ else {
62
  $active_tab = 'api_key';
63
  }
64
 
65
-
66
- //var_dump(array('jordan' => array('active' => $active_tab, 'configured' => $mc_configured, 'api_key' => mailchimp_get_api_key()))); die();
67
-
68
  ?>
69
 
70
- <?php if (!defined('PHP_VERSION_ID') || (PHP_VERSION_ID < 70000)): ?>
71
- <div data-dismissible="notice-php-version" class="error notice notice-error">
72
- <p><?php esc_html_e('Mailchimp says: Please upgrade your PHP version to a minimum of 7.0', 'mailchimp-for-woocommerce'); ?></p>
73
- </div>
74
- <?php endif; ?>
75
-
76
- <?php if (!empty($has_api_error)): ?>
77
- <div data-dismissible="notice-api-error" class="error notice notice-error is-dismissible">
78
- <p><?php esc_html_e("Mailchimp says: API Request Error - ".$has_api_error, 'mailchimp-for-woocommerce'); ?></p>
79
- </div>
80
- <?php endif; ?>
81
-
82
- <!-- Create a header in the default WordPress 'wrap' container -->
83
- <div class="mc-woocommerce-settings wrap">
84
-
85
- <svg width="46" height="49" viewBox="0 0 46 49" fill="none" xmlns="http://www.w3.org/2000/svg">
86
- <path d="M34.5458 23.5193C34.8988 23.4778 35.2361 23.4759 35.5457 23.5193C35.7252 23.107 35.7568 22.397 35.5951 21.6239C35.3544 20.4741 35.029 19.7778 34.3584 19.8863C33.6859 19.9948 33.6622 20.8271 33.9028 21.9769C34.037 22.6238 34.2776 23.1761 34.5458 23.5193Z" fill="black"/>
87
- <path d="M28.7763 24.4284C29.2575 24.6394 29.5534 24.7795 29.6678 24.6572C29.7427 24.5803 29.719 24.4363 29.6046 24.2489C29.368 23.8624 28.8788 23.4679 28.3621 23.249C27.303 22.7934 26.0407 22.9453 25.0664 23.6454C24.745 23.8801 24.4393 24.2075 24.4826 24.4047C24.4965 24.4698 24.5458 24.5172 24.6582 24.5329C24.9225 24.5625 25.8494 24.0951 26.9164 24.03C27.6718 23.9827 28.295 24.2174 28.7763 24.4284Z" fill="black"/>
88
- <path d="M27.8105 24.9806C27.1852 25.0793 26.8381 25.2863 26.6172 25.4777C26.4279 25.6433 26.3115 25.8267 26.3115 25.9549C26.3115 26.0161 26.3391 26.0516 26.3589 26.0693C26.3865 26.095 26.422 26.1088 26.4614 26.1088C26.6034 26.1088 26.919 25.9826 26.919 25.9826C27.7907 25.6709 28.3647 25.7084 28.9346 25.7735C29.2502 25.809 29.3981 25.8287 29.4672 25.7202C29.4869 25.6887 29.5125 25.6216 29.4494 25.521C29.3054 25.2804 28.6723 24.8781 27.8105 24.9806Z" fill="black"/>
89
- <path d="M32.5975 27.0061C33.0235 27.2152 33.4909 27.1324 33.6428 26.8227C33.7946 26.5131 33.5737 26.093 33.1497 25.8839C32.7237 25.6749 32.2563 25.7577 32.1044 26.0673C31.9506 26.377 32.1734 26.7971 32.5975 27.0061Z" fill="black"/>
90
- <path d="M35.3306 24.6177C34.9854 24.6118 34.6995 24.9905 34.6916 25.4638C34.6837 25.9372 34.9578 26.3257 35.303 26.3317C35.6481 26.3376 35.9341 25.9589 35.942 25.4855C35.9499 25.0122 35.6757 24.6237 35.3306 24.6177Z" fill="black"/>
91
- <path d="M12.1324 33.1577C12.0456 33.0492 11.9056 33.0827 11.7695 33.1143C11.6749 33.136 11.5664 33.1616 11.448 33.1596C11.1936 33.1557 10.9786 33.0452 10.8583 32.8598C10.7006 32.6192 10.7104 32.2583 10.884 31.8461C10.9076 31.7909 10.9353 31.7297 10.9648 31.6607C11.241 31.0394 11.7064 30 11.1857 29.008C10.7932 28.2625 10.1542 27.797 9.38702 27.7004C8.64939 27.6077 7.89006 27.8798 7.40685 28.4143C6.64358 29.2565 6.52328 30.4044 6.6712 30.8087C6.72445 30.9566 6.80925 30.998 6.87237 31.0059C7.00254 31.0237 7.19385 30.929 7.31416 30.6055C7.32205 30.5819 7.33388 30.5464 7.34769 30.501C7.40094 30.3294 7.50152 30.0099 7.66522 29.7555C7.86245 29.4478 8.17012 29.2348 8.53105 29.1579C8.89789 29.079 9.2746 29.15 9.58819 29.3551C10.1227 29.7062 10.3298 30.361 10.101 30.9862C9.98264 31.3096 9.79133 31.9289 9.83275 32.4378C9.91756 33.4673 10.5507 33.8795 11.1206 33.9249C11.6729 33.9466 12.0594 33.6349 12.1581 33.4081C12.2133 33.274 12.164 33.1932 12.1324 33.1577Z" fill="black"/>
92
- <path d="M44.044 31.2761C44.0223 31.2012 43.8862 30.7002 43.6969 30.0967C43.5075 29.4932 43.3142 29.0672 43.3142 29.0672C44.0696 27.9351 44.0834 26.9233 43.9828 26.3514C43.8763 25.6414 43.5805 25.0359 42.9829 24.4107C42.3873 23.7854 41.1684 23.1445 39.4545 22.6632C39.2593 22.608 38.6123 22.4305 38.5551 22.4127C38.5512 22.3753 38.5078 20.2945 38.4684 19.3991C38.4408 18.7522 38.3836 17.7444 38.0719 16.7504C37.6992 15.4053 37.0483 14.2298 36.2377 13.4764C38.4763 11.157 39.8726 8.60091 39.8707 6.40774C39.8647 2.19102 34.6855 0.914962 28.3033 3.55781C28.2974 3.55978 26.9602 4.1278 26.9503 4.13174C26.9444 4.12582 24.5066 1.73346 24.4692 1.7019C17.1954 -4.64488 -5.55475 20.6436 1.71899 26.7853L3.30864 28.1323C2.89644 29.2013 2.73471 30.4241 2.86685 31.7396C3.03647 33.4299 3.90822 35.0511 5.32234 36.3015C6.66348 37.4908 8.42669 38.2422 10.1386 38.2402C12.9688 44.7626 19.4359 48.7643 27.0193 48.9891C35.153 49.2317 41.981 45.4134 44.8428 38.5578C45.0301 38.0765 45.825 35.909 45.825 33.9939C45.825 32.0729 44.7382 31.2761 44.044 31.2761ZM10.7638 36.41C10.5173 36.4514 10.2649 36.4691 10.0104 36.4632C7.55298 36.3981 4.90027 34.1852 4.63598 31.5621C4.34409 28.6629 5.82527 26.4322 8.44839 25.9017C8.76198 25.8386 9.14066 25.8011 9.54892 25.8228C11.0183 25.9037 13.1838 27.0318 13.6789 30.2328C14.1187 33.0689 13.4225 35.9564 10.7638 36.41ZM8.02041 24.1681C6.38736 24.4856 4.9476 25.4106 4.06797 26.6886C3.54137 26.2508 2.56115 25.4007 2.38956 25.0694C0.985306 22.4009 3.92202 17.2138 5.97516 14.285C11.0478 7.04676 18.9922 1.56581 22.6705 2.55984C23.2681 2.72945 25.2482 5.02518 25.2482 5.02518C25.2482 5.02518 21.5719 7.06451 18.1618 9.90853C13.5704 13.4468 10.0992 18.5885 8.02041 24.1681ZM33.8079 35.3252C33.8611 35.3035 33.8986 35.2424 33.8927 35.1812C33.8848 35.1063 33.8177 35.0531 33.7448 35.0609C33.7448 35.0609 29.8969 35.6309 26.26 34.2996C26.6564 33.0117 27.7096 33.4772 29.3012 33.6054C32.1709 33.777 34.7408 33.3569 36.642 32.8125C38.2889 32.3392 40.4505 31.4083 42.1309 30.0829C42.6969 31.3274 42.8981 32.6962 42.8981 32.6962C42.8981 32.6962 43.3359 32.6173 43.7028 32.8441C44.0499 33.0571 44.3024 33.5009 44.1288 34.6448C43.7758 36.7847 42.8665 38.5223 41.338 40.1198C40.4071 41.1217 39.277 41.9935 37.9852 42.6266C37.2988 42.9875 36.5671 43.2991 35.7959 43.5516C30.033 45.4331 24.1339 43.3642 22.2326 38.9207C22.0807 38.5874 21.9525 38.2363 21.852 37.8714C21.0414 34.9426 21.7297 31.43 23.8795 29.2171C23.8795 29.2171 23.8795 29.2171 23.8795 29.2151C24.0116 29.0751 24.1477 28.9094 24.1477 28.7004C24.1477 28.5248 24.0372 28.3414 23.9406 28.2112C23.1892 27.1206 20.5818 25.2607 21.1045 21.6613C21.4792 19.0757 23.7414 17.2553 25.8498 17.3637C26.0273 17.3736 26.2067 17.3834 26.3842 17.3953C27.2974 17.4485 28.0942 17.5669 28.8476 17.5984C30.1059 17.6537 31.238 17.4702 32.5792 16.3519C33.0308 15.9752 33.3937 15.6478 34.0071 15.5453C34.0722 15.5335 34.2319 15.4763 34.5534 15.492C34.8808 15.5098 35.1924 15.5985 35.4725 15.7859C36.5474 16.5018 36.6992 18.2335 36.7545 19.4997C36.786 20.2235 36.8728 21.9729 36.9044 22.4759C36.9734 23.6237 37.2751 23.7874 37.8846 23.9886C38.2278 24.101 38.5473 24.1858 39.0167 24.318C40.4387 24.7183 41.2828 25.1227 41.8153 25.6433C42.1329 25.9688 42.2808 26.3139 42.3261 26.6433C42.4938 27.8661 41.3755 29.3788 38.4171 30.7515C35.1826 32.2524 31.2577 32.6331 28.5459 32.3313C28.3388 32.3076 27.5992 32.2248 27.5952 32.2248C25.4257 31.9329 24.1891 34.7355 25.4908 36.6565C26.329 37.8951 28.6149 38.6998 30.9008 38.6998C36.1431 38.6998 40.1724 36.4613 41.6713 34.5284C41.7167 34.4712 41.7206 34.4633 41.7916 34.3568C41.8646 34.2464 41.8055 34.1852 41.7128 34.2464C40.488 35.0846 35.0484 38.4099 29.2322 37.4099C29.2322 37.4099 28.5261 37.2936 27.8792 37.0431C27.3664 36.8439 26.2935 36.3508 26.1634 35.2483C30.8514 36.6979 33.8079 35.3252 33.8079 35.3252ZM26.3704 34.4476C26.3704 34.4476 26.3724 34.4476 26.3704 34.4476C26.3724 34.4495 26.3724 34.4495 26.3724 34.4515C26.3724 34.4495 26.3724 34.4476 26.3704 34.4476ZM17.3887 14.2554C19.1914 12.1707 21.4121 10.3602 23.4002 9.34249C23.4692 9.30699 23.5422 9.38193 23.5047 9.44899C23.3469 9.73497 23.0432 10.3464 22.9466 10.8118C22.9308 10.8848 23.0097 10.9381 23.0708 10.8966C24.3074 10.0525 26.4612 9.14921 28.3486 9.03284C28.4295 9.02693 28.4689 9.13146 28.4039 9.18076C28.1159 9.40166 27.8023 9.70539 27.5735 10.0131C27.5341 10.0663 27.5716 10.1413 27.6366 10.1413C28.962 10.1511 30.8317 10.6146 32.0486 11.297C32.1315 11.3424 32.0723 11.5021 31.9796 11.4824C30.1375 11.0603 27.1199 10.7389 23.986 11.5041C21.1893 12.1865 19.0533 13.2397 17.4952 14.3738C17.4203 14.4329 17.3256 14.3304 17.3887 14.2554Z" fill="black"/>
93
- </svg>
94
-
95
- <p class="mc-woocommerce-settings-subtitles">
96
- <?php
97
-
98
- $allowed_html = array(
99
- 'br' => array()
100
- );
101
-
102
- if ($active_tab == 'api_key' ) {
103
- wp_kses(_e('Add Mailchimp for WooCommerce to build custom segments,<br/>send automations, and track purchase activity in Mailchimp', 'mailchimp-for-woocommerce'), $allowed_html);
104
- }
105
-
106
- if ($active_tab == 'store_info' && $has_valid_api_key) {
107
- wp_kses(_e('Please provide a bit of information<br/>about your WooCommerce store', 'mailchimp-for-woocommerce'), $allowed_html);
108
- }
109
-
110
- if ($active_tab == 'campaign_defaults' ) {
111
- wp_kses(_e('Please review the audience default<br/>campaign information', 'mailchimp-for-woocommerce'), $allowed_html);
112
- }
113
-
114
- if ($active_tab == 'newsletter_settings' ) {
115
- if ($only_one_list) {
116
- wp_kses(_e('Please apply your <br/>audience settings.', 'mailchimp-for-woocommerce'), $allowed_html);
117
- }
118
- else {
119
- wp_kses(_e('Please apply your audience settings. ', 'mailchimp-for-woocommerce'), $allowed_html);
120
- wp_kses(_e('If you don’t<br/>have an audience, you can choose to create one', 'mailchimp-for-woocommerce'), $allowed_html);
121
- }
122
- }
123
- if ($active_tab == 'sync' && $show_sync_tab) {
124
- if (mailchimp_is_done_syncing()) {
125
- wp_kses(_e('Sweet! You\'re connected with<br/>Mailchimp and syncing data', 'mailchimp-for-woocommerce'), $allowed_html);
126
- }
127
- else {
128
- wp_kses(_e('Connect your WooCommerce store to a<br/>Mailchimp audience in less than 60 seconds', 'mailchimp-for-woocommerce'), $allowed_html);
129
- }
130
- }
131
-
132
- if ($active_tab == 'logs' && $show_sync_tab) {
133
- wp_kses(_e('Log events from the <br/>Mailchimp plugin', 'mailchimp-for-woocommerce'), $allowed_html);
134
- }
135
- ?>
136
- </p>
137
- <?php if($show_wizard): ?>
138
- <div class="nav-wizard-wrapper">
139
- <div class="wizard-tab <?php echo $active_tab == 'api_key' ? 'wizard-tab-active' : ''; ?>" >
140
- <a href="?page=mailchimp-woocommerce&tab=api_key" class="marker"></a>
141
- <div class="wizard-tab-tooltip wizard-tab-tooltip-api-key "><?= esc_html_e('Connect', 'mailchimp-for-woocommerce');?>
142
- <svg width="29" height="29" viewBox="0 0 29 29" fill="none" xmlns="http://www.w3.org/2000/svg">
143
- <rect x="14.498" width="20" height="20" transform="rotate(45 14.498 0)" fill="white"/>
144
  </svg>
145
- </div>
146
- </div>
 
 
 
 
 
 
147
 
148
- <?php if ($has_valid_api_key) : ?>
149
- <div class="wizard-tab <?php echo $active_tab == 'store_info' ? 'wizard-tab-active' : ''; ?>">
150
- <a href="?page=mailchimp-woocommerce&tab=store_info" class="marker"></a>
151
- <div class="wizard-tab-tooltip wizard-tab-tooltip-store-info "><?= esc_html_e('Store Settings', 'mailchimp-for-woocommerce');?>
152
- <svg width="29" height="29" viewBox="0 0 29 29" fill="none" xmlns="http://www.w3.org/2000/svg">
153
- <rect x="14.498" width="20" height="20" transform="rotate(45 14.498 0)" fill="white"/>
154
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  </div>
156
- </div>
157
- <?php else: ?>
158
- <div class="wizard-tab">
159
- <span class="marker-disabled"></span>
160
- </div>
161
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
 
163
- <?php if ($handler->hasValidStoreInfo() && $show_campaign_defaults && $this->getData('validation.store_info', false)) : ?>
164
- <div class="wizard-tab <?php echo $active_tab == 'campaign_defaults' ? 'wizard-tab-active' : ''; ?>">
165
- <a href="?page=mailchimp-woocommerce&tab=campaign_defaults" class="marker"></a>
166
- <div class="wizard-tab-tooltip wizard-tab-tooltip-store-info "><?= esc_html_e('Audience Defaults', 'mailchimp-for-woocommerce');?>
167
- <svg width="29" height="29" viewBox="0 0 29 29" fill="none" xmlns="http://www.w3.org/2000/svg">
168
- <rect x="14.498" width="20" height="20" transform="rotate(45 14.498 0)" fill="white"/>
169
- </svg>
170
  </div>
171
  </div>
172
- <?php else: ?>
173
- <div class="wizard-tab">
174
- <span class="marker-disabled"></span>
175
- </div>
176
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
 
178
- <?php if ($handler->hasValidCampaignDefaults() && $this->getData('validation.campaign_defaults', false)) : ?>
179
- <div class="wizard-tab <?php echo $active_tab == 'newsletter_settings' ? 'wizard-tab-active' : ''; ?>">
180
- <a href="?page=mailchimp-woocommerce&tab=newsletter_settings" class="marker"></a>
181
- <div class="wizard-tab-tooltip wizard-tab-tooltip-store-info "><?= esc_html_e('Audience Settings', 'mailchimp-for-woocommerce');?>
182
- <svg width="29" height="29" viewBox="0 0 29 29" fill="none" xmlns="http://www.w3.org/2000/svg">
183
- <rect x="14.498" width="20" height="20" transform="rotate(45 14.498 0)" fill="white"/>
184
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
185
  </div>
186
  </div>
187
- <?php else: ?>
188
- <div class="wizard-tab">
189
- <span class="marker-disabled"></span>
190
- </div>
191
- <?php endif; ?>
192
- </div>
193
- <?php else: ?>
194
- <div class="nav-tab-wrapper">
195
- <?php if($has_valid_api_key): ?>
196
- <?php if ($active_tab == 'api_key'): ?>
197
- <a href="?page=mailchimp-woocommerce&tab=api_key" class="nav-tab <?php echo $active_tab == 'api_key' ? 'nav-tab-active' : ''; ?>"><?= esc_html_e('Connect', 'mailchimp-for-woocommerce');?></a>
198
- <?php endif ;?>
199
- <a href="?page=mailchimp-woocommerce&tab=sync" class="nav-tab <?php echo $active_tab == 'sync' ? 'nav-tab-active' : ''; ?>"><?= esc_html_e('Overview', 'mailchimp-for-woocommerce');?></a>
200
- <a href="?page=mailchimp-woocommerce&tab=store_info" class="nav-tab <?php echo $active_tab == 'store_info' ? 'nav-tab-active' : ''; ?>"><?= esc_html_e('Store Settings', 'mailchimp-for-woocommerce');?></a>
201
- <?php if ($handler->hasValidStoreInfo()) : ?>
202
- <?php if($show_campaign_defaults): ?>
203
- <a href="?page=mailchimp-woocommerce&tab=campaign_defaults" class="nav-tab <?php echo $active_tab == 'campaign_defaults' ? 'nav-tab-active' : ''; ?>"><?= esc_html_e('Audience Defaults', 'mailchimp-for-woocommerce');?></a>
204
- <?php endif; ?>
205
- <?php if($handler->hasValidCampaignDefaults()): ?>
206
- <a href="?page=mailchimp-woocommerce&tab=newsletter_settings" class="nav-tab <?php echo $active_tab == 'newsletter_settings' ? 'nav-tab-active' : ''; ?>"><?= esc_html_e('Audience Settings', 'mailchimp-for-woocommerce');?></a>
207
- <?php endif; ?>
208
- <?php endif;?>
209
- <a href="?page=mailchimp-woocommerce&tab=logs" class="nav-tab <?php echo $active_tab == 'logs' ? 'nav-tab-active' : ''; ?>"><?= esc_html_e('Logs', 'mailchimp-for-woocommerce');?></a>
210
- <?php endif; ?>
211
- </div>
212
- <?php endif; ?>
213
-
214
- <?php
215
- $settings_errors = get_settings_errors();
216
- if (!$show_wizard || ($show_wizard && isset($settings_errors[0]) && $settings_errors[0]['type'] != 'success' )) {
217
- echo mailchimp_settings_errors();
218
- }
219
- ?>
220
 
221
- <?php if ($active_tab != 'sync'): ?>
222
- <div class="tab-content-wrapper">
223
- <?php endif; ?>
224
- <form id="mailchimp_woocommerce_options" method="post" name="cleanup_options" action="options.php">
225
- <div class="box">
226
- <?php if ($show_wizard) : ?>
227
- <input type="hidden" name="mailchimp_woocommerce_wizard_on" value=1>
228
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
229
 
230
- <input type="hidden" name="mailchimp_woocommerce_settings_hidden" value="Y">
231
-
232
- <?php
233
- if (!$clicked_sync_button) {
234
- settings_fields($this->plugin_name);
235
- do_settings_sections($this->plugin_name);
236
- include('tabs/notices.php');
237
- }
238
- ?>
239
- </div>
240
-
241
-
242
- <input type="hidden" name="<?php echo $this->plugin_name; ?>[mailchimp_active_tab]" value="<?php echo esc_attr($active_tab); ?>"/>
243
 
244
- <?php if ($active_tab == 'api_key' ): ?>
245
- <?php include_once 'tabs/api_key.php'; ?>
246
- <?php endif; ?>
 
 
247
 
248
- <?php if ($active_tab == 'store_info' && $has_valid_api_key): ?>
249
- <?php include_once 'tabs/store_info.php'; ?>
250
- <?php endif; ?>
251
 
252
- <?php if ($active_tab == 'campaign_defaults' ): ?>
253
- <?php include_once 'tabs/campaign_defaults.php'; ?>
254
- <?php endif; ?>
255
 
256
- <?php if ($active_tab == 'newsletter_settings' ): ?>
257
- <?php include_once 'tabs/newsletter_settings.php'; ?>
258
- <?php endif; ?>
259
 
260
- <?php if ($active_tab == 'sync' && $show_sync_tab): ?>
261
- <?php include_once 'tabs/store_sync.php'; ?>
262
- <?php endif; ?>
263
 
264
- <?php if ($active_tab == 'logs' && $show_sync_tab): ?>
265
- <?php include_once 'tabs/logs.php'; ?>
266
- <?php endif; ?>
267
- <?php
268
- if ($active_tab !== 'api_key' && $active_tab !== 'sync' && $active_tab !== 'logs') {
269
- if ($active_tab == 'newsletter_settings' && !mailchimp_is_configured()) {
270
- $submit_button_label = __('Start sync','mailchimp-for-woocommerce');
271
- }
272
- else $submit_button_label = !$show_wizard ? __('Save all changes') : __('Next');
273
- submit_button($submit_button_label, 'primary tab-content-submit','mailchimp_submit', TRUE);
274
- }
275
- ?>
276
- </form>
277
-
278
- <?php if ($active_tab == 'api_key'): ?>
279
- <?php include_once 'tabs/api_key_create_account.php'; ?>
280
  <?php endif; ?>
281
-
282
- <?php if ($active_tab != 'sync'): ?>
283
- </div>
284
- <?php endif; ?>
285
-
286
  </div><!-- /.wrap -->
22
  $active_tab = 'sync';
23
  }
24
 
25
+ $show_newsletter_settings = true;
26
  $has_valid_api_key = false;
27
  $allow_new_list = true;
28
  $only_one_list = false;
37
 
38
  // if we don't have a valid api key we need to redirect back to the 'api_key' tab.
39
  if (($mailchimp_lists = $handler->getMailChimpLists()) && is_array($mailchimp_lists)) {
40
+ $show_newsletter_settings = true;
41
  $allow_new_list = false;
42
  $only_one_list = count($mailchimp_lists) === 1;
43
 
49
  }
50
 
51
  //display wizard if not all steps are complete
52
+ if ($show_sync_tab && $this->getData('validation.store_info', false) && $this->getData('validation.newsletter_settings', false)) {
53
  $show_wizard = false;
54
  }
55
 
62
  $active_tab = 'api_key';
63
  }
64
 
 
 
 
65
  ?>
66
 
67
+ <div class="mc-woocommerce-settings">
68
+ <form id="mailchimp_woocommerce_options" method="post" name="cleanup_options" action="options.php">
69
+ <?php if($show_wizard): ?>
70
+ <div class="mc-woocommerce-settings-header-wrapper wiz-header">
71
+ <div class="mc-woocommerce-settings-header">
72
+ <svg class="mc-woocommerce-logo" width="93" height="93" viewBox="0 0 46 49" fill="none" xmlns="http://www.w3.org/2000/svg">
73
+ <path d="M34.5458 23.5193C34.8988 23.4778 35.2361 23.4759 35.5457 23.5193C35.7252 23.107 35.7568 22.397 35.5951 21.6239C35.3544 20.4741 35.029 19.7778 34.3584 19.8863C33.6859 19.9948 33.6622 20.8271 33.9028 21.9769C34.037 22.6238 34.2776 23.1761 34.5458 23.5193Z" fill="black"/>
74
+ <path d="M28.7763 24.4284C29.2575 24.6394 29.5534 24.7795 29.6678 24.6572C29.7427 24.5803 29.719 24.4363 29.6046 24.2489C29.368 23.8624 28.8788 23.4679 28.3621 23.249C27.303 22.7934 26.0407 22.9453 25.0664 23.6454C24.745 23.8801 24.4393 24.2075 24.4826 24.4047C24.4965 24.4698 24.5458 24.5172 24.6582 24.5329C24.9225 24.5625 25.8494 24.0951 26.9164 24.03C27.6718 23.9827 28.295 24.2174 28.7763 24.4284Z" fill="black"/>
75
+ <path d="M27.8105 24.9806C27.1852 25.0793 26.8381 25.2863 26.6172 25.4777C26.4279 25.6433 26.3115 25.8267 26.3115 25.9549C26.3115 26.0161 26.3391 26.0516 26.3589 26.0693C26.3865 26.095 26.422 26.1088 26.4614 26.1088C26.6034 26.1088 26.919 25.9826 26.919 25.9826C27.7907 25.6709 28.3647 25.7084 28.9346 25.7735C29.2502 25.809 29.3981 25.8287 29.4672 25.7202C29.4869 25.6887 29.5125 25.6216 29.4494 25.521C29.3054 25.2804 28.6723 24.8781 27.8105 24.9806Z" fill="black"/>
76
+ <path d="M32.5975 27.0061C33.0235 27.2152 33.4909 27.1324 33.6428 26.8227C33.7946 26.5131 33.5737 26.093 33.1497 25.8839C32.7237 25.6749 32.2563 25.7577 32.1044 26.0673C31.9506 26.377 32.1734 26.7971 32.5975 27.0061Z" fill="black"/>
77
+ <path d="M35.3306 24.6177C34.9854 24.6118 34.6995 24.9905 34.6916 25.4638C34.6837 25.9372 34.9578 26.3257 35.303 26.3317C35.6481 26.3376 35.9341 25.9589 35.942 25.4855C35.9499 25.0122 35.6757 24.6237 35.3306 24.6177Z" fill="black"/>
78
+ <path d="M12.1324 33.1577C12.0456 33.0492 11.9056 33.0827 11.7695 33.1143C11.6749 33.136 11.5664 33.1616 11.448 33.1596C11.1936 33.1557 10.9786 33.0452 10.8583 32.8598C10.7006 32.6192 10.7104 32.2583 10.884 31.8461C10.9076 31.7909 10.9353 31.7297 10.9648 31.6607C11.241 31.0394 11.7064 30 11.1857 29.008C10.7932 28.2625 10.1542 27.797 9.38702 27.7004C8.64939 27.6077 7.89006 27.8798 7.40685 28.4143C6.64358 29.2565 6.52328 30.4044 6.6712 30.8087C6.72445 30.9566 6.80925 30.998 6.87237 31.0059C7.00254 31.0237 7.19385 30.929 7.31416 30.6055C7.32205 30.5819 7.33388 30.5464 7.34769 30.501C7.40094 30.3294 7.50152 30.0099 7.66522 29.7555C7.86245 29.4478 8.17012 29.2348 8.53105 29.1579C8.89789 29.079 9.2746 29.15 9.58819 29.3551C10.1227 29.7062 10.3298 30.361 10.101 30.9862C9.98264 31.3096 9.79133 31.9289 9.83275 32.4378C9.91756 33.4673 10.5507 33.8795 11.1206 33.9249C11.6729 33.9466 12.0594 33.6349 12.1581 33.4081C12.2133 33.274 12.164 33.1932 12.1324 33.1577Z" fill="black"/>
79
+ <path d="M44.044 31.2761C44.0223 31.2012 43.8862 30.7002 43.6969 30.0967C43.5075 29.4932 43.3142 29.0672 43.3142 29.0672C44.0696 27.9351 44.0834 26.9233 43.9828 26.3514C43.8763 25.6414 43.5805 25.0359 42.9829 24.4107C42.3873 23.7854 41.1684 23.1445 39.4545 22.6632C39.2593 22.608 38.6123 22.4305 38.5551 22.4127C38.5512 22.3753 38.5078 20.2945 38.4684 19.3991C38.4408 18.7522 38.3836 17.7444 38.0719 16.7504C37.6992 15.4053 37.0483 14.2298 36.2377 13.4764C38.4763 11.157 39.8726 8.60091 39.8707 6.40774C39.8647 2.19102 34.6855 0.914962 28.3033 3.55781C28.2974 3.55978 26.9602 4.1278 26.9503 4.13174C26.9444 4.12582 24.5066 1.73346 24.4692 1.7019C17.1954 -4.64488 -5.55475 20.6436 1.71899 26.7853L3.30864 28.1323C2.89644 29.2013 2.73471 30.4241 2.86685 31.7396C3.03647 33.4299 3.90822 35.0511 5.32234 36.3015C6.66348 37.4908 8.42669 38.2422 10.1386 38.2402C12.9688 44.7626 19.4359 48.7643 27.0193 48.9891C35.153 49.2317 41.981 45.4134 44.8428 38.5578C45.0301 38.0765 45.825 35.909 45.825 33.9939C45.825 32.0729 44.7382 31.2761 44.044 31.2761ZM10.7638 36.41C10.5173 36.4514 10.2649 36.4691 10.0104 36.4632C7.55298 36.3981 4.90027 34.1852 4.63598 31.5621C4.34409 28.6629 5.82527 26.4322 8.44839 25.9017C8.76198 25.8386 9.14066 25.8011 9.54892 25.8228C11.0183 25.9037 13.1838 27.0318 13.6789 30.2328C14.1187 33.0689 13.4225 35.9564 10.7638 36.41ZM8.02041 24.1681C6.38736 24.4856 4.9476 25.4106 4.06797 26.6886C3.54137 26.2508 2.56115 25.4007 2.38956 25.0694C0.985306 22.4009 3.92202 17.2138 5.97516 14.285C11.0478 7.04676 18.9922 1.56581 22.6705 2.55984C23.2681 2.72945 25.2482 5.02518 25.2482 5.02518C25.2482 5.02518 21.5719 7.06451 18.1618 9.90853C13.5704 13.4468 10.0992 18.5885 8.02041 24.1681ZM33.8079 35.3252C33.8611 35.3035 33.8986 35.2424 33.8927 35.1812C33.8848 35.1063 33.8177 35.0531 33.7448 35.0609C33.7448 35.0609 29.8969 35.6309 26.26 34.2996C26.6564 33.0117 27.7096 33.4772 29.3012 33.6054C32.1709 33.777 34.7408 33.3569 36.642 32.8125C38.2889 32.3392 40.4505 31.4083 42.1309 30.0829C42.6969 31.3274 42.8981 32.6962 42.8981 32.6962C42.8981 32.6962 43.3359 32.6173 43.7028 32.8441C44.0499 33.0571 44.3024 33.5009 44.1288 34.6448C43.7758 36.7847 42.8665 38.5223 41.338 40.1198C40.4071 41.1217 39.277 41.9935 37.9852 42.6266C37.2988 42.9875 36.5671 43.2991 35.7959 43.5516C30.033 45.4331 24.1339 43.3642 22.2326 38.9207C22.0807 38.5874 21.9525 38.2363 21.852 37.8714C21.0414 34.9426 21.7297 31.43 23.8795 29.2171C23.8795 29.2171 23.8795 29.2171 23.8795 29.2151C24.0116 29.0751 24.1477 28.9094 24.1477 28.7004C24.1477 28.5248 24.0372 28.3414 23.9406 28.2112C23.1892 27.1206 20.5818 25.2607 21.1045 21.6613C21.4792 19.0757 23.7414 17.2553 25.8498 17.3637C26.0273 17.3736 26.2067 17.3834 26.3842 17.3953C27.2974 17.4485 28.0942 17.5669 28.8476 17.5984C30.1059 17.6537 31.238 17.4702 32.5792 16.3519C33.0308 15.9752 33.3937 15.6478 34.0071 15.5453C34.0722 15.5335 34.2319 15.4763 34.5534 15.492C34.8808 15.5098 35.1924 15.5985 35.4725 15.7859C36.5474 16.5018 36.6992 18.2335 36.7545 19.4997C36.786 20.2235 36.8728 21.9729 36.9044 22.4759C36.9734 23.6237 37.2751 23.7874 37.8846 23.9886C38.2278 24.101 38.5473 24.1858 39.0167 24.318C40.4387 24.7183 41.2828 25.1227 41.8153 25.6433C42.1329 25.9688 42.2808 26.3139 42.3261 26.6433C42.4938 27.8661 41.3755 29.3788 38.4171 30.7515C35.1826 32.2524 31.2577 32.6331 28.5459 32.3313C28.3388 32.3076 27.5992 32.2248 27.5952 32.2248C25.4257 31.9329 24.1891 34.7355 25.4908 36.6565C26.329 37.8951 28.6149 38.6998 30.9008 38.6998C36.1431 38.6998 40.1724 36.4613 41.6713 34.5284C41.7167 34.4712 41.7206 34.4633 41.7916 34.3568C41.8646 34.2464 41.8055 34.1852 41.7128 34.2464C40.488 35.0846 35.0484 38.4099 29.2322 37.4099C29.2322 37.4099 28.5261 37.2936 27.8792 37.0431C27.3664 36.8439 26.2935 36.3508 26.1634 35.2483C30.8514 36.6979 33.8079 35.3252 33.8079 35.3252ZM26.3704 34.4476C26.3704 34.4476 26.3724 34.4476 26.3704 34.4476C26.3724 34.4495 26.3724 34.4495 26.3724 34.4515C26.3724 34.4495 26.3724 34.4476 26.3704 34.4476ZM17.3887 14.2554C19.1914 12.1707 21.4121 10.3602 23.4002 9.34249C23.4692 9.30699 23.5422 9.38193 23.5047 9.44899C23.3469 9.73497 23.0432 10.3464 22.9466 10.8118C22.9308 10.8848 23.0097 10.9381 23.0708 10.8966C24.3074 10.0525 26.4612 9.14921 28.3486 9.03284C28.4295 9.02693 28.4689 9.13146 28.4039 9.18076C28.1159 9.40166 27.8023 9.70539 27.5735 10.0131C27.5341 10.0663 27.5716 10.1413 27.6366 10.1413C28.962 10.1511 30.8317 10.6146 32.0486 11.297C32.1315 11.3424 32.0723 11.5021 31.9796 11.4824C30.1375 11.0603 27.1199 10.7389 23.986 11.5041C21.1893 12.1865 19.0533 13.2397 17.4952 14.3738C17.4203 14.4329 17.3256 14.3304 17.3887 14.2554Z" fill="black"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  </svg>
81
+
82
+ <div class="mc-woocommerce-settings-subtitles">
83
+ <?php
84
+ $allowed_html = array(
85
+ 'br' => array()
86
+ );
87
+ ?>
88
+
89
 
90
+ <?php if ($active_tab == 'api_key' ) : ?>
91
+ <span class="mc-woocommerce-header-steps">1 of 3 - Connect</span>
92
+ <span class="mc-woocommerce-header-title"> <?php wp_kses(_e('Add Mailchimp for WooCommerce', 'mailchimp-for-woocommerce'), $allowed_html);?> </span>
93
+ <span class="mc-woocommerce-header-subtitle"> <?php wp_kses(_e('Build custom segments, send automations, and track purchase <br/>activity in Mailchimp. Login to authorize an account connection.', 'mailchimp-for-woocommerce'), $allowed_html);?> </span>
94
+ <?php endif;?>
95
+
96
+ <?php if ($active_tab == 'store_info' && $has_valid_api_key) :?>
97
+ <span class="mc-woocommerce-header-steps">2 of 3 - Store</span>
98
+ <span class="mc-woocommerce-header-title"> <?php wp_kses(_e('Add WooCommerce store settings', 'mailchimp-for-woocommerce'), $allowed_html);?> </span>
99
+ <span class="mc-woocommerce-header-subtitle"> <?php wp_kses(_e('Please provide a bit of information about your WooCommerce <br/> store and location.', 'mailchimp-for-woocommerce'), $allowed_html);?> </span>
100
+ <?php endif;?>
101
+
102
+ <?php if ($active_tab == 'newsletter_settings' ) :?>
103
+ <span class="mc-woocommerce-header-steps">3 of 3 - Audience</span>
104
+ <span class="mc-woocommerce-header-title"> <?php wp_kses(_e('Add WooCommerce audience settings', 'mailchimp-for-woocommerce'), $allowed_html);?> </span>
105
+ <span class="mc-woocommerce-header-subtitle">
106
+ <?php wp_kses(_e('Please provide a bit of information about your WooCommerce <br/> campaign and messaging settings.', 'mailchimp-for-woocommerce'), $allowed_html);?>
107
+ <?php if (!$only_one_list) wp_kses(_e('If you don’t have an audience, <br/> you can choose to create one', 'mailchimp-for-woocommerce'), $allowed_html); ?>
108
+ </span>
109
+ <?php endif;?>
110
  </div>
111
+ <?php if ($active_tab == 'api_key' ): ?>
112
+
113
+ <div class="box">
114
+ <?php if ($show_wizard) : ?>
115
+ <input type="hidden" name="mailchimp_woocommerce_wizard_on" value=1>
116
+ <?php endif; ?>
117
+
118
+ <input type="hidden" name="mailchimp_woocommerce_settings_hidden" value="Y">
119
+
120
+ <?php
121
+ if (!$clicked_sync_button) {
122
+ settings_fields($this->plugin_name);
123
+ do_settings_sections($this->plugin_name);
124
+ include('tabs/notices.php');
125
+ }
126
+ ?>
127
+ </div>
128
+
129
+ <div class="connect-buttons">
130
+ <?php include_once 'tabs/api_key.php'; ?>
131
+ </div>
132
+ <?php endif; ?>
133
+ <div class="mc-woocommerce-wizard-btn">
134
+ <?php if ($active_tab == 'store_info' && $has_valid_api_key) : ?>
135
+ <?php submit_button(__('Next step', 'mailchimp-for-woocommerce'), 'primary tab-content-submit','mailchimp_submit', TRUE); ?>
136
+ <a href="?page=mailchimp-woocommerce&tab=api_key" class="button button-default back-step"><?= __('Back', 'mailchimp-for-woocommerce') ?></a>
137
+ <?php endif; ?>
138
 
139
+ <?php if ($active_tab == 'newsletter_settings' && $has_valid_api_key) : ?>
140
+ <?php submit_button(__('Start sync', 'mailchimp-for-woocommerce'), 'primary tab-content-submit','mailchimp_submit', TRUE); ?>
141
+ <a href="?page=mailchimp-woocommerce&tab=store_info" class="button button-default back-step"><?= __('Back', 'mailchimp-for-woocommerce') ?></a>
142
+ <?php endif; ?>
 
 
 
143
  </div>
144
  </div>
145
+ </div>
146
+ <?php else: ?>
147
+ <div class="mc-woocommerce-settings-header-wrapper">
148
+ <div class="mc-woocommerce-settings-header">
149
+ <svg class="mailchimp-logo" width="46" height="49" viewBox="0 0 46 49" fill="none" xmlns="http://www.w3.org/2000/svg">
150
+ <path d="M34.5458 23.5193C34.8988 23.4778 35.2361 23.4759 35.5457 23.5193C35.7252 23.107 35.7568 22.397 35.5951 21.6239C35.3544 20.4741 35.029 19.7778 34.3584 19.8863C33.6859 19.9948 33.6622 20.8271 33.9028 21.9769C34.037 22.6238 34.2776 23.1761 34.5458 23.5193Z" fill="black"/>
151
+ <path d="M28.7763 24.4284C29.2575 24.6394 29.5534 24.7795 29.6678 24.6572C29.7427 24.5803 29.719 24.4363 29.6046 24.2489C29.368 23.8624 28.8788 23.4679 28.3621 23.249C27.303 22.7934 26.0407 22.9453 25.0664 23.6454C24.745 23.8801 24.4393 24.2075 24.4826 24.4047C24.4965 24.4698 24.5458 24.5172 24.6582 24.5329C24.9225 24.5625 25.8494 24.0951 26.9164 24.03C27.6718 23.9827 28.295 24.2174 28.7763 24.4284Z" fill="black"/>
152
+ <path d="M27.8105 24.9806C27.1852 25.0793 26.8381 25.2863 26.6172 25.4777C26.4279 25.6433 26.3115 25.8267 26.3115 25.9549C26.3115 26.0161 26.3391 26.0516 26.3589 26.0693C26.3865 26.095 26.422 26.1088 26.4614 26.1088C26.6034 26.1088 26.919 25.9826 26.919 25.9826C27.7907 25.6709 28.3647 25.7084 28.9346 25.7735C29.2502 25.809 29.3981 25.8287 29.4672 25.7202C29.4869 25.6887 29.5125 25.6216 29.4494 25.521C29.3054 25.2804 28.6723 24.8781 27.8105 24.9806Z" fill="black"/>
153
+ <path d="M32.5975 27.0061C33.0235 27.2152 33.4909 27.1324 33.6428 26.8227C33.7946 26.5131 33.5737 26.093 33.1497 25.8839C32.7237 25.6749 32.2563 25.7577 32.1044 26.0673C31.9506 26.377 32.1734 26.7971 32.5975 27.0061Z" fill="black"/>
154
+ <path d="M35.3306 24.6177C34.9854 24.6118 34.6995 24.9905 34.6916 25.4638C34.6837 25.9372 34.9578 26.3257 35.303 26.3317C35.6481 26.3376 35.9341 25.9589 35.942 25.4855C35.9499 25.0122 35.6757 24.6237 35.3306 24.6177Z" fill="black"/>
155
+ <path d="M12.1324 33.1577C12.0456 33.0492 11.9056 33.0827 11.7695 33.1143C11.6749 33.136 11.5664 33.1616 11.448 33.1596C11.1936 33.1557 10.9786 33.0452 10.8583 32.8598C10.7006 32.6192 10.7104 32.2583 10.884 31.8461C10.9076 31.7909 10.9353 31.7297 10.9648 31.6607C11.241 31.0394 11.7064 30 11.1857 29.008C10.7932 28.2625 10.1542 27.797 9.38702 27.7004C8.64939 27.6077 7.89006 27.8798 7.40685 28.4143C6.64358 29.2565 6.52328 30.4044 6.6712 30.8087C6.72445 30.9566 6.80925 30.998 6.87237 31.0059C7.00254 31.0237 7.19385 30.929 7.31416 30.6055C7.32205 30.5819 7.33388 30.5464 7.34769 30.501C7.40094 30.3294 7.50152 30.0099 7.66522 29.7555C7.86245 29.4478 8.17012 29.2348 8.53105 29.1579C8.89789 29.079 9.2746 29.15 9.58819 29.3551C10.1227 29.7062 10.3298 30.361 10.101 30.9862C9.98264 31.3096 9.79133 31.9289 9.83275 32.4378C9.91756 33.4673 10.5507 33.8795 11.1206 33.9249C11.6729 33.9466 12.0594 33.6349 12.1581 33.4081C12.2133 33.274 12.164 33.1932 12.1324 33.1577Z" fill="black"/>
156
+ <path d="M44.044 31.2761C44.0223 31.2012 43.8862 30.7002 43.6969 30.0967C43.5075 29.4932 43.3142 29.0672 43.3142 29.0672C44.0696 27.9351 44.0834 26.9233 43.9828 26.3514C43.8763 25.6414 43.5805 25.0359 42.9829 24.4107C42.3873 23.7854 41.1684 23.1445 39.4545 22.6632C39.2593 22.608 38.6123 22.4305 38.5551 22.4127C38.5512 22.3753 38.5078 20.2945 38.4684 19.3991C38.4408 18.7522 38.3836 17.7444 38.0719 16.7504C37.6992 15.4053 37.0483 14.2298 36.2377 13.4764C38.4763 11.157 39.8726 8.60091 39.8707 6.40774C39.8647 2.19102 34.6855 0.914962 28.3033 3.55781C28.2974 3.55978 26.9602 4.1278 26.9503 4.13174C26.9444 4.12582 24.5066 1.73346 24.4692 1.7019C17.1954 -4.64488 -5.55475 20.6436 1.71899 26.7853L3.30864 28.1323C2.89644 29.2013 2.73471 30.4241 2.86685 31.7396C3.03647 33.4299 3.90822 35.0511 5.32234 36.3015C6.66348 37.4908 8.42669 38.2422 10.1386 38.2402C12.9688 44.7626 19.4359 48.7643 27.0193 48.9891C35.153 49.2317 41.981 45.4134 44.8428 38.5578C45.0301 38.0765 45.825 35.909 45.825 33.9939C45.825 32.0729 44.7382 31.2761 44.044 31.2761ZM10.7638 36.41C10.5173 36.4514 10.2649 36.4691 10.0104 36.4632C7.55298 36.3981 4.90027 34.1852 4.63598 31.5621C4.34409 28.6629 5.82527 26.4322 8.44839 25.9017C8.76198 25.8386 9.14066 25.8011 9.54892 25.8228C11.0183 25.9037 13.1838 27.0318 13.6789 30.2328C14.1187 33.0689 13.4225 35.9564 10.7638 36.41ZM8.02041 24.1681C6.38736 24.4856 4.9476 25.4106 4.06797 26.6886C3.54137 26.2508 2.56115 25.4007 2.38956 25.0694C0.985306 22.4009 3.92202 17.2138 5.97516 14.285C11.0478 7.04676 18.9922 1.56581 22.6705 2.55984C23.2681 2.72945 25.2482 5.02518 25.2482 5.02518C25.2482 5.02518 21.5719 7.06451 18.1618 9.90853C13.5704 13.4468 10.0992 18.5885 8.02041 24.1681ZM33.8079 35.3252C33.8611 35.3035 33.8986 35.2424 33.8927 35.1812C33.8848 35.1063 33.8177 35.0531 33.7448 35.0609C33.7448 35.0609 29.8969 35.6309 26.26 34.2996C26.6564 33.0117 27.7096 33.4772 29.3012 33.6054C32.1709 33.777 34.7408 33.3569 36.642 32.8125C38.2889 32.3392 40.4505 31.4083 42.1309 30.0829C42.6969 31.3274 42.8981 32.6962 42.8981 32.6962C42.8981 32.6962 43.3359 32.6173 43.7028 32.8441C44.0499 33.0571 44.3024 33.5009 44.1288 34.6448C43.7758 36.7847 42.8665 38.5223 41.338 40.1198C40.4071 41.1217 39.277 41.9935 37.9852 42.6266C37.2988 42.9875 36.5671 43.2991 35.7959 43.5516C30.033 45.4331 24.1339 43.3642 22.2326 38.9207C22.0807 38.5874 21.9525 38.2363 21.852 37.8714C21.0414 34.9426 21.7297 31.43 23.8795 29.2171C23.8795 29.2171 23.8795 29.2171 23.8795 29.2151C24.0116 29.0751 24.1477 28.9094 24.1477 28.7004C24.1477 28.5248 24.0372 28.3414 23.9406 28.2112C23.1892 27.1206 20.5818 25.2607 21.1045 21.6613C21.4792 19.0757 23.7414 17.2553 25.8498 17.3637C26.0273 17.3736 26.2067 17.3834 26.3842 17.3953C27.2974 17.4485 28.0942 17.5669 28.8476 17.5984C30.1059 17.6537 31.238 17.4702 32.5792 16.3519C33.0308 15.9752 33.3937 15.6478 34.0071 15.5453C34.0722 15.5335 34.2319 15.4763 34.5534 15.492C34.8808 15.5098 35.1924 15.5985 35.4725 15.7859C36.5474 16.5018 36.6992 18.2335 36.7545 19.4997C36.786 20.2235 36.8728 21.9729 36.9044 22.4759C36.9734 23.6237 37.2751 23.7874 37.8846 23.9886C38.2278 24.101 38.5473 24.1858 39.0167 24.318C40.4387 24.7183 41.2828 25.1227 41.8153 25.6433C42.1329 25.9688 42.2808 26.3139 42.3261 26.6433C42.4938 27.8661 41.3755 29.3788 38.4171 30.7515C35.1826 32.2524 31.2577 32.6331 28.5459 32.3313C28.3388 32.3076 27.5992 32.2248 27.5952 32.2248C25.4257 31.9329 24.1891 34.7355 25.4908 36.6565C26.329 37.8951 28.6149 38.6998 30.9008 38.6998C36.1431 38.6998 40.1724 36.4613 41.6713 34.5284C41.7167 34.4712 41.7206 34.4633 41.7916 34.3568C41.8646 34.2464 41.8055 34.1852 41.7128 34.2464C40.488 35.0846 35.0484 38.4099 29.2322 37.4099C29.2322 37.4099 28.5261 37.2936 27.8792 37.0431C27.3664 36.8439 26.2935 36.3508 26.1634 35.2483C30.8514 36.6979 33.8079 35.3252 33.8079 35.3252ZM26.3704 34.4476C26.3704 34.4476 26.3724 34.4476 26.3704 34.4476C26.3724 34.4495 26.3724 34.4495 26.3724 34.4515C26.3724 34.4495 26.3724 34.4476 26.3704 34.4476ZM17.3887 14.2554C19.1914 12.1707 21.4121 10.3602 23.4002 9.34249C23.4692 9.30699 23.5422 9.38193 23.5047 9.44899C23.3469 9.73497 23.0432 10.3464 22.9466 10.8118C22.9308 10.8848 23.0097 10.9381 23.0708 10.8966C24.3074 10.0525 26.4612 9.14921 28.3486 9.03284C28.4295 9.02693 28.4689 9.13146 28.4039 9.18076C28.1159 9.40166 27.8023 9.70539 27.5735 10.0131C27.5341 10.0663 27.5716 10.1413 27.6366 10.1413C28.962 10.1511 30.8317 10.6146 32.0486 11.297C32.1315 11.3424 32.0723 11.5021 31.9796 11.4824C30.1375 11.0603 27.1199 10.7389 23.986 11.5041C21.1893 12.1865 19.0533 13.2397 17.4952 14.3738C17.4203 14.4329 17.3256 14.3304 17.3887 14.2554Z" fill="black"/>
157
+ </svg>
158
+
159
+ <p class="mc-woocommerce-settings-subtitles">
160
+ <?php
161
+
162
+ $allowed_html = array(
163
+ 'br' => array()
164
+ );
165
+
166
+ if ($active_tab == 'api_key' ) {
167
+ wp_kses(_e('Add Mailchimp for WooCommerce to build custom segments, send automations, and track purchase activity in Mailchimp', 'mailchimp-for-woocommerce'), $allowed_html);
168
+ }
169
+
170
+ if ($active_tab == 'store_info' && $has_valid_api_key) {
171
+ if ($show_sync_tab) {
172
+ wp_kses(_e('WooCommerce store and location', 'mailchimp-for-woocommerce'), $allowed_html);
173
+ }
174
+ else wp_kses(_e('Please provide a bit of information about your WooCommerce store', 'mailchimp-for-woocommerce'), $allowed_html);
175
+ }
176
+
177
+ if ($active_tab == 'newsletter_settings' ) {
178
+ if ($show_sync_tab) {
179
+ wp_kses(_e('Campaign and messaging settings', 'mailchimp-for-woocommerce'), $allowed_html);
180
+ }
181
+ else {
182
+ if ($only_one_list) {
183
+ wp_kses(_e('Please apply your audience settings.', 'mailchimp-for-woocommerce'), $allowed_html);
184
+ }
185
+ else {
186
+ wp_kses(_e('Please apply your audience settings. ', 'mailchimp-for-woocommerce'), $allowed_html);
187
+ wp_kses(_e('If you don’t have an audience, you can choose to create one', 'mailchimp-for-woocommerce'), $allowed_html);
188
+ }
189
+ }
190
+ }
191
+ if ($active_tab == 'sync' && $show_sync_tab) {
192
+ if (mailchimp_is_done_syncing()) {
193
+ wp_kses(_e('Success! You are connected to Mailchimp', 'mailchimp-for-woocommerce'), $allowed_html);
194
+ }
195
+ else {
196
+ wp_kses(_e('Your WooCommerce store is syncing to Mailchimp', 'mailchimp-for-woocommerce'), $allowed_html);
197
+ }
198
+ }
199
+
200
+ if ($active_tab == 'logs' && $show_sync_tab) {
201
+ wp_kses(_e('Log events from the Mailchimp plugin', 'mailchimp-for-woocommerce'), $allowed_html);
202
+ }
203
 
204
+ if ($active_tab == 'plugin_settings' && $show_sync_tab) {
205
+ wp_kses(_e('Connection settings', 'mailchimp-for-woocommerce'), $allowed_html);
206
+ }
207
+ ?>
208
+ </p>
209
+ <div class="nav-tab-wrapper">
210
+ <?php if($has_valid_api_key): ?>
211
+ <?php if ($active_tab == 'api_key'): ?>
212
+ <a href="?page=mailchimp-woocommerce&tab=api_key" class="nav-tab <?php echo $active_tab == 'api_key' ? 'nav-tab-active' : ''; ?>"><?= esc_html_e('Connect', 'mailchimp-for-woocommerce');?></a>
213
+ <?php endif ;?>
214
+ <a href="?page=mailchimp-woocommerce&tab=sync" class="nav-tab <?php echo $active_tab == 'sync' ? 'nav-tab-active' : ''; ?>"><?= esc_html_e('Overview', 'mailchimp-for-woocommerce');?></a>
215
+ <a href="?page=mailchimp-woocommerce&tab=store_info" class="nav-tab <?php echo $active_tab == 'store_info' ? 'nav-tab-active' : ''; ?>"><?= esc_html_e('Store', 'mailchimp-for-woocommerce');?></a>
216
+ <?php if ($handler->hasValidStoreInfo()) : ?>
217
+
218
+ <a href="?page=mailchimp-woocommerce&tab=newsletter_settings" class="nav-tab <?php echo $active_tab == 'newsletter_settings' ? 'nav-tab-active' : ''; ?>"><?= esc_html_e('Audience', 'mailchimp-for-woocommerce');?></a>
219
+ <?php endif;?>
220
+ <a href="?page=mailchimp-woocommerce&tab=logs" class="nav-tab <?php echo $active_tab == 'logs' ? 'nav-tab-active' : ''; ?>"><?= esc_html_e('Logs', 'mailchimp-for-woocommerce');?></a>
221
+ <a href="?page=mailchimp-woocommerce&tab=plugin_settings" class="nav-tab <?php echo $active_tab == 'plugin_settings' ? 'nav-tab-active' : ''; ?>"><?= esc_html_e('Settings', 'mailchimp-for-woocommerce');?></a>
222
+ <?php endif; ?>
223
  </div>
224
  </div>
225
+ </div>
226
+ <?php endif; ?>
227
+ <div class="notices-content-wrapper <?= $active_tab == 'sync' ? 'sync-notices' : '' ?>">
228
+ <?php
229
+ $settings_errors = get_settings_errors();
230
+ if (!$show_wizard || ($show_wizard && isset($settings_errors[0]) && $settings_errors[0]['type'] != 'success' )) {
231
+ echo mailchimp_settings_errors();
232
+ }
233
+ ?>
234
+ </div>
235
+ <?php if ($active_tab != 'sync'): ?>
236
+ <div class="tab-content-wrapper">
237
+ <?php endif; ?>
238
+ <?php if (!defined('PHP_VERSION_ID') || (PHP_VERSION_ID < 70000)): ?>
239
+ <div data-dismissible="notice-php-version" class="error notice notice-error">
240
+ <p><?php esc_html_e('Mailchimp says: Please upgrade your PHP version to a minimum of 7.0', 'mailchimp-for-woocommerce'); ?></p>
241
+ </div>
242
+ <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243
 
244
+ <?php if (!empty($has_api_error)): ?>
245
+ <div data-dismissible="notice-api-error" class="error notice notice-error is-dismissible">
246
+ <p><?php esc_html_e("Mailchimp says: API Request Error - ".$has_api_error, 'mailchimp-for-woocommerce'); ?></p>
247
+ </div>
 
 
 
248
  <?php endif; ?>
249
+ <div class="box">
250
+ <?php if ($show_wizard) : ?>
251
+ <input type="hidden" name="mailchimp_woocommerce_wizard_on" value=1>
252
+ <?php endif; ?>
253
+
254
+ <input type="hidden" name="mailchimp_woocommerce_settings_hidden" value="Y">
255
+
256
+ <?php
257
+ if (!$clicked_sync_button) {
258
+ settings_fields($this->plugin_name);
259
+ do_settings_sections($this->plugin_name);
260
+ include('tabs/notices.php');
261
+ }
262
+ ?>
263
+ </div>
264
 
 
 
 
 
 
 
 
 
 
 
 
 
 
265
 
266
+ <input type="hidden" name="<?php echo $this->plugin_name; ?>[mailchimp_active_tab]" value="<?php echo esc_attr($active_tab); ?>"/>
267
+
268
+ <?php if ($active_tab == 'api_key'): ?>
269
+ <?php //include_once 'tabs/api_key_content.php'; ?>
270
+ <?php endif; ?>
271
 
272
+ <?php if ($active_tab == 'store_info' && $has_valid_api_key): ?>
273
+ <?php include_once 'tabs/store_info.php'; ?>
274
+ <?php endif; ?>
275
 
276
+ <?php if ($active_tab == 'newsletter_settings' ): ?>
277
+ <?php include_once 'tabs/newsletter_settings.php'; ?>
278
+ <?php endif; ?>
279
 
280
+ <?php if ($active_tab == 'sync' && $show_sync_tab): ?>
281
+ <?php include_once 'tabs/store_sync.php'; ?>
282
+ <?php endif; ?>
283
 
284
+ <?php if ($active_tab == 'logs' && $show_sync_tab): ?>
285
+ <?php include_once 'tabs/logs.php'; ?>
286
+ <?php endif; ?>
287
 
288
+ <?php if ($active_tab == 'plugin_settings' && $show_sync_tab): ?>
289
+ <?php include_once 'tabs/plugin_settings.php'; ?>
290
+ <?php endif; ?>
291
+ <?php if (mailchimp_is_configured()) : ?>
292
+ <div class="box">
293
+ <?php
294
+ if ($active_tab !== 'api_key' && $active_tab !== 'sync' && $active_tab !== 'logs' && $active_tab != 'plugin_settings') {
295
+ submit_button(__('Save all changes'), 'primary tab-content-submit','mailchimp_submit', TRUE);
296
+ }
297
+ ?>
298
+ </div>
299
+ <?php endif; ?>
300
+ <?php if ($active_tab != 'sync'): ?>
301
+ </div>
 
 
302
  <?php endif; ?>
303
+ </form>
 
 
 
 
304
  </div><!-- /.wrap -->
admin/partials/tabs/api_key.php CHANGED
@@ -1,21 +1,217 @@
1
- <input type="hidden" name="mailchimp_active_settings_tab" value="api_key"/>
 
2
 
3
- <!-- remove some meta and generators from the <head> -->
4
- <fieldset class="full">
5
  <legend class="screen-reader-text">
6
  <span><?php esc_html_e('Connect your store to Mailchimp', 'mailchimp-for-woocommerce');?></span>
7
  </legend>
8
-
9
-
10
- <a id="mailchimp-oauth-connect" class="button button-primary tab-content-submit oauth-connect"><?php $has_valid_api_key ? esc_html_e('Reconnect', 'mailchimp-for-woocommerce') : esc_html_e('Connect', 'mailchimp-for-woocommerce');?></a>
11
- <h4><?php esc_html_e('Connect your store to Mailchimp', 'mailchimp-for-woocommerce'); ?></h4>
12
  <input type="hidden" id="<?php echo $this->plugin_name; ?>-mailchimp-api-key" name="<?php echo $this->plugin_name; ?>[mailchimp_api_key]" value="<?php echo isset($options['mailchimp_api_key']) ? $options['mailchimp_api_key'] : '' ?>" required/>
 
13
  <?php if ($has_valid_api_key) :?>
14
  <p id="mailchimp-oauth-api-key-valid"><?php esc_html_e('Already connected. You can reconnect with another Mailchimp account if you want.' , 'mailchimp-for-woocommerce');?></p>
15
  <?php endif;?>
16
- <p id="mailchimp-oauth-waiting" class="oauth-description"><?php esc_html_e('Connecting. A new window will open with Mailchimp\'s OAuth service. Please log-in an we will take care of the rest.' , 'mailchimp-for-woocommerce');?></p>
17
  <p id="mailchimp-oauth-error" class="oauth-description"><?php esc_html_e('Error, can\'t login.' , 'mailchimp-for-woocommerce');?></p>
18
- <p id="mailchimp-oauth-connecting" class="oauth-description"><?php esc_html_e('Connection in progress' , 'mailchimp-for-woocommerce');?></p>
19
  <p id="mailchimp-oauth-connected" class="oauth-description "><?php esc_html_e('Connected! Please wait while loading next step', 'mailchimp-for-woocommerce');?></p>
20
  </fieldset>
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <fieldset class="full connect-button">
2
+ <input type="hidden" name="mailchimp_active_settings_tab" value="api_key"/>
3
 
 
 
4
  <legend class="screen-reader-text">
5
  <span><?php esc_html_e('Connect your store to Mailchimp', 'mailchimp-for-woocommerce');?></span>
6
  </legend>
7
+ <a id="mailchimp-oauth-connect" class="button button-primary tab-content-submit oauth-connect"><?php $has_valid_api_key ? esc_html_e('Reconnect account', 'mailchimp-for-woocommerce') : esc_html_e('Connect account', 'mailchimp-for-woocommerce');?></a>
8
+ <a class="button create-account" href='#mc-woocommerce-create-account'>Create account</a>
9
+
 
10
  <input type="hidden" id="<?php echo $this->plugin_name; ?>-mailchimp-api-key" name="<?php echo $this->plugin_name; ?>[mailchimp_api_key]" value="<?php echo isset($options['mailchimp_api_key']) ? $options['mailchimp_api_key'] : '' ?>" required/>
11
+
12
  <?php if ($has_valid_api_key) :?>
13
  <p id="mailchimp-oauth-api-key-valid"><?php esc_html_e('Already connected. You can reconnect with another Mailchimp account if you want.' , 'mailchimp-for-woocommerce');?></p>
14
  <?php endif;?>
15
+ <p id="mailchimp-oauth-waiting" class="oauth-description"><?php esc_html_e('Connecting. A new window will open with Mailchimp\'s OAuth service. Please log-in and we will take care of the rest.' , 'mailchimp-for-woocommerce');?></p>
16
  <p id="mailchimp-oauth-error" class="oauth-description"><?php esc_html_e('Error, can\'t login.' , 'mailchimp-for-woocommerce');?></p>
17
+ <p id="mailchimp-oauth-connecting" class="oauth-description"><?php esc_html_e('Connection in progress' , 'mailchimp-for-woocommerce');?><span class="spinner" style="visibility:visible; margin: 0 10px;"></span></p>
18
  <p id="mailchimp-oauth-connected" class="oauth-description "><?php esc_html_e('Connected! Please wait while loading next step', 'mailchimp-for-woocommerce');?></p>
19
  </fieldset>
20
 
21
+
22
+ <div class="tab-content-wrapper">
23
+ <div id="mc-woocommerce-create-account" class="mc-woocommerce-modal">
24
+ <div id="exampleModal" class="reveal-modal">
25
+ <a href="#" class="close-modal"><svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
26
+ <path d="M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z" fill="black"/>
27
+ </svg>
28
+ </a>
29
+ <div class="modal-header">
30
+ <svg width="100px" height="100px" viewBox="0 0 46 49" fill="none" xmlns="http://www.w3.org/2000/svg">
31
+ <path d="M34.5458 23.5193C34.8988 23.4778 35.2361 23.4759 35.5457 23.5193C35.7252 23.107 35.7568 22.397 35.5951 21.6239C35.3544 20.4741 35.029 19.7778 34.3584 19.8863C33.6859 19.9948 33.6622 20.8271 33.9028 21.9769C34.037 22.6238 34.2776 23.1761 34.5458 23.5193Z" fill="black"/>
32
+ <path d="M28.7763 24.4284C29.2575 24.6394 29.5534 24.7795 29.6678 24.6572C29.7427 24.5803 29.719 24.4363 29.6046 24.2489C29.368 23.8624 28.8788 23.4679 28.3621 23.249C27.303 22.7934 26.0407 22.9453 25.0664 23.6454C24.745 23.8801 24.4393 24.2075 24.4826 24.4047C24.4965 24.4698 24.5458 24.5172 24.6582 24.5329C24.9225 24.5625 25.8494 24.0951 26.9164 24.03C27.6718 23.9827 28.295 24.2174 28.7763 24.4284Z" fill="black"/>
33
+ <path d="M27.8105 24.9806C27.1852 25.0793 26.8381 25.2863 26.6172 25.4777C26.4279 25.6433 26.3115 25.8267 26.3115 25.9549C26.3115 26.0161 26.3391 26.0516 26.3589 26.0693C26.3865 26.095 26.422 26.1088 26.4614 26.1088C26.6034 26.1088 26.919 25.9826 26.919 25.9826C27.7907 25.6709 28.3647 25.7084 28.9346 25.7735C29.2502 25.809 29.3981 25.8287 29.4672 25.7202C29.4869 25.6887 29.5125 25.6216 29.4494 25.521C29.3054 25.2804 28.6723 24.8781 27.8105 24.9806Z" fill="black"/>
34
+ <path d="M32.5975 27.0061C33.0235 27.2152 33.4909 27.1324 33.6428 26.8227C33.7946 26.5131 33.5737 26.093 33.1497 25.8839C32.7237 25.6749 32.2563 25.7577 32.1044 26.0673C31.9506 26.377 32.1734 26.7971 32.5975 27.0061Z" fill="black"/>
35
+ <path d="M35.3306 24.6177C34.9854 24.6118 34.6995 24.9905 34.6916 25.4638C34.6837 25.9372 34.9578 26.3257 35.303 26.3317C35.6481 26.3376 35.9341 25.9589 35.942 25.4855C35.9499 25.0122 35.6757 24.6237 35.3306 24.6177Z" fill="black"/>
36
+ <path d="M12.1324 33.1577C12.0456 33.0492 11.9056 33.0827 11.7695 33.1143C11.6749 33.136 11.5664 33.1616 11.448 33.1596C11.1936 33.1557 10.9786 33.0452 10.8583 32.8598C10.7006 32.6192 10.7104 32.2583 10.884 31.8461C10.9076 31.7909 10.9353 31.7297 10.9648 31.6607C11.241 31.0394 11.7064 30 11.1857 29.008C10.7932 28.2625 10.1542 27.797 9.38702 27.7004C8.64939 27.6077 7.89006 27.8798 7.40685 28.4143C6.64358 29.2565 6.52328 30.4044 6.6712 30.8087C6.72445 30.9566 6.80925 30.998 6.87237 31.0059C7.00254 31.0237 7.19385 30.929 7.31416 30.6055C7.32205 30.5819 7.33388 30.5464 7.34769 30.501C7.40094 30.3294 7.50152 30.0099 7.66522 29.7555C7.86245 29.4478 8.17012 29.2348 8.53105 29.1579C8.89789 29.079 9.2746 29.15 9.58819 29.3551C10.1227 29.7062 10.3298 30.361 10.101 30.9862C9.98264 31.3096 9.79133 31.9289 9.83275 32.4378C9.91756 33.4673 10.5507 33.8795 11.1206 33.9249C11.6729 33.9466 12.0594 33.6349 12.1581 33.4081C12.2133 33.274 12.164 33.1932 12.1324 33.1577Z" fill="black"/>
37
+ <path d="M44.044 31.2761C44.0223 31.2012 43.8862 30.7002 43.6969 30.0967C43.5075 29.4932 43.3142 29.0672 43.3142 29.0672C44.0696 27.9351 44.0834 26.9233 43.9828 26.3514C43.8763 25.6414 43.5805 25.0359 42.9829 24.4107C42.3873 23.7854 41.1684 23.1445 39.4545 22.6632C39.2593 22.608 38.6123 22.4305 38.5551 22.4127C38.5512 22.3753 38.5078 20.2945 38.4684 19.3991C38.4408 18.7522 38.3836 17.7444 38.0719 16.7504C37.6992 15.4053 37.0483 14.2298 36.2377 13.4764C38.4763 11.157 39.8726 8.60091 39.8707 6.40774C39.8647 2.19102 34.6855 0.914962 28.3033 3.55781C28.2974 3.55978 26.9602 4.1278 26.9503 4.13174C26.9444 4.12582 24.5066 1.73346 24.4692 1.7019C17.1954 -4.64488 -5.55475 20.6436 1.71899 26.7853L3.30864 28.1323C2.89644 29.2013 2.73471 30.4241 2.86685 31.7396C3.03647 33.4299 3.90822 35.0511 5.32234 36.3015C6.66348 37.4908 8.42669 38.2422 10.1386 38.2402C12.9688 44.7626 19.4359 48.7643 27.0193 48.9891C35.153 49.2317 41.981 45.4134 44.8428 38.5578C45.0301 38.0765 45.825 35.909 45.825 33.9939C45.825 32.0729 44.7382 31.2761 44.044 31.2761ZM10.7638 36.41C10.5173 36.4514 10.2649 36.4691 10.0104 36.4632C7.55298 36.3981 4.90027 34.1852 4.63598 31.5621C4.34409 28.6629 5.82527 26.4322 8.44839 25.9017C8.76198 25.8386 9.14066 25.8011 9.54892 25.8228C11.0183 25.9037 13.1838 27.0318 13.6789 30.2328C14.1187 33.0689 13.4225 35.9564 10.7638 36.41ZM8.02041 24.1681C6.38736 24.4856 4.9476 25.4106 4.06797 26.6886C3.54137 26.2508 2.56115 25.4007 2.38956 25.0694C0.985306 22.4009 3.92202 17.2138 5.97516 14.285C11.0478 7.04676 18.9922 1.56581 22.6705 2.55984C23.2681 2.72945 25.2482 5.02518 25.2482 5.02518C25.2482 5.02518 21.5719 7.06451 18.1618 9.90853C13.5704 13.4468 10.0992 18.5885 8.02041 24.1681ZM33.8079 35.3252C33.8611 35.3035 33.8986 35.2424 33.8927 35.1812C33.8848 35.1063 33.8177 35.0531 33.7448 35.0609C33.7448 35.0609 29.8969 35.6309 26.26 34.2996C26.6564 33.0117 27.7096 33.4772 29.3012 33.6054C32.1709 33.777 34.7408 33.3569 36.642 32.8125C38.2889 32.3392 40.4505 31.4083 42.1309 30.0829C42.6969 31.3274 42.8981 32.6962 42.8981 32.6962C42.8981 32.6962 43.3359 32.6173 43.7028 32.8441C44.0499 33.0571 44.3024 33.5009 44.1288 34.6448C43.7758 36.7847 42.8665 38.5223 41.338 40.1198C40.4071 41.1217 39.277 41.9935 37.9852 42.6266C37.2988 42.9875 36.5671 43.2991 35.7959 43.5516C30.033 45.4331 24.1339 43.3642 22.2326 38.9207C22.0807 38.5874 21.9525 38.2363 21.852 37.8714C21.0414 34.9426 21.7297 31.43 23.8795 29.2171C23.8795 29.2171 23.8795 29.2171 23.8795 29.2151C24.0116 29.0751 24.1477 28.9094 24.1477 28.7004C24.1477 28.5248 24.0372 28.3414 23.9406 28.2112C23.1892 27.1206 20.5818 25.2607 21.1045 21.6613C21.4792 19.0757 23.7414 17.2553 25.8498 17.3637C26.0273 17.3736 26.2067 17.3834 26.3842 17.3953C27.2974 17.4485 28.0942 17.5669 28.8476 17.5984C30.1059 17.6537 31.238 17.4702 32.5792 16.3519C33.0308 15.9752 33.3937 15.6478 34.0071 15.5453C34.0722 15.5335 34.2319 15.4763 34.5534 15.492C34.8808 15.5098 35.1924 15.5985 35.4725 15.7859C36.5474 16.5018 36.6992 18.2335 36.7545 19.4997C36.786 20.2235 36.8728 21.9729 36.9044 22.4759C36.9734 23.6237 37.2751 23.7874 37.8846 23.9886C38.2278 24.101 38.5473 24.1858 39.0167 24.318C40.4387 24.7183 41.2828 25.1227 41.8153 25.6433C42.1329 25.9688 42.2808 26.3139 42.3261 26.6433C42.4938 27.8661 41.3755 29.3788 38.4171 30.7515C35.1826 32.2524 31.2577 32.6331 28.5459 32.3313C28.3388 32.3076 27.5992 32.2248 27.5952 32.2248C25.4257 31.9329 24.1891 34.7355 25.4908 36.6565C26.329 37.8951 28.6149 38.6998 30.9008 38.6998C36.1431 38.6998 40.1724 36.4613 41.6713 34.5284C41.7167 34.4712 41.7206 34.4633 41.7916 34.3568C41.8646 34.2464 41.8055 34.1852 41.7128 34.2464C40.488 35.0846 35.0484 38.4099 29.2322 37.4099C29.2322 37.4099 28.5261 37.2936 27.8792 37.0431C27.3664 36.8439 26.2935 36.3508 26.1634 35.2483C30.8514 36.6979 33.8079 35.3252 33.8079 35.3252ZM26.3704 34.4476C26.3704 34.4476 26.3724 34.4476 26.3704 34.4476C26.3724 34.4495 26.3724 34.4495 26.3724 34.4515C26.3724 34.4495 26.3724 34.4476 26.3704 34.4476ZM17.3887 14.2554C19.1914 12.1707 21.4121 10.3602 23.4002 9.34249C23.4692 9.30699 23.5422 9.38193 23.5047 9.44899C23.3469 9.73497 23.0432 10.3464 22.9466 10.8118C22.9308 10.8848 23.0097 10.9381 23.0708 10.8966C24.3074 10.0525 26.4612 9.14921 28.3486 9.03284C28.4295 9.02693 28.4689 9.13146 28.4039 9.18076C28.1159 9.40166 27.8023 9.70539 27.5735 10.0131C27.5341 10.0663 27.5716 10.1413 27.6366 10.1413C28.962 10.1511 30.8317 10.6146 32.0486 11.297C32.1315 11.3424 32.0723 11.5021 31.9796 11.4824C30.1375 11.0603 27.1199 10.7389 23.986 11.5041C21.1893 12.1865 19.0533 13.2397 17.4952 14.3738C17.4203 14.4329 17.3256 14.3304 17.3887 14.2554Z" fill="black"/>
38
+ </svg>
39
+ <h3>Create your mailchimp account (<span id="step_count">1</span> of 2)</h3>
40
+
41
+ </div>
42
+
43
+
44
+ <div id="mc-woocommerce-create-account-step-1" class="mc-woocommerce-create-account-step">
45
+ <fieldset>
46
+ <?php $user_id = get_current_user_id(); ?>
47
+
48
+ <input id="first_name" name="first_name" type="hidden" value="<?= get_user_meta( $user_id, 'first_name', true );?>">
49
+ <input id="last_name" name="last_name" type="hidden" value="<?= get_user_meta( $user_id, 'last_name', true );?>">
50
+ <input id="org" name="org" type="hidden" value="<?= get_bloginfo( 'name' );?>">
51
+
52
+ <div class="box" >
53
+ <label for="email">
54
+ <span> <?php esc_html_e('Email', 'mailchimp-for-woocommerce'); ?></span>
55
+ </label>
56
+ <input required type="email" id="email" name="email"/>
57
+ </div>
58
+
59
+ <div class="box" >
60
+ <label for="username">
61
+ <span> <?php esc_html_e('Username', 'mailchimp-for-woocommerce'); ?></span>
62
+ </label>
63
+ <input required type="text" id="username" name="username"/>
64
+ <p class="description" id ="username_suggestion"><?= esc_html__( 'Suggested username: ', 'mailchimp-for-woocommerce' ); ?><span></span></p>
65
+ </div>
66
+
67
+
68
+ <div class="box " >
69
+ <a id="mc-woocommerce-create-account-next" class="button button-primary whitebtn tab-content-submit"><?php esc_html_e('Next Step', 'mailchimp-for-woocommerce'); ?></a>
70
+ <span class="mc-woocommerce-create-account-go-spinner spinner"></span>
71
+ </div>
72
+
73
+ <div class="box mc-woocommerce-create-account-step-error alignright" >
74
+ <p id ="email_error"><?= esc_html__( 'Invalid Email. Please double check.', 'mailchimp-for-woocommerce' ); ?></p>
75
+ <p id ="username_invalid_error">Username Invalid or already exists</p>
76
+ <p id ="username_exists_error">Username already exists</p>
77
+ </div>
78
+
79
+
80
+
81
+ </fieldset>
82
+ </div>
83
+
84
+ <div id="mc-woocommerce-create-account-step-2" class="mc-woocommerce-create-account-step">
85
+ <fieldset>
86
+ <div class="box" >
87
+ <label for="address">
88
+ <span> <?php esc_html_e('Address Line 1', 'mailchimp-for-woocommerce'); ?></span>
89
+ </label>
90
+ <input required type="text" id="address" name="address"/>
91
+ </div>
92
+
93
+ <div class="box" >
94
+ <label for="address2">
95
+ <span> <?php esc_html_e('Address Line 2', 'mailchimp-for-woocommerce'); ?></span>
96
+ </label>
97
+ <input type="text" id="address2" name="address2"/>
98
+ </div>
99
+
100
+
101
+ <div class="box" >
102
+ <label for="city">
103
+ <span> <?php esc_html_e('City', 'mailchimp-for-woocommerce'); ?></span>
104
+ </label>
105
+ <input required type="text" id="city" name="city"/>
106
+ </div>
107
+
108
+ <div class="box box-half" >
109
+ <label for="state">
110
+ <span> <?php esc_html_e('State', 'mailchimp-for-woocommerce'); ?></span>
111
+ </label>
112
+ <input required type="text" id="state" name="state"/>
113
+ </div>
114
+
115
+ <div class="box box-half" >
116
+ <label for="zip">
117
+ <span> <?php esc_html_e('Zip', 'mailchimp-for-woocommerce'); ?></span>
118
+ </label>
119
+ <input required type="text" id="zip" name="zip"/>
120
+ </div>
121
+
122
+ <div class="box box-half" >
123
+ <label for="<?= $this->plugin_name ?>[store_country]">
124
+ <span> <?php esc_html_e('Country', 'mailchimp-for-woocommerce'); ?></span>
125
+ </label>
126
+ <?php global $woocommerce;
127
+ $countries_obj = new WC_Countries();
128
+ $countries = $countries_obj->__get('countries');
129
+ ?>
130
+
131
+ <div class="mailchimp-select-wrapper">
132
+ <?php
133
+ woocommerce_form_field($this->plugin_name.'[store_country]', array(
134
+ 'type' => 'select',
135
+ 'id' => 'country',
136
+ 'placeholder' => __('Select a Country'),
137
+ 'options' => $countries,
138
+ 'required' => true
139
+ ),
140
+ isset($options['store_country']) ? $options['store_country'] : WC()->countries->get_base_country()
141
+ );
142
+
143
+ ?>
144
+ </div>
145
+ </div>
146
+
147
+ <div class="box box-half" >
148
+ <label for="phone">
149
+ <span> <?php esc_html_e('Phone', 'mailchimp-for-woocommerce'); ?></span>
150
+ </label>
151
+ <input required type="text" id="phone" name="phone"/>
152
+ </div>
153
+
154
+ <div class="box" >
155
+ <label for="<?php echo $this->plugin_name; ?>-store-timezone-label">
156
+ <span><?php esc_html_e('Timezone', 'mailchimp-for-woocommerce'); ?></span>
157
+ </label>
158
+ <div class="mailchimp-select-wrapper">
159
+ <select id="timezone" name="timezone" required>
160
+ <?php $selected_timezone = isset($options['store_timezone']) && !empty($options['store_timezone']) ? $options['store_timezone'] : get_option('timezone_string'); ?>
161
+ <?php
162
+ foreach(mailchimp_get_timezone_list() as $t) {
163
+ echo '<option value="' . esc_attr( $t['zone'] ) . '" ' . selected($t['zone'] === $selected_timezone, true, false ) . '>' . esc_html( $t['diff_from_GMT'] . ' - ' . $t['zone'] ) . '</option>';
164
+ }
165
+ ?>
166
+ </select>
167
+ </div>
168
+ </div>
169
+
170
+ <div class="box terms" >
171
+ <p>
172
+ <?php
173
+ $allowed_html = array(
174
+ 'a' => array(
175
+ 'href' => array(),
176
+ 'title' => array(),
177
+ 'target' => array()
178
+ ),
179
+ 'br' => array()
180
+ );
181
+ ?>
182
+ <?= sprintf(/* translators: %s - Mailchimp legal pages */wp_kses( __( 'By clicking the "Get Started!" button, you are creating a Mailchimp account, and you agree to Mailchimp\'s <a href=%1$s target=_blank>Terms of Use</a> and <a href=%2$s target=_blank>Privacy Policy</a>.', 'mailchimp-for-woocommerce' ), array( 'a' => array( 'href' => array(), 'target'=> '_blank' ) ) ), esc_url( 'https://mailchimp.com/legal/terms' ), esc_url( 'https://mailchimp.com/legal/privacy' ) );?>
183
+
184
+ </p>
185
+ </div>
186
+
187
+ <div class="box box-half" >
188
+ <a id="mc-woocommerce-create-account-prev" class="button button-primary whitebtn tab-content-submit"><?php esc_html_e('Go Back', 'mailchimp-for-woocommerce'); ?></a>
189
+ </div>
190
+
191
+ <div class="box box-half" >
192
+ <a id="mc-woocommerce-create-account-go" class="button button-primary tab-content-submit"><?php esc_html_e('Get Started!', 'mailchimp-for-woocommerce'); ?></a>
193
+ <span class="spinner"></span>
194
+ </div>
195
+
196
+ <div class="box mc-woocommerce-create-account-step-error alignright" >
197
+ <p id ="address_error"><?= esc_html__( 'Invalid Address', 'mailchimp-for-woocommerce' ); ?></p>
198
+ <p id ="city_error"><?= esc_html__( 'Invalid City', 'mailchimp-for-woocommerce' ); ?></p>
199
+ <p id ="state_error"><?= esc_html__( 'Invalid State', 'mailchimp-for-woocommerce' ); ?></p>
200
+ <p id ="zip_error"><?= esc_html__( 'Invalid Zip', 'mailchimp-for-woocommerce' ); ?></p>
201
+ <p id ="country_error"><?= esc_html__( 'Invalid Country', 'mailchimp-for-woocommerce' ); ?></p>
202
+ <p id ="phone_error"><?= esc_html__( 'Invalid Phone', 'mailchimp-for-woocommerce' ); ?></p>
203
+ <p id ="timezone_error"><?= esc_html__( 'Invalid Timezone', 'mailchimp-for-woocommerce' ); ?></p>
204
+ <p id ="connecting"><?= esc_html__( 'Connecting...', 'mailchimp-for-woocommerce' ); ?></p>
205
+ </div>
206
+ </fieldset>
207
+
208
+ </div>
209
+
210
+
211
+ <div class="modal-footer">
212
+ ©2001–<?= date('Y') ?> All Rights Reserved. Mailchimp® is a registered trademark of The Rocket Science Group. Cookie Preferences, Privacy, and Terms.
213
+ </div>
214
+
215
+ </div>
216
+ </div>
217
+ </div>
admin/partials/tabs/api_key_content.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <div class="box">
2
+ <img width=100% src="<?php echo plugin_dir_url( __FILE__ ) . "images/Screenshot_sync.png"; ?>"/>
3
+ </div>
admin/partials/tabs/api_key_create_account.php DELETED
@@ -1,195 +0,0 @@
1
- <p id="mc-woocommerce-create-account-link" class="create-account-link alignright">Don’t have a Mailchimp account yet? <a style="font-weight:bold !important;" href='#mc-woocommerce-create-account'>Create one here</a></p>
2
- <div id="mc-woocommerce-create-account" class="mc-woocommerce-modal">
3
- <div id="exampleModal" class="reveal-modal">
4
- <a href="#" class="close-modal"><svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
5
- <path d="M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z" fill="black"/>
6
- </svg>
7
- </a>
8
- <div class="modal-header">
9
- <svg width="100px" height="100px" viewBox="0 0 46 49" fill="none" xmlns="http://www.w3.org/2000/svg">
10
- <path d="M34.5458 23.5193C34.8988 23.4778 35.2361 23.4759 35.5457 23.5193C35.7252 23.107 35.7568 22.397 35.5951 21.6239C35.3544 20.4741 35.029 19.7778 34.3584 19.8863C33.6859 19.9948 33.6622 20.8271 33.9028 21.9769C34.037 22.6238 34.2776 23.1761 34.5458 23.5193Z" fill="black"/>
11
- <path d="M28.7763 24.4284C29.2575 24.6394 29.5534 24.7795 29.6678 24.6572C29.7427 24.5803 29.719 24.4363 29.6046 24.2489C29.368 23.8624 28.8788 23.4679 28.3621 23.249C27.303 22.7934 26.0407 22.9453 25.0664 23.6454C24.745 23.8801 24.4393 24.2075 24.4826 24.4047C24.4965 24.4698 24.5458 24.5172 24.6582 24.5329C24.9225 24.5625 25.8494 24.0951 26.9164 24.03C27.6718 23.9827 28.295 24.2174 28.7763 24.4284Z" fill="black"/>
12
- <path d="M27.8105 24.9806C27.1852 25.0793 26.8381 25.2863 26.6172 25.4777C26.4279 25.6433 26.3115 25.8267 26.3115 25.9549C26.3115 26.0161 26.3391 26.0516 26.3589 26.0693C26.3865 26.095 26.422 26.1088 26.4614 26.1088C26.6034 26.1088 26.919 25.9826 26.919 25.9826C27.7907 25.6709 28.3647 25.7084 28.9346 25.7735C29.2502 25.809 29.3981 25.8287 29.4672 25.7202C29.4869 25.6887 29.5125 25.6216 29.4494 25.521C29.3054 25.2804 28.6723 24.8781 27.8105 24.9806Z" fill="black"/>
13
- <path d="M32.5975 27.0061C33.0235 27.2152 33.4909 27.1324 33.6428 26.8227C33.7946 26.5131 33.5737 26.093 33.1497 25.8839C32.7237 25.6749 32.2563 25.7577 32.1044 26.0673C31.9506 26.377 32.1734 26.7971 32.5975 27.0061Z" fill="black"/>
14
- <path d="M35.3306 24.6177C34.9854 24.6118 34.6995 24.9905 34.6916 25.4638C34.6837 25.9372 34.9578 26.3257 35.303 26.3317C35.6481 26.3376 35.9341 25.9589 35.942 25.4855C35.9499 25.0122 35.6757 24.6237 35.3306 24.6177Z" fill="black"/>
15
- <path d="M12.1324 33.1577C12.0456 33.0492 11.9056 33.0827 11.7695 33.1143C11.6749 33.136 11.5664 33.1616 11.448 33.1596C11.1936 33.1557 10.9786 33.0452 10.8583 32.8598C10.7006 32.6192 10.7104 32.2583 10.884 31.8461C10.9076 31.7909 10.9353 31.7297 10.9648 31.6607C11.241 31.0394 11.7064 30 11.1857 29.008C10.7932 28.2625 10.1542 27.797 9.38702 27.7004C8.64939 27.6077 7.89006 27.8798 7.40685 28.4143C6.64358 29.2565 6.52328 30.4044 6.6712 30.8087C6.72445 30.9566 6.80925 30.998 6.87237 31.0059C7.00254 31.0237 7.19385 30.929 7.31416 30.6055C7.32205 30.5819 7.33388 30.5464 7.34769 30.501C7.40094 30.3294 7.50152 30.0099 7.66522 29.7555C7.86245 29.4478 8.17012 29.2348 8.53105 29.1579C8.89789 29.079 9.2746 29.15 9.58819 29.3551C10.1227 29.7062 10.3298 30.361 10.101 30.9862C9.98264 31.3096 9.79133 31.9289 9.83275 32.4378C9.91756 33.4673 10.5507 33.8795 11.1206 33.9249C11.6729 33.9466 12.0594 33.6349 12.1581 33.4081C12.2133 33.274 12.164 33.1932 12.1324 33.1577Z" fill="black"/>
16
- <path d="M44.044 31.2761C44.0223 31.2012 43.8862 30.7002 43.6969 30.0967C43.5075 29.4932 43.3142 29.0672 43.3142 29.0672C44.0696 27.9351 44.0834 26.9233 43.9828 26.3514C43.8763 25.6414 43.5805 25.0359 42.9829 24.4107C42.3873 23.7854 41.1684 23.1445 39.4545 22.6632C39.2593 22.608 38.6123 22.4305 38.5551 22.4127C38.5512 22.3753 38.5078 20.2945 38.4684 19.3991C38.4408 18.7522 38.3836 17.7444 38.0719 16.7504C37.6992 15.4053 37.0483 14.2298 36.2377 13.4764C38.4763 11.157 39.8726 8.60091 39.8707 6.40774C39.8647 2.19102 34.6855 0.914962 28.3033 3.55781C28.2974 3.55978 26.9602 4.1278 26.9503 4.13174C26.9444 4.12582 24.5066 1.73346 24.4692 1.7019C17.1954 -4.64488 -5.55475 20.6436 1.71899 26.7853L3.30864 28.1323C2.89644 29.2013 2.73471 30.4241 2.86685 31.7396C3.03647 33.4299 3.90822 35.0511 5.32234 36.3015C6.66348 37.4908 8.42669 38.2422 10.1386 38.2402C12.9688 44.7626 19.4359 48.7643 27.0193 48.9891C35.153 49.2317 41.981 45.4134 44.8428 38.5578C45.0301 38.0765 45.825 35.909 45.825 33.9939C45.825 32.0729 44.7382 31.2761 44.044 31.2761ZM10.7638 36.41C10.5173 36.4514 10.2649 36.4691 10.0104 36.4632C7.55298 36.3981 4.90027 34.1852 4.63598 31.5621C4.34409 28.6629 5.82527 26.4322 8.44839 25.9017C8.76198 25.8386 9.14066 25.8011 9.54892 25.8228C11.0183 25.9037 13.1838 27.0318 13.6789 30.2328C14.1187 33.0689 13.4225 35.9564 10.7638 36.41ZM8.02041 24.1681C6.38736 24.4856 4.9476 25.4106 4.06797 26.6886C3.54137 26.2508 2.56115 25.4007 2.38956 25.0694C0.985306 22.4009 3.92202 17.2138 5.97516 14.285C11.0478 7.04676 18.9922 1.56581 22.6705 2.55984C23.2681 2.72945 25.2482 5.02518 25.2482 5.02518C25.2482 5.02518 21.5719 7.06451 18.1618 9.90853C13.5704 13.4468 10.0992 18.5885 8.02041 24.1681ZM33.8079 35.3252C33.8611 35.3035 33.8986 35.2424 33.8927 35.1812C33.8848 35.1063 33.8177 35.0531 33.7448 35.0609C33.7448 35.0609 29.8969 35.6309 26.26 34.2996C26.6564 33.0117 27.7096 33.4772 29.3012 33.6054C32.1709 33.777 34.7408 33.3569 36.642 32.8125C38.2889 32.3392 40.4505 31.4083 42.1309 30.0829C42.6969 31.3274 42.8981 32.6962 42.8981 32.6962C42.8981 32.6962 43.3359 32.6173 43.7028 32.8441C44.0499 33.0571 44.3024 33.5009 44.1288 34.6448C43.7758 36.7847 42.8665 38.5223 41.338 40.1198C40.4071 41.1217 39.277 41.9935 37.9852 42.6266C37.2988 42.9875 36.5671 43.2991 35.7959 43.5516C30.033 45.4331 24.1339 43.3642 22.2326 38.9207C22.0807 38.5874 21.9525 38.2363 21.852 37.8714C21.0414 34.9426 21.7297 31.43 23.8795 29.2171C23.8795 29.2171 23.8795 29.2171 23.8795 29.2151C24.0116 29.0751 24.1477 28.9094 24.1477 28.7004C24.1477 28.5248 24.0372 28.3414 23.9406 28.2112C23.1892 27.1206 20.5818 25.2607 21.1045 21.6613C21.4792 19.0757 23.7414 17.2553 25.8498 17.3637C26.0273 17.3736 26.2067 17.3834 26.3842 17.3953C27.2974 17.4485 28.0942 17.5669 28.8476 17.5984C30.1059 17.6537 31.238 17.4702 32.5792 16.3519C33.0308 15.9752 33.3937 15.6478 34.0071 15.5453C34.0722 15.5335 34.2319 15.4763 34.5534 15.492C34.8808 15.5098 35.1924 15.5985 35.4725 15.7859C36.5474 16.5018 36.6992 18.2335 36.7545 19.4997C36.786 20.2235 36.8728 21.9729 36.9044 22.4759C36.9734 23.6237 37.2751 23.7874 37.8846 23.9886C38.2278 24.101 38.5473 24.1858 39.0167 24.318C40.4387 24.7183 41.2828 25.1227 41.8153 25.6433C42.1329 25.9688 42.2808 26.3139 42.3261 26.6433C42.4938 27.8661 41.3755 29.3788 38.4171 30.7515C35.1826 32.2524 31.2577 32.6331 28.5459 32.3313C28.3388 32.3076 27.5992 32.2248 27.5952 32.2248C25.4257 31.9329 24.1891 34.7355 25.4908 36.6565C26.329 37.8951 28.6149 38.6998 30.9008 38.6998C36.1431 38.6998 40.1724 36.4613 41.6713 34.5284C41.7167 34.4712 41.7206 34.4633 41.7916 34.3568C41.8646 34.2464 41.8055 34.1852 41.7128 34.2464C40.488 35.0846 35.0484 38.4099 29.2322 37.4099C29.2322 37.4099 28.5261 37.2936 27.8792 37.0431C27.3664 36.8439 26.2935 36.3508 26.1634 35.2483C30.8514 36.6979 33.8079 35.3252 33.8079 35.3252ZM26.3704 34.4476C26.3704 34.4476 26.3724 34.4476 26.3704 34.4476C26.3724 34.4495 26.3724 34.4495 26.3724 34.4515C26.3724 34.4495 26.3724 34.4476 26.3704 34.4476ZM17.3887 14.2554C19.1914 12.1707 21.4121 10.3602 23.4002 9.34249C23.4692 9.30699 23.5422 9.38193 23.5047 9.44899C23.3469 9.73497 23.0432 10.3464 22.9466 10.8118C22.9308 10.8848 23.0097 10.9381 23.0708 10.8966C24.3074 10.0525 26.4612 9.14921 28.3486 9.03284C28.4295 9.02693 28.4689 9.13146 28.4039 9.18076C28.1159 9.40166 27.8023 9.70539 27.5735 10.0131C27.5341 10.0663 27.5716 10.1413 27.6366 10.1413C28.962 10.1511 30.8317 10.6146 32.0486 11.297C32.1315 11.3424 32.0723 11.5021 31.9796 11.4824C30.1375 11.0603 27.1199 10.7389 23.986 11.5041C21.1893 12.1865 19.0533 13.2397 17.4952 14.3738C17.4203 14.4329 17.3256 14.3304 17.3887 14.2554Z" fill="black"/>
17
- </svg>
18
- <h3>Create your mailchimp account (<span id="step_count">1</span> of 2)</h3>
19
-
20
- </div>
21
-
22
-
23
- <div id="mc-woocommerce-create-account-step-1" class="mc-woocommerce-create-account-step">
24
- <fieldset>
25
- <?php $user_id = get_current_user_id(); ?>
26
-
27
- <input id="first_name" name="first_name" type="hidden" value="<?= get_user_meta( $user_id, 'first_name', true );?>">
28
- <input id="last_name" name="last_name" type="hidden" value="<?= get_user_meta( $user_id, 'last_name', true );?>">
29
- <input id="org" name="org" type="hidden" value="<?= get_bloginfo( 'name' );?>">
30
-
31
- <div class="box" >
32
- <label for="email">
33
- <span> <?php esc_html_e('Email', 'mailchimp-for-woocommerce'); ?></span>
34
- </label>
35
- <input required type="email" id="email" name="email"/>
36
- </div>
37
-
38
- <div class="box" >
39
- <label for="username">
40
- <span> <?php esc_html_e('Username', 'mailchimp-for-woocommerce'); ?></span>
41
- </label>
42
- <input required type="text" id="username" name="username"/>
43
- <p class="description" id ="username_suggestion"><?= esc_html__( 'Suggested username: ', 'mailchimp-for-woocommerce' ); ?><span></span></p>
44
- </div>
45
-
46
-
47
- <div class="box " >
48
- <a id="mc-woocommerce-create-account-next" class="button button-primary whitebtn tab-content-submit"><?php esc_html_e('Next Step', 'mailchimp-for-woocommerce'); ?></a>
49
- <span class="spinner"></span>
50
- </div>
51
-
52
- <div class="box mc-woocommerce-create-account-step-error alignright" >
53
- <p id ="email_error"><?= esc_html__( 'Invalid Email. Please double check.', 'mailchimp-for-woocommerce' ); ?></p>
54
- <p id ="username_invalid_error">Username Invalid or already exists</p>
55
- <p id ="username_exists_error">Username already exists</p>
56
- </div>
57
-
58
-
59
-
60
- </fieldset>
61
- </div>
62
-
63
- <div id="mc-woocommerce-create-account-step-2" class="mc-woocommerce-create-account-step">
64
- <fieldset>
65
- <div class="box" >
66
- <label for="address">
67
- <span> <?php esc_html_e('Address Line 1', 'mailchimp-for-woocommerce'); ?></span>
68
- </label>
69
- <input required type="text" id="address" name="address"/>
70
- </div>
71
-
72
- <div class="box" >
73
- <label for="address2">
74
- <span> <?php esc_html_e('Address Line 2', 'mailchimp-for-woocommerce'); ?></span>
75
- </label>
76
- <input type="text" id="address2" name="address2"/>
77
- </div>
78
-
79
-
80
- <div class="box" >
81
- <label for="city">
82
- <span> <?php esc_html_e('City', 'mailchimp-for-woocommerce'); ?></span>
83
- </label>
84
- <input required type="text" id="city" name="city"/>
85
- </div>
86
-
87
- <div class="box box-half" >
88
- <label for="state">
89
- <span> <?php esc_html_e('State', 'mailchimp-for-woocommerce'); ?></span>
90
- </label>
91
- <input required type="text" id="state" name="state"/>
92
- </div>
93
-
94
- <div class="box box-half" >
95
- <label for="zip">
96
- <span> <?php esc_html_e('Zip', 'mailchimp-for-woocommerce'); ?></span>
97
- </label>
98
- <input required type="text" id="zip" name="zip"/>
99
- </div>
100
-
101
- <div class="box box-half" >
102
- <label for="<?= $this->plugin_name ?>[store_country]">
103
- <span> <?php esc_html_e('Country', 'mailchimp-for-woocommerce'); ?></span>
104
- </label>
105
- <?php global $woocommerce;
106
- $countries_obj = new WC_Countries();
107
- $countries = $countries_obj->__get('countries');
108
- ?>
109
-
110
- <div class="mailchimp-select-wrapper">
111
- <?php
112
- woocommerce_form_field($this->plugin_name.'[store_country]', array(
113
- 'type' => 'select',
114
- 'id' => 'country',
115
- 'placeholder' => __('Select a Country'),
116
- 'options' => $countries,
117
- 'required' => true
118
- ),
119
- isset($options['store_country']) ? $options['store_country'] : WC()->countries->get_base_country()
120
- );
121
-
122
- ?>
123
- </div>
124
- </div>
125
-
126
- <div class="box box-half" >
127
- <label for="phone">
128
- <span> <?php esc_html_e('Phone', 'mailchimp-for-woocommerce'); ?></span>
129
- </label>
130
- <input required type="text" id="phone" name="phone"/>
131
- </div>
132
-
133
- <div class="box" >
134
- <label for="<?php echo $this->plugin_name; ?>-store-timezone-label">
135
- <span><?php esc_html_e('Timezone', 'mailchimp-for-woocommerce'); ?></span>
136
- </label>
137
- <div class="mailchimp-select-wrapper">
138
- <select id="timezone" name="timezone" required>
139
- <?php $selected_timezone = isset($options['store_timezone']) && !empty($options['store_timezone']) ? $options['store_timezone'] : get_option('timezone_string'); ?>
140
- <?php
141
- foreach(mailchimp_get_timezone_list() as $t) {
142
- echo '<option value="' . esc_attr( $t['zone'] ) . '" ' . selected($t['zone'] === $selected_timezone, true, false ) . '>' . esc_html( $t['diff_from_GMT'] . ' - ' . $t['zone'] ) . '</option>';
143
- }
144
- ?>
145
- </select>
146
- </div>
147
- </div>
148
-
149
- <div class="box terms" >
150
- <p>
151
- <?php
152
- $allowed_html = array(
153
- 'a' => array(
154
- 'href' => array(),
155
- 'title' => array(),
156
- 'target' => array()
157
- ),
158
- 'br' => array()
159
- );
160
- ?>
161
- <?= sprintf(/* translators: %s - Mailchimp legal pages */wp_kses( __( 'By clicking the "Get Started!" button, you are creating a Mailchimp account, and you agree to Mailchimp\'s <a href=%1$s target=_blank>Terms of Use</a> and <a href=%2$s target=_blank>Privacy Policy</a>.', 'mailchimp-for-woocommerce' ), array( 'a' => array( 'href' => array(), 'target'=> '_blank' ) ) ), esc_url( 'https://mailchimp.com/legal/terms' ), esc_url( 'https://mailchimp.com/legal/privacy' ) );?>
162
-
163
- </p>
164
- </div>
165
-
166
- <div class="box box-half" >
167
- <a id="mc-woocommerce-create-account-prev" class="button button-primary whitebtn tab-content-submit"><?php esc_html_e('Go Back', 'mailchimp-for-woocommerce'); ?></a>
168
- </div>
169
-
170
- <div class="box box-half" >
171
- <a id="mc-woocommerce-create-account-go" class="button button-primary tab-content-submit"><?php esc_html_e('Get Started!', 'mailchimp-for-woocommerce'); ?></a>
172
- <span class="spinner"></span>
173
- </div>
174
-
175
- <div class="box mc-woocommerce-create-account-step-error alignright" >
176
- <p id ="address_error"><?= esc_html__( 'Invalid Address', 'mailchimp-for-woocommerce' ); ?></p>
177
- <p id ="city_error"><?= esc_html__( 'Invalid City', 'mailchimp-for-woocommerce' ); ?></p>
178
- <p id ="state_error"><?= esc_html__( 'Invalid State', 'mailchimp-for-woocommerce' ); ?></p>
179
- <p id ="zip_error"><?= esc_html__( 'Invalid Zip', 'mailchimp-for-woocommerce' ); ?></p>
180
- <p id ="country_error"><?= esc_html__( 'Invalid Country', 'mailchimp-for-woocommerce' ); ?></p>
181
- <p id ="phone_error"><?= esc_html__( 'Invalid Phone', 'mailchimp-for-woocommerce' ); ?></p>
182
- <p id ="timezone_error"><?= esc_html__( 'Invalid Timezone', 'mailchimp-for-woocommerce' ); ?></p>
183
- <p id ="connecting"><?= esc_html__( 'Connecting...', 'mailchimp-for-woocommerce' ); ?></p>
184
- </div>
185
- </fieldset>
186
-
187
- </div>
188
-
189
-
190
- <div class="modal-footer">
191
- ©2001–<?= date('Y') ?> All Rights Reserved. Mailchimp® is a registered trademark of The Rocket Science Group. Cookie Preferences, Privacy, and Terms.
192
- </div>
193
-
194
- </div>
195
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/partials/tabs/campaign_defaults.php DELETED
@@ -1,77 +0,0 @@
1
- <?php
2
-
3
- $handler = MailChimp_WooCommerce_Admin::connect();
4
-
5
- // if we don't have valid campaign defaults we need to redirect back to the 'campaign_defaults' tab.
6
- if (!$handler->hasValidApiKey()) {
7
- wp_redirect('admin.php?page=mailchimp-woocommerce&tab=api_key&error_notice=missing_api_key');
8
- }
9
- if (!$handler->hasValidStoreInfo()) {
10
- wp_redirect('admin.php?page=mailchimp-woocommerce&tab=store_info&error_notice=missing_store');
11
- }
12
- ?>
13
-
14
- <input type="hidden" name="mailchimp_active_settings_tab" value="campaign_defaults"/>
15
-
16
- <fieldset class="">
17
- <legend>
18
- <legend class="screen-reader-text">
19
- <span><?php esc_html_e('Audience Defaults', 'mailchimp-for-woocommerce');?></span>
20
- </legend>
21
- </legend>
22
- <div class="box box-half">
23
- <label for="<?php echo $this->plugin_name; ?>-campaign-from-name-label">
24
- <?php esc_html_e('From Name', 'mailchimp-for-woocommerce'); ?>
25
- <span class="required-field-mark">*</span>
26
- </label>
27
- <input type="text" id="<?php echo $this->plugin_name; ?>-campaign-from-name-label" name="<?php echo $this->plugin_name; ?>[campaign_from_name]" value="<?php echo isset($options['campaign_from_name']) ? $options['campaign_from_name'] : get_option('blogname') ?>" required/>
28
- </div>
29
-
30
- <div class="box box-half">
31
- <label for="<?php echo $this->plugin_name; ?>-campaign-from-email-label">
32
- <?php esc_html_e('From Email', 'mailchimp-for-woocommerce'); ?>
33
- <span class="required-field-mark">*</span>
34
- </label>
35
- <input type="email" id="<?php echo $this->plugin_name; ?>-campaign-from-email-label" name="<?php echo $this->plugin_name; ?>[campaign_from_email]" value="<?php echo isset($options['campaign_from_email']) ? $options['campaign_from_email'] : get_option('admin_email') ?>" required/>
36
- </div>
37
-
38
- <div class="box box-half">
39
- <label for="<?php echo $this->plugin_name; ?>-campaign-subject-label">
40
- <?php esc_html_e('Subject', 'mailchimp-for-woocommerce'); ?>
41
- <span class="required-field-mark">*</span>
42
- </label>
43
- <input type="text" id="<?php echo $this->plugin_name; ?>-campaign-subject-label" name="<?php echo $this->plugin_name; ?>[campaign_subject]" value="<?php echo isset($options['campaign_subject']) ? $options['campaign_subject'] : esc_html__('Store Newsletter', 'mailchimp-for-woocommerce'); ?>" required/>
44
- </div>
45
-
46
- <div class="box box-half">
47
- <label for="<?php echo $this->plugin_name; ?>-campaign-language-label">
48
- <?php esc_html_e('Language', 'mailchimp-for-woocommerce'); ?>
49
- <span class="required-field-mark">*</span>
50
- </label>
51
-
52
- <div class="mailchimp-select-wrapper">
53
- <select id="<?php echo $this->plugin_name; ?>-campaign-language-label" name="<?php echo $this->plugin_name; ?>[campaign_language]" required>
54
- <?php $selected_locale = isset($options['store_locale']) && !empty($options['store_locale']) ? $options['store_locale'] : get_locale(); ?> ?>
55
- <?php
56
- foreach(MailChimp_Api_Locales::all() as $locale_key => $local_value) {
57
- echo '<option value="' . esc_attr( $locale_key ) . '" ' . selected($locale_key === $selected_locale, true, false ) . '>' . esc_html( $local_value ) . '</option>';
58
- }
59
- ?>
60
- </select>
61
- </div>
62
- </div>
63
-
64
- <div class="box">
65
- <label for="<?php echo $this->plugin_name; ?>-campaign-permission-reminder-label">
66
- <?php esc_html_e('Permission reminder message', 'mailchimp-for-woocommerce'); ?>
67
- <span class="required-field-mark">*</span>
68
- </label>
69
- <textarea
70
- rows="4"
71
- id="<?php echo $this->plugin_name; ?>-campaign-permission-reminder-label"
72
- name="<?php echo $this->plugin_name; ?>[campaign_permission_reminder]"
73
- required><?php echo isset($options['campaign_permission_reminder']) ? $options['campaign_permission_reminder'] : sprintf(/* translators: %s - plugin name. */esc_html__( 'You were subscribed to the newsletter from %s', 'mailchimp-for-woocommerce' ),get_option('blogname'));?>
74
- </textarea>
75
- </div>
76
-
77
- </fieldset>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/partials/tabs/images/Screenshot_sync.png ADDED
Binary file
admin/partials/tabs/logs.php CHANGED
@@ -1,11 +1,4 @@
1
  <?php
2
- if (!empty( $_REQUEST['handle'])) {
3
- if (!empty($_REQUEST['_wpnonce']) && wp_verify_nonce($_REQUEST['_wpnonce'], 'remove_log')) {
4
- $log_handler = new WC_Log_Handler_File();
5
- $log_handler->remove($_REQUEST['handle']);
6
- wp_redirect('admin.php?page=mailchimp-woocommerce&tab=logs&log_removed=1');
7
- }
8
- }
9
  $files = defined('WC_LOG_DIR') ? @scandir( WC_LOG_DIR ) : array();
10
  $logs = array();
11
  if (!empty($files)) {
1
  <?php
 
 
 
 
 
 
 
2
  $files = defined('WC_LOG_DIR') ? @scandir( WC_LOG_DIR ) : array();
3
  $logs = array();
4
  if (!empty($files)) {
admin/partials/tabs/newsletter_settings.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
-
3
- // if we don't have valid campaign defaults we need to redirect back to the 'campaign_defaults' tab.
4
- if (!$handler->hasValidApiKey()) {
5
  wp_redirect('admin.php?page=mailchimp-woocommerce&tab=api_key&error_notice=missing_api_key');
 
6
  }
7
 
8
  // if we don't have valid store information, we need to redirect back to the 'store_info' tab.
@@ -10,16 +10,6 @@ if (!$handler->hasValidStoreInfo()) {
10
  wp_redirect('admin.php?page=mailchimp-woocommerce&tab=store_info&error_notice=missing_store');
11
  }
12
 
13
- // if we don't have a valid api key we need to redirect back to the 'api_key' tab.
14
- if (!isset($mailchimp_lists) && ($mailchimp_lists = $handler->getMailChimpLists()) === false) {
15
- wp_redirect('admin.php?page=mailchimp-woocommerce&tab=api_key&error_notice=missing_api_key');
16
- }
17
-
18
- // if we don't have valid campaign defaults we need to redirect back to the 'campaign_defaults' tab.
19
- if (empty($mailchimp_lists) && !$handler->hasValidCampaignDefaults()) {
20
- wp_redirect('admin.php?page=mailchimp-woocommerce&tab=campaign_defaults&error_notice=missing_campaign_defaults');
21
- }
22
-
23
  $list_is_configured = isset($options['mailchimp_list']) && (!empty($options['mailchimp_list'])) && array_key_exists($options['mailchimp_list'], $mailchimp_lists);
24
 
25
  ?>
@@ -35,79 +25,133 @@ $list_is_configured = isset($options['mailchimp_list']) && (!empty($options['mai
35
  <legend class="screen-reader-text">
36
  <span><?php esc_html_e('Audience Settings', 'mailchimp-for-woocommerce');?></span>
37
  </legend>
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
- <div class="box" >
40
- <label for="<?php echo $this->plugin_name; ?>-mailchimp-list-label">
41
- <strong><?php esc_html_e('Sync audience with your store', 'mailchimp-for-woocommerce'); ?></strong>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  </label>
43
- <div class="mailchimp-select-wrapper">
44
- <select name="<?php echo $this->plugin_name; ?>[mailchimp_list]" required <?php echo ($list_is_configured || $only_one_list) ? 'disabled' : '' ?>>
45
 
46
- <?php if(!isset($allow_new_list) || $allow_new_list === true): ?>
47
- <option value="create_new"><?php esc_html_e('Create New Audience', 'mailchimp-for-woocommerce');?></option>
48
- <?php endif ?>
 
 
 
 
49
 
50
- <?php if(isset($allow_new_list) && $allow_new_list === false): ?>
51
- <option value="">-- <?php esc_html_e('Select Audience', 'mailchimp-for-woocommerce');?> --</option>
52
- <?php endif; ?>
 
 
 
 
53
 
 
 
 
 
 
 
 
 
 
54
  <?php
55
- if (is_array($mailchimp_lists)) {
56
- $selected_list = isset($options['mailchimp_list']) ? $options['mailchimp_list'] : null;
57
- foreach ($mailchimp_lists as $key => $value ) {
58
- echo '<option value="' . esc_attr( $key ) . '" ' . selected(((string) $key === (string) $selected_list || $only_one_list), true, false) . '>' . esc_html( $value ) . '</option>';
59
- }
60
  }
61
  ?>
62
- </select>
63
  </div>
64
  </div>
65
 
66
- <div class="box" >
67
- <?php $enable_auto_subscribe = (array_key_exists('mailchimp_auto_subscribe', $options) && !is_null($options['mailchimp_auto_subscribe'])) ? $options['mailchimp_auto_subscribe'] : '1'; ?>
68
- <label>
69
- <input
70
- type="checkbox"
71
- name="<?php echo $this->plugin_name; ?>[mailchimp_auto_subscribe]"
72
- id="<?php echo $this->plugin_name; ?>[mailchimp_auto_subscribe]"
73
- <?= $list_is_configured ? 'disabled': '' ?>
74
- value=1
75
- <?= $enable_auto_subscribe ? 'checked' : ''?>>
76
- <strong><?php esc_html_e('During initial sync, auto subscribe the existing customers.', 'mailchimp-for-woocommerce'); ?></strong>
77
  </label>
 
 
 
 
 
 
78
  </div>
79
 
80
- <div class="box optional-settings-label" >
81
- <span><?php esc_html_e('Optional Audience Settings', 'mailchimp-for-woocommerce');?></span>
82
- </div>
83
 
84
  <div class="optional-settings-content">
85
  <div class="box fieldset-header" >
86
  <h3><?php esc_html_e('Opt-in Settings', 'mailchimp-for-woocommerce');?></h3>
87
  </div>
88
 
89
- <div class="box box-half">
90
- <label for="<?php echo $this->plugin_name; ?>-newsletter-checkbox-label">
91
- <h4><?php esc_html_e('Message for the opt-in checkbox', 'mailchimp-for-woocommerce'); ?></h4>
92
- <p><?php _e('The call-to-action text that prompts customers to subscribe to your newsletter at checkout.', 'mailchimp-for-woocommerce');?> </p>
93
- </label>
94
- </div>
95
-
96
- <div class="box box-half">
97
- <textarea rows="3" id="<?php echo $this->plugin_name; ?>-newsletter-checkbox-label" name="<?php echo $this->plugin_name; ?>[newsletter_label]"><?php echo isset($options['newsletter_label']) ? esc_html($options['newsletter_label']) : esc_html__('Subscribe to our newsletter', 'mailchimp-for-woocommerce'); ?></textarea>
98
- <p class="description"><?= esc_html(__('HTML tags allowed: <a href="" target="" title=""></a> and <br>', 'mailchimp-for-woocommerce')); ?></p>
99
- </div>
100
-
101
  <div class="box box-half margin-large">
102
  <label>
103
- <h4><?php esc_html_e('Checkbox Display Options', 'mailchimp-for-woocommerce');?></h4>
104
  <p><?php _e('Choose how you want the opt-in to your newsletter checkbox to render at checkout', 'mailchimp-for-woocommerce');?> </p>
105
  </label>
106
- </div>
107
-
108
-
109
- <div class="box box-half margin-large">
110
  <?php $checkbox_default_settings = (array_key_exists('mailchimp_checkbox_defaults', $options) && !is_null($options['mailchimp_checkbox_defaults'])) ? $options['mailchimp_checkbox_defaults'] : 'check'; ?>
 
 
111
  <label class="radio-label">
112
  <input type="radio" name="<?php echo $this->plugin_name; ?>[mailchimp_checkbox_defaults]" value="check"<?php if($checkbox_default_settings === 'check') echo ' checked="checked" '; ?>><?php esc_html_e('Visible, checked by default', 'mailchimp-for-woocommerce');?><br>
113
  </label>
@@ -117,13 +161,62 @@ $list_is_configured = isset($options['mailchimp_list']) && (!empty($options['mai
117
  <label class="radio-label">
118
  <input type="radio" name="<?php echo $this->plugin_name; ?>[mailchimp_checkbox_defaults]" value="hide"<?php if($checkbox_default_settings === 'hide') echo ' checked="checked" '; ?>><?php esc_html_e('Hidden, unchecked by default', 'mailchimp-for-woocommerce');?><br/>
119
  </label>
 
 
 
 
 
 
 
 
120
  </div>
121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
 
123
  <div class="box box-half margin-large">
124
  <label for="<?php echo $this->plugin_name; ?>-newsletter-checkbox-action">
125
- <h4><?php esc_html_e('Advanced Checkbox Settings', 'mailchimp-for-woocommerce');?></h4>
126
- <p><?= sprintf(/* translators: %s - Woocommerce Actions documentation URL. */wp_kses( __( 'To change the location of the opt-in <br/>checkbox at checkout, input one of the <a href=%s target=_blank>available WooCommerce form actions</a>.', 'mailchimp-for-woocommerce' ), array( 'a' => array( 'href' => array(), 'target'=> '_blank' ) ) ), esc_url( 'https://docs.woocommerce.com/wc-apidocs/hook-docs.html' ) ); ?></p>
127
  </label>
128
  </div>
129
 
1
  <?php
2
+ // if we don't have a valid api key we need to redirect back to the 'api_key' tab.
3
+ if (!$handler->hasValidApiKey() || (!isset($mailchimp_lists) && ($mailchimp_lists = $handler->getMailChimpLists()) === false)) {
 
4
  wp_redirect('admin.php?page=mailchimp-woocommerce&tab=api_key&error_notice=missing_api_key');
5
+
6
  }
7
 
8
  // if we don't have valid store information, we need to redirect back to the 'store_info' tab.
10
  wp_redirect('admin.php?page=mailchimp-woocommerce&tab=store_info&error_notice=missing_store');
11
  }
12
 
 
 
 
 
 
 
 
 
 
 
13
  $list_is_configured = isset($options['mailchimp_list']) && (!empty($options['mailchimp_list'])) && array_key_exists($options['mailchimp_list'], $mailchimp_lists);
14
 
15
  ?>
25
  <legend class="screen-reader-text">
26
  <span><?php esc_html_e('Audience Settings', 'mailchimp-for-woocommerce');?></span>
27
  </legend>
28
+
29
+ <?php if (!$list_is_configured): ?>
30
+ <div class="box fieldset-header no-padding" >
31
+ <h3><?php esc_html_e('Connect your store with an audience', 'mailchimp-for-woocommerce');?></h3>
32
+ </div>
33
+
34
+ <div class="box" >
35
+ <label for="<?php echo $this->plugin_name; ?>-mailchimp-list-label">
36
+ <strong><?php esc_html_e('Audience name', 'mailchimp-for-woocommerce'); ?></strong>
37
+ </label>
38
+ <div class="mailchimp-select-wrapper">
39
+ <select name="<?php echo $this->plugin_name; ?>[mailchimp_list]" required <?php echo ($list_is_configured || $only_one_list) ? 'disabled' : '' ?>>
40
 
41
+ <?php if(!isset($allow_new_list) || $allow_new_list === true): ?>
42
+ <option value="create_new"><?php esc_html_e('Create New Audience', 'mailchimp-for-woocommerce');?></option>
43
+ <?php endif ?>
44
+
45
+ <?php if(isset($allow_new_list) && $allow_new_list === false): ?>
46
+ <option value="">-- <?php esc_html_e('Select Audience', 'mailchimp-for-woocommerce');?> --</option>
47
+ <?php endif; ?>
48
+
49
+ <?php
50
+ if (is_array($mailchimp_lists)) {
51
+ $selected_list = isset($options['mailchimp_list']) ? $options['mailchimp_list'] : null;
52
+ foreach ($mailchimp_lists as $key => $value ) {
53
+ echo '<option value="' . esc_attr( $key ) . '" ' . selected(((string) $key === (string) $selected_list || $only_one_list), true, false) . '>' . esc_html( $value ) . '</option>';
54
+ }
55
+ }
56
+ ?>
57
+ </select>
58
+ </div>
59
+ </div>
60
+ <div class="box" >
61
+ <?php $enable_auto_subscribe = (array_key_exists('mailchimp_auto_subscribe', $options) && !is_null($options['mailchimp_auto_subscribe'])) ? $options['mailchimp_auto_subscribe'] : '1'; ?>
62
+ <label>
63
+ <input
64
+ type="checkbox"
65
+ name="<?php echo $this->plugin_name; ?>[mailchimp_auto_subscribe]"
66
+ id="<?php echo $this->plugin_name; ?>[mailchimp_auto_subscribe]"
67
+ <?= $list_is_configured ? 'disabled': '' ?>
68
+ value=1
69
+ <?= $enable_auto_subscribe ? 'checked' : ''?>>
70
+ <strong><?php esc_html_e('During initial sync, auto subscribe the existing customers.', 'mailchimp-for-woocommerce'); ?></strong>
71
+ </label>
72
+ </div>
73
+ <?php else : ?>
74
+ <div class="box fieldset-header no-padding" >
75
+ <h3><?php esc_html_e('Your store is currently connected to:', 'mailchimp-for-woocommerce');?> <?= $handler->getListName() ?> </h3>
76
+ </div>
77
+ <div class="box" >
78
+ <p><?= __('To select another audience, you must first disconnect your store on the Settings tab.', 'mailchimp-for-woocommerce') ?></p>
79
+ </div>
80
+ <?php endif; ?>
81
+
82
+ <div class="box fieldset-header" >
83
+ <h3><?php esc_html_e('Audience Defaults', 'mailchimp-for-woocommerce');?></h3>
84
+ </div>
85
+ <div class="box box-half">
86
+ <label for="<?php echo $this->plugin_name; ?>-campaign-from-name-label">
87
+ <?php esc_html_e('From Name', 'mailchimp-for-woocommerce'); ?>
88
+ <span class="required-field-mark">*</span>
89
  </label>
90
+ <input type="text" id="<?php echo $this->plugin_name; ?>-campaign-from-name-label" name="<?php echo $this->plugin_name; ?>[campaign_from_name]" value="<?php echo isset($options['campaign_from_name']) ? $options['campaign_from_name'] : get_option('blogname') ?>" required/>
91
+ </div>
92
 
93
+ <div class="box box-half">
94
+ <label for="<?php echo $this->plugin_name; ?>-campaign-from-email-label">
95
+ <?php esc_html_e('From Email', 'mailchimp-for-woocommerce'); ?>
96
+ <span class="required-field-mark">*</span>
97
+ </label>
98
+ <input type="email" id="<?php echo $this->plugin_name; ?>-campaign-from-email-label" name="<?php echo $this->plugin_name; ?>[campaign_from_email]" value="<?php echo isset($options['campaign_from_email']) ? $options['campaign_from_email'] : get_option('admin_email') ?>" required/>
99
+ </div>
100
 
101
+ <div class="box box-half">
102
+ <label for="<?php echo $this->plugin_name; ?>-campaign-subject-label">
103
+ <?php esc_html_e('Subject', 'mailchimp-for-woocommerce'); ?>
104
+ <span class="required-field-mark">*</span>
105
+ </label>
106
+ <input type="text" id="<?php echo $this->plugin_name; ?>-campaign-subject-label" name="<?php echo $this->plugin_name; ?>[campaign_subject]" value="<?php echo isset($options['campaign_subject']) ? $options['campaign_subject'] : esc_html__('Store Newsletter', 'mailchimp-for-woocommerce'); ?>" required/>
107
+ </div>
108
 
109
+ <div class="box box-half">
110
+ <label for="<?php echo $this->plugin_name; ?>-campaign-language-label">
111
+ <?php esc_html_e('Language', 'mailchimp-for-woocommerce'); ?>
112
+ <span class="required-field-mark">*</span>
113
+ </label>
114
+
115
+ <div class="mailchimp-select-wrapper">
116
+ <select id="<?php echo $this->plugin_name; ?>-campaign-language-label" name="<?php echo $this->plugin_name; ?>[campaign_language]" required>
117
+ <?php $selected_locale = isset($options['store_locale']) && !empty($options['store_locale']) ? $options['store_locale'] : get_locale(); ?> ?>
118
  <?php
119
+ foreach(MailChimp_Api_Locales::all() as $locale_key => $local_value) {
120
+ echo '<option value="' . esc_attr( $locale_key ) . '" ' . selected($locale_key === $selected_locale, true, false ) . '>' . esc_html( $local_value ) . '</option>';
 
 
 
121
  }
122
  ?>
123
+ </select>
124
  </div>
125
  </div>
126
 
127
+ <div class="box">
128
+ <label for="<?php echo $this->plugin_name; ?>-campaign-permission-reminder-label">
129
+ <?php esc_html_e('Permission reminder message', 'mailchimp-for-woocommerce'); ?>
130
+ <span class="required-field-mark">*</span>
 
 
 
 
 
 
 
131
  </label>
132
+ <textarea
133
+ rows="4"
134
+ id="<?php echo $this->plugin_name; ?>-campaign-permission-reminder-label"
135
+ name="<?php echo $this->plugin_name; ?>[campaign_permission_reminder]"
136
+ required><?php echo isset($options['campaign_permission_reminder']) ? $options['campaign_permission_reminder'] : sprintf(/* translators: %s - plugin name. */esc_html__( 'You were subscribed to the newsletter from %s', 'mailchimp-for-woocommerce' ),get_option('blogname'));?>
137
+ </textarea>
138
  </div>
139
 
140
+
 
 
141
 
142
  <div class="optional-settings-content">
143
  <div class="box fieldset-header" >
144
  <h3><?php esc_html_e('Opt-in Settings', 'mailchimp-for-woocommerce');?></h3>
145
  </div>
146
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  <div class="box box-half margin-large">
148
  <label>
149
+ <h4><?php esc_html_e('Checkbox display options', 'mailchimp-for-woocommerce');?></h4>
150
  <p><?php _e('Choose how you want the opt-in to your newsletter checkbox to render at checkout', 'mailchimp-for-woocommerce');?> </p>
151
  </label>
 
 
 
 
152
  <?php $checkbox_default_settings = (array_key_exists('mailchimp_checkbox_defaults', $options) && !is_null($options['mailchimp_checkbox_defaults'])) ? $options['mailchimp_checkbox_defaults'] : 'check'; ?>
153
+ <div class="box margin-large"></div>
154
+
155
  <label class="radio-label">
156
  <input type="radio" name="<?php echo $this->plugin_name; ?>[mailchimp_checkbox_defaults]" value="check"<?php if($checkbox_default_settings === 'check') echo ' checked="checked" '; ?>><?php esc_html_e('Visible, checked by default', 'mailchimp-for-woocommerce');?><br>
157
  </label>
161
  <label class="radio-label">
162
  <input type="radio" name="<?php echo $this->plugin_name; ?>[mailchimp_checkbox_defaults]" value="hide"<?php if($checkbox_default_settings === 'hide') echo ' checked="checked" '; ?>><?php esc_html_e('Hidden, unchecked by default', 'mailchimp-for-woocommerce');?><br/>
163
  </label>
164
+ <div class="box margin-large"></div>
165
+ <label for="<?php echo $this->plugin_name; ?>-newsletter-checkbox-label">
166
+ <h4><?php esc_html_e('Message for the opt-in checkbox', 'mailchimp-for-woocommerce'); ?></h4>
167
+ <p><?php _e('The call-to-action text that prompts customers to subscribe to your newsletter at checkout.', 'mailchimp-for-woocommerce');?> </p>
168
+ </label>
169
+ <div class="box"></div>
170
+ <textarea rows="3" id="<?php echo $this->plugin_name; ?>-newsletter-checkbox-label" name="<?php echo $this->plugin_name; ?>[newsletter_label]"><?php echo isset($options['newsletter_label']) ? esc_html($options['newsletter_label']) : '' ?></textarea>
171
+ <p class="description"><?= esc_html(__('HTML tags allowed: <a href="" target="" title=""></a> and <br>', 'mailchimp-for-woocommerce')); ?><br/><?= esc_html(__('Leave it blank to use language translation files (.po / .mo), translating the string: "Subscribe to our newsletter".', 'mailchimp-for-woocommerce')); ?></p>
172
  </div>
173
 
174
+ <div class="box box-half margin-large">
175
+ <h4><?php esc_html_e('Shop checkout preview', 'mailchimp-for-woocommerce');?></h4>
176
+ <p><?= esc_html(__('The box below is a preview of your checkout page. Styles and fields may not be exact.', 'mailchimp-for-woocommerce')); ?></p>
177
+ <div class="box margin-large"></div>
178
+ <div class="settings-sample-frame">
179
+ <div class="woocommerce-billing-fields__field-wrapper">
180
+
181
+ <p class="form-row address-field validate-required validate-postcode form-row-wide" id="billing_postcode_field" data-priority="65" data-o_class="form-row form-row-wide address-field validate-required validate-postcode">
182
+ <label for="billing_postcode" class="">Postcode / ZIP&nbsp;</label><span class="woocommerce-input-wrapper"><input type="text" class="input-text " name="billing_postcode" id="billing_postcode" placeholder="" value="" autocomplete="postal-code"></span>
183
+ </p>
184
+ <p class="form-row address-field validate-required form-row-wide" id="billing_city_field" data-priority="70" data-o_class="form-row form-row-wide address-field validate-required">
185
+ <label for="billing_city" class="">Town / City&nbsp;</label><span class="woocommerce-input-wrapper"><input type="text" class="input-text " name="billing_city" id="billing_city" placeholder="" value="" autocomplete="address-level2"></span>
186
+ </p>
187
+ <p class="form-row address-field validate-state form-row-wide" id="billing_state_field" style="display: none" data-o_class="form-row form-row-wide address-field validate-state">
188
+ <label for="billing_state" class="">State / County&nbsp;<span class="optional">(optional)</span></label><span class="woocommerce-input-wrapper"><input type="hidden" id="billing_state" name="billing_state" placeholder="" data-input-classes="" class="hidden"></span>
189
+ </p>
190
+ <p class="form-row form-row-wide validate-required validate-email" id="billing_email_field" data-priority="110">
191
+ <label for="billing_email" class="">Email address&nbsp;</label><span class="woocommerce-input-wrapper"><input type="email" class="input-text " name="billing_email" id="billing_email" placeholder="" value="" autocomplete="email username"></span>
192
+ </p>
193
+ </div>
194
+
195
+ <?php
196
+ $label = $this->getOption('newsletter_label');
197
+ if ($label == '') $label = __('Subscribe to our newsletter', 'mailchimp-for-woocommerce');
198
+ ?>
199
+ <fieldset>
200
+ <p class="form-row form-row-wide mailchimp-newsletter">
201
+ <input class="woocommerce-form__input woocommerce-form__input-checkbox input-checkbox" id="mailchimp_woocommerce_newsletter" type="checkbox" name="mailchimp_woocommerce_newsletter" value="1" checked="checked">
202
+ <label id="preview-label" for="mailchimp_woocommerce_newsletter" class="inline"><?= $label?> </label>
203
+ </p>
204
+
205
+ </fieldset>
206
+ <div class="overlay"></div>
207
+
208
+ </div>
209
+
210
+ </div>
211
+
212
+ <div class="box fieldset-header" >
213
+ <h3><?php esc_html_e('Advanced Opt-in Settings', 'mailchimp-for-woocommerce');?></h3>
214
+ </div>
215
 
216
  <div class="box box-half margin-large">
217
  <label for="<?php echo $this->plugin_name; ?>-newsletter-checkbox-action">
218
+ <h4><?php esc_html_e('Opt-in checkbox position', 'mailchimp-for-woocommerce');?></h4>
219
+ <p><?= sprintf(/* translators: %s - Woocommerce Actions documentation URL. */wp_kses( __( 'To change the position of the opt-in <br/>checkbox at checkout, input one of the <a href=%s target=_blank>available WooCommerce form actions</a>.', 'mailchimp-for-woocommerce' ), array( 'a' => array( 'href' => array(), 'target'=> '_blank' ) ) ), esc_url( 'https://docs.woocommerce.com/wc-apidocs/hook-docs.html' ) ); ?></p>
220
  </label>
221
  </div>
222
 
admin/partials/tabs/notices.php CHANGED
@@ -5,9 +5,6 @@
5
  case 'missing_api_key':
6
  esc_html_e('Mailchimp says: You must enter in a valid API key.', 'mailchimp-for-woocommerce');
7
  break;
8
- case 'missing_campaign_defaults':
9
- esc_html_e('Mailchimp says: Sorry you must set up your campaign defaults before you proceed!', 'mailchimp-for-woocommerce');
10
- break;
11
  case 'missing_list':
12
  esc_html_e('Mailchimp says: You must select a marketing audience.', 'mailchimp-for-woocommerce');
13
  break;
5
  case 'missing_api_key':
6
  esc_html_e('Mailchimp says: You must enter in a valid API key.', 'mailchimp-for-woocommerce');
7
  break;
 
 
 
8
  case 'missing_list':
9
  esc_html_e('Mailchimp says: You must select a marketing audience.', 'mailchimp-for-woocommerce');
10
  break;
admin/partials/tabs/plugin_settings.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <input type="hidden" name="mailchimp_active_settings_tab" value="plugin_settings"/>
2
+
3
+ <?php
4
+ $store_id = mailchimp_get_store_id();
5
+
6
+ $opt = get_option('mailchimp-woocommerce-comm.opt');
7
+ $admin_email = mailchimp_get_option('admin_email', get_option('admin_email'));
8
+ $comm_enabled = $opt != null ? $opt : '0';
9
+ ?>
10
+ <fieldset>
11
+ <legend class="screen-reader-text">
12
+ <span><?php esc_html_e('Plugin Settings', 'mailchimp-for-woocommerce');?></span>
13
+ </legend>
14
+
15
+ <div class="box ">
16
+ <label for="<?php echo $this->plugin_name; ?>-newsletter-checkbox-label">
17
+ <h4><?php esc_html_e('Communication', 'mailchimp-for-woocommerce'); ?></h4>
18
+ <p>
19
+ <?php
20
+
21
+ echo sprintf(
22
+ /* translators: Placeholders %1$s - admin email address */
23
+ __('Occasionally we may send you information about how-to\'s, updates, and other news to the store\'s admin email address. Choose whether or not you want to receive these messages at %1$s ', 'mailchimp-for-woocommerce'),
24
+ $admin_email
25
+ );?>
26
+ </p>
27
+ </label>
28
+ <br/>
29
+ <fieldset>
30
+ <p id="mc-comm-wrapper">
31
+ <label class="el-switch el-checkbox-green">
32
+ <input id="comm_box_switch" type="checkbox" name="switch" <?php if($comm_enabled === '1') echo ' checked="checked" '; ?> value="1">
33
+ <span><?= __('Opt-in to our newsletter', 'mailchimp-for-woocommerce'); ?></span>
34
+ <br/>
35
+ <span class="mc-comm-save" id="mc-comm-save">Saved</span>
36
+ </label>
37
+
38
+ </p>
39
+ </fieldset>
40
+ </div>
41
+
42
+ <div class="box"></div>
43
+ <div class="box">
44
+ <label for="<?php echo $this->plugin_name; ?>-newsletter-checkbox-label">
45
+ <h4><?php esc_html_e('Disconnect Store', 'mailchimp-for-woocommerce'); ?></h4>
46
+ <p>
47
+ <?=
48
+ sprintf(
49
+ __('Disconnect your store from MailChimp. This action will remove all entries from the database but you will be able to reconnect anytime.', 'mailchimp-for-woocommerce'),
50
+ $admin_email
51
+ );?>
52
+ </p>
53
+ </label>
54
+ <p>
55
+ <?php wp_nonce_field( '_disconnect-nonce-'.$store_id, '_disconnect-nonce' ); ?>
56
+
57
+ <a id="mailchimp_woocommerce_disconnect" class="mc-woocommerce-disconnect-button button button-default tab-content-submit">
58
+ <?php esc_html_e('Disconnect Store', 'mailchimp-for-woocommerce');?>
59
+ </a>
60
+ </p>
61
+ </div>
62
+
63
+ <div class="box box-half comm_box_wrapper">
64
+
65
+ </div>
66
+ </fieldset>
admin/partials/tabs/store_info.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  $handler = MailChimp_WooCommerce_Admin::connect();
4
 
5
- // if we don't have valid campaign defaults we need to redirect back to the 'campaign_defaults' tab.
6
  if (!$handler->hasValidApiKey()) {
7
  wp_redirect('admin.php?page=mailchimp-woocommerce&tab=api_key&error_notice=missing_api_key');
8
  }
@@ -113,12 +113,12 @@ if (!$handler->hasValidApiKey()) {
113
 
114
  echo sprintf(
115
  /* translators: %1$s - The Currency name and format (ex: USD | US Dollar) %2$s - Timezone name or offset (ex: America/New_York or UTC-4:00) %3$s and %5$s- <a> tag open %4$s - </a> tag close*/
116
- __('We\'ve detected that your WooCommerce store\'s currency is <b>%1$s</b> (%3$schange%4$s), and the WordPress timezone is <b>%2$s</b> (%5$schange%4$s). <br/>.', 'mailchimp-for-woocommerce'),
117
  isset($current_currency_data) ? $current_currency . ' | ' . $current_currency_data['name']: $current_currency,
118
  mailchimp_get_timezone(true),
119
- '<a href="' . admin_url( 'options-general.php') .'" title="'.__( 'WooCommerce Settings' ).'">',
120
  '</a>',
121
- '<a href="' . admin_url( 'admin.php/?page=wc-settings') .'" title="'.__( 'General Settings' ).'">'
122
  );
123
  ?>
124
  </p>
@@ -153,11 +153,9 @@ if (!$handler->hasValidApiKey()) {
153
  <?php
154
  // Only admins should see mailchimp_permission_cap radio buttons
155
  if (current_user_can('manage_options')) : ?>
156
-
157
- <div class="box optional-settings-label" >
158
- <span><?php esc_html_e('Optional Store Settings', 'mailchimp-for-woocommerce');?></span>
159
  </div>
160
-
161
  <div class="optional-settings-content">
162
  <div class="box box-half margin-large">
163
  <label>
2
 
3
  $handler = MailChimp_WooCommerce_Admin::connect();
4
 
5
+ // if we don't have a valid api key we need to redirect back to the 'api_key' tab.
6
  if (!$handler->hasValidApiKey()) {
7
  wp_redirect('admin.php?page=mailchimp-woocommerce&tab=api_key&error_notice=missing_api_key');
8
  }
113
 
114
  echo sprintf(
115
  /* translators: %1$s - The Currency name and format (ex: USD | US Dollar) %2$s - Timezone name or offset (ex: America/New_York or UTC-4:00) %3$s and %5$s- <a> tag open %4$s - </a> tag close*/
116
+ __('We\'ve detected that your WooCommerce store\'s currency is <b>%1$s</b> (%3$schange%4$s), and the WordPress timezone is <b>%2$s</b> (%5$schange%4$s).', 'mailchimp-for-woocommerce'),
117
  isset($current_currency_data) ? $current_currency . ' | ' . $current_currency_data['name']: $current_currency,
118
  mailchimp_get_timezone(true),
119
+ '<a href="' . admin_url( 'admin.php?page=wc-settings#woocommerce_currency') .'" title="'.__( 'General Settings' ).'">',
120
  '</a>',
121
+ '<a href="' . admin_url( 'options-general.php#timezone_string') .'" title="'.__( 'WooCommerce Settings' ).'">'
122
  );
123
  ?>
124
  </p>
153
  <?php
154
  // Only admins should see mailchimp_permission_cap radio buttons
155
  if (current_user_can('manage_options')) : ?>
156
+ <div class="box fieldset-header" >
157
+ <h3 style="padding-top: 1em;"><?= __('Permission Settings', 'mailchimp-for-woocommerce');?></h3>
 
158
  </div>
 
159
  <div class="optional-settings-content">
160
  <div class="box box-half margin-large">
161
  <label>
admin/partials/tabs/store_sync.php CHANGED
@@ -70,145 +70,137 @@ if (($mailchimp_api = mailchimp_get_api()) && ($store = $mailchimp_api->getStore
70
  }
71
  ?>
72
  <input type="hidden" name="mailchimp_active_settings_tab" value="store_sync"/>
 
 
 
 
 
 
 
 
 
 
 
 
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  <div class="sync-content-wrapper">
75
- <div class="sync-stats-wrapper sync-stats-store">
76
- <div class="box sync-stats-card promo_rules" >
77
- <div class="sync-stats-card-content">
78
- <span class="card_label"><strong><?php esc_html_e('Coupons', 'mailchimp-for-woocommerce');?></strong></span>
79
- <span class="card_count" id="mailchimp_promo_rules_count"><?php echo number_format($mailchimp_total_promo_rules); ?></span>
80
- <div class="progress-bar-wrapper">
81
- <span class="card_count_label mailchimp_promo_rules_count_partial"></span>
82
- <div class="progress-bar"></div>
 
 
 
 
 
83
  </div>
84
  </div>
85
- </div>
86
- <div class="box sync-stats-card products" >
87
- <div class="sync-stats-card-content">
88
- <span class="card_label"><strong><?php esc_html_e('Products', 'mailchimp-for-woocommerce');?></strong></span>
89
- <span class="card_count" id="mailchimp_product_count"><?php echo number_format($mailchimp_total_products ); ?></span>
90
- <div class="progress-bar-wrapper">
91
- <span class="card_count_label mailchimp_product_count_partial"></span>
92
- <div class="progress-bar"></div>
93
  </div>
94
  </div>
95
- </div>
96
- <div class="box sync-stats-card orders" >
97
- <div class="sync-stats-card-content">
98
- <span class="card_label"><strong><?php esc_html_e('Orders', 'mailchimp-for-woocommerce');?></strong></span>
99
- <span class="card_count" id="mailchimp_order_count"><?php echo number_format($mailchimp_total_orders); ?></span>
100
- <div class="progress-bar-wrapper">
101
- <div class="progress-bar"></div>
102
- <span class="card_count_label mailchimp_order_count_partial"></span>
103
  </div>
104
  </div>
105
  </div>
106
  </div>
 
 
107
 
108
- <div class="sync-stats-wrapper sync-stats-audience" style="margin-top: 26px;">
109
- <div class="box sync-stats-card subscribers" >
110
- <div class="sync-stats-card-content">
111
- <span class="card_label"><strong><?php esc_html_e('Subscribers', 'mailchimp-for-woocommerce');?></strong></span>
112
- <span class="card_count" id="mailchimp_subscriber_count"><?php echo number_format($mailchimp_total_subscribers); ?></span>
113
- <img class="sync-loader" src="<?php echo plugin_dir_url( __FILE__ ) . "images/3dotpurple.gif"; ?>"/>
114
- </div>
115
- </div>
116
- <div class="box sync-stats-card transactional" >
117
- <div class="sync-stats-card-content">
118
- <span class="card_label"><strong><?php esc_html_e('Transactional', 'mailchimp-for-woocommerce');?></strong></span>
119
- <span class="card_count" id="mailchimp_transactional_count"><?php echo number_format($mailchimp_total_transactional); ?></span>
120
- <img class="sync-loader" src="<?php echo plugin_dir_url( __FILE__ ) . "images/3dotpurple.gif"; ?>"/>
121
  </div>
122
- </div>
123
- <div class="box sync-stats-card unsubscribed" >
124
- <div class="sync-stats-card-content">
125
- <span class="card_label"><strong><?php esc_html_e('Unsubscribed', 'mailchimp-for-woocommerce');?></strong></span>
126
- <span class="card_count" id="mailchimp_unsubscribed_count"><?php echo number_format($mailchimp_total_unsubscribed); ?></span>
127
- <img class="sync-loader" src="<?php echo plugin_dir_url( __FILE__ ) . "images/3dotpurple.gif"; ?>"/>
128
  </div>
129
- </div>
130
- </div>
131
-
132
- <div class="sync-controls-wrapper">
133
- <div class="box sync-controls">
134
- <?php wp_nonce_field( '_disconnect-nonce-'.$store_id, '_disconnect-nonce' ); ?>
135
- <?php wp_nonce_field( '_resync-nonce-'.$store_id, '_resync-nonce' ); ?>
136
-
137
- <a id="mailchimp_woocommerce_disconnect" class="mc-woocommerce-disconnect-button">
138
- <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
139
- <path d="M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z" fill="#3C3C3C"/>
140
- </svg>
141
- <?php esc_html_e('DISCONNECT STORE', 'mailchimp-for-woocommerce');?>
142
- </a>
143
- <p><strong><?php esc_html_e('Account Connected', 'mailchimp-for-woocommerce');?></strong></p> <p id="mailchimp_account_connected"><?php echo $account_name; ?></p>
144
- <br/>
145
- <p><strong><?php esc_html_e('Audience Connected', 'mailchimp-for-woocommerce');?></strong></p>
146
- <p id="mailchimp_list_name"><?php echo $mailchimp_list_name; ?></p>
147
-
148
- <div class="mc-woocommerce-last-sync">
149
- <p>
150
- <?php if ($last_updated_time): ?>
151
- <?php esc_html_e('Status:', 'mailchimp-for-woocommerce');?>
152
- <?= mailchimp_is_done_syncing() ? esc_html_e('Sync Completed', 'mailchimp-for-woocommerce') : esc_html_e('Syncing...', 'mailchimp-for-woocommerce'); ?>
153
- <?php elseif ($sync_started_at && !$sync_completed_at): ?>
154
- <?php esc_html_e('Initial sync in progress', 'mailchimp-for-woocommerce');?>
155
- <?php endif;?>
156
- </p>
157
- <p>
158
- <?php esc_html_e('Last Updated:', 'mailchimp-for-woocommerce');?>
159
- <i id="mailchimp_last_updated">
160
- <?php if ($last_updated_time): ?>
161
- <?php echo $last_updated_time->format( __('D, M j, Y g:i A', 'mailchimp-for-woocommerce')); ?>
162
- <?php else : ?>
163
- <?php esc_html_e('Starting...', 'mailchimp-for-woocommerce'); ?>
164
- <?php endif;?>
165
- </i>
166
- <span class="spinner" style="float:none; background-size: 16px 16px; width: 16px; height: 16px; margin: 0px 10px"></span>
167
- </p>
168
  </div>
169
  </div>
170
  </div>
171
  </div>
172
 
173
- <div class="sync-content-wrapper sync-comm-wrapper">
174
- <?php
175
- $opt = get_option('mailchimp-woocommerce-comm.opt');
176
- $admin_email = mailchimp_get_option('admin_email', get_option('admin_email'));
177
- $comm_enabled = $opt != null ? $opt : '0';
178
- ?>
179
- <h3>Communication</h3>
180
- <div class="box box-half">
181
- <p>
182
- Occasionally we may send you information about how-to's, updates, and other news to the store's admin email address. Choose whether or not you want to receive these messages at <?php echo $admin_email; ?>.
183
- </p>
184
- </div>
185
-
186
- <div class="box box-half comm_box_wrapper">
187
- <fieldset>
188
- <p>
189
- <span>Messaging is currently
190
- <span class="comm_box_status <?= $comm_enabled === '0' ? 'hidden' : '';?>" id="comm_box_status_1" <?php if($comm_enabled === '0') echo ' class="hidden" '; ?> > <?php esc_html_e('enabled', 'mailchimp-for-woocommerce');?></span>
191
- <span class="comm_box_status <?= $comm_enabled === '1' ? 'hidden' : '';?>" id="comm_box_status_0" <?php if($comm_enabled === '1') echo ' class="hidden" '; ?>> <?php esc_html_e('disabled', 'mailchimp-for-woocommerce');?></span>
192
- </span>
193
- <label class="el-switch el-checkbox-green">
194
- <input id="comm_box_switch" type="checkbox" name="switch" <?php if($comm_enabled === '1') echo ' checked="checked" '; ?> value="1">
195
- <span class="el-switch-style"></span>
196
- </label>
197
- <span class="mc-comm-save" id="mc-comm-save">Saved!</span>
198
- </p>
199
- </fieldset>
200
- </div>
201
-
202
- </div>
203
-
204
-
205
  <?php $show_resync = $mailchimp_api && (!$store_syncing || isset($_GET['resync']) && $_GET['resync'] === '1'); ?>
206
  <div class="sync-content-wrapper sync-more-wrapper">
207
- <div class="box box-half">
208
- <div class="content">
 
 
 
 
 
 
 
 
 
 
 
 
209
  <h3 style="padding-top: 1em;"><?php esc_html_e('Synchronization', 'mailchimp-for-woocommerce');?></h3>
 
210
  <p id="resync_data_help_text">
211
- <?php esc_html_e('You can resync your audience at any time without losing any of your e-commerce data.', 'mailchimp-for-woocommerce');?>
212
  </p>
213
  <?php if ($show_resync) : ?>
214
  <?php submit_button(__('Resync now', 'mailchimp-for-woocommerce'), 'primary mc-woocommerce-resync-button','submit', TRUE); ?>
@@ -218,20 +210,6 @@ $comm_enabled = $opt != null ? $opt : '0';
218
  <?php endif;?>
219
  </div>
220
  </div>
221
-
222
- <div class="box box-half">
223
- <div class="content">
224
- <h3 style="padding-top: 1em;"><?php esc_html_e('More Information', 'mailchimp-for-woocommerce'); ?></h3>
225
- <ul>
226
- <li><?= sprintf(/* translators: %s - Plugin review URL. */wp_kses( __( 'Is this plugin helping your e-commerce business? <a href=%s target=_blank>Please leave us a ★★★★★ review!</a>.', 'mailchimp-for-woocommerce' ), array( 'a' => array( 'href' => array(), 'target'=> '_blank' ) ) ), esc_url( 'https://wordpress.org/support/plugin/mailchimp-for-woocommerce/reviews/' ) );?></li>
227
- <li><?= sprintf(/* translators: %s - WP-CLI URL. */wp_kses( __( 'Have a larger store or having issues syncing? Consider using <a href=%s target=_blank>WP-CLI</a> or browse documentation around common <a href=%s target=_blank>caching problems</a>.', 'mailchimp-for-woocommerce' ), array( 'a' => array( 'href' => array(), 'target'=> '_blank' ) ) ), esc_url( 'https://github.com/mailchimp/mc-woocommerce/wiki/Advanced-Queue-Setup-In-CLI-mode' ), esc_url( 'https://github.com/mailchimp/mc-woocommerce/wiki/Using-Caches' ) );?></li>
228
- <li><?= esc_html__('Order and customer information will not sync if they contain an Amazon or generic email address.', 'mailchimp-for-woocommerce');?></li>
229
- <li><?= sprintf(/* translators: %s - Mailchimp Support URL. */wp_kses( __( 'Need help? Visit <a href=%s target=_blank>Mailchimp support</a> or <a id=%s href=%s>send us an email.</a> ', 'mailchimp-for-woocommerce' ), array( 'a' => array( 'href' => array(), 'id' => array(), 'target'=> '_blank' ) ) ), esc_url( 'https://us1.admin.mailchimp.com/support?support_key=woo_forum' ), 'mc-woocommerce-support-form-button', '#mc-woocommerce-support-form' );?></li>
230
- <li><?= sprintf(/* translators: %s - Mailchimp Privacy Policy URL. */wp_kses( __( 'By using this plugin, Mailchimp will process customer information in accordance with their <a href=%s target=_blank>Privacy Policy</a>.', 'mailchimp-for-woocommerce' ), array( 'a' => array( 'href' => array(), 'target'=> '_blank' ) ) ), esc_url( 'https://mailchimp.com/legal/privacy/' ) );?></li>
231
- </ul>
232
- </div>
233
- </div>
234
-
235
  </div>
236
 
237
  <div id="mc-woocommerce-support-form" class="mc-woocommerce-modal">
70
  }
71
  ?>
72
  <input type="hidden" name="mailchimp_active_settings_tab" value="store_sync"/>
73
+ <div class="sync-content-wrapper">
74
+
75
+ <div class="box box-half">
76
+ <div class="sync-stats-wrapper overview-stats-store">
77
+ <div class="box">
78
+ <strong><?php esc_html_e('Account Connected', 'mailchimp-for-woocommerce');?>:</strong> <?php echo $account_name; ?>
79
+ </div>
80
+ <div class="box">
81
+ <strong><?php esc_html_e('Audience Connected', 'mailchimp-for-woocommerce');?>:</strong> <?php echo $mailchimp_list_name; ?>
82
+ </div>
83
+ </div>
84
+ </div>
85
 
86
+ <div class="box box-half">
87
+
88
+
89
+ <div class="sync-stats-wrapper last-updated">
90
+ <div class="box" >
91
+ <strong><?php esc_html_e('Sync Status:', 'mailchimp-for-woocommerce');?></strong>
92
+ <?php if ($last_updated_time): ?>
93
+ <?php if(mailchimp_is_done_syncing()) : ?>
94
+ <?= esc_html_e('Completed', 'mailchimp-for-woocommerce') ?>
95
+ <?php else : ?>
96
+ <?= esc_html_e('Running', 'mailchimp-for-woocommerce'); ?>
97
+ <img class="sync-loader" src="<?php echo plugin_dir_url( __FILE__ ) . "images/3dotpurple.gif"; ?>"/>
98
+ <?php endif;?>
99
+ <?php elseif ($sync_started_at && !$sync_completed_at): ?>
100
+ <?php esc_html_e('Initial sync in progress', 'mailchimp-for-woocommerce');?>
101
+ <img class="sync-loader" src="<?php echo plugin_dir_url( __FILE__ ) . "images/3dotpurple.gif"; ?>"/>
102
+ <?php endif;?>
103
+ </div>
104
+ <div class="box" >
105
+ <strong><?php esc_html_e('Last Updated:', 'mailchimp-for-woocommerce');?></strong>
106
+ <i id="mailchimp_last_updated">
107
+ <?php if ($last_updated_time): ?>
108
+ <?php echo $last_updated_time->format( __('D, M j, Y g:i A', 'mailchimp-for-woocommerce')); ?>
109
+ <?php else : ?>
110
+ <?php esc_html_e('Starting...', 'mailchimp-for-woocommerce'); ?>
111
+ <?php endif;?>
112
+ </i>
113
+ </div>
114
+ </div>
115
+ </div>
116
+ </div>
117
  <div class="sync-content-wrapper">
118
+
119
+
120
+
121
+ <div class="box box-half">
122
+ <div class="sync-stats-wrapper sync-stats-store">
123
+ <div class="box sync-stats-card promo_rules" >
124
+ <div class="sync-stats-card-content">
125
+ <span class="card_label"><strong><?php esc_html_e('Coupons', 'mailchimp-for-woocommerce');?></strong></span>
126
+ <span class="card_count" id="mailchimp_promo_rules_count"><?php echo number_format($mailchimp_total_promo_rules); ?></span>
127
+ <div class="progress-bar-wrapper">
128
+ <span class="card_count_label mailchimp_promo_rules_count_partial"></span>
129
+ <div class="progress-bar"></div>
130
+ </div>
131
  </div>
132
  </div>
133
+ <div class="box sync-stats-card products" >
134
+ <div class="sync-stats-card-content">
135
+ <span class="card_label"><strong><?php esc_html_e('Products', 'mailchimp-for-woocommerce');?></strong></span>
136
+ <span class="card_count" id="mailchimp_product_count"><?php echo number_format($mailchimp_total_products ); ?></span>
137
+ <div class="progress-bar-wrapper">
138
+ <span class="card_count_label mailchimp_product_count_partial"></span>
139
+ <div class="progress-bar"></div>
140
+ </div>
141
  </div>
142
  </div>
143
+ <div class="box sync-stats-card orders" >
144
+ <div class="sync-stats-card-content">
145
+ <span class="card_label"><strong><?php esc_html_e('Orders', 'mailchimp-for-woocommerce');?></strong></span>
146
+ <span class="card_count" id="mailchimp_order_count"><?php echo number_format($mailchimp_total_orders); ?></span>
147
+ <div class="progress-bar-wrapper">
148
+ <div class="progress-bar"></div>
149
+ <span class="card_count_label mailchimp_order_count_partial"></span>
150
+ </div>
151
  </div>
152
  </div>
153
  </div>
154
  </div>
155
+
156
+ <div class="box box-half">
157
 
158
+ <div class="sync-stats-wrapper sync-stats-audience">
159
+ <div class="box sync-stats-card subscribers" >
160
+ <div class="sync-stats-card-content">
161
+ <span class="card_label"><strong><?php esc_html_e('Subscribers', 'mailchimp-for-woocommerce');?></strong></span>
162
+ <span class="card_count" id="mailchimp_subscriber_count"><?php echo number_format($mailchimp_total_subscribers); ?></span>
163
+ <img class="sync-loader" src="<?php echo plugin_dir_url( __FILE__ ) . "images/3dotpurple.gif"; ?>"/>
164
+ </div>
 
 
 
 
 
 
165
  </div>
166
+ <div class="box sync-stats-card transactional" >
167
+ <div class="sync-stats-card-content">
168
+ <span class="card_label"><strong><?php esc_html_e('Transactional', 'mailchimp-for-woocommerce');?></strong></span>
169
+ <span class="card_count" id="mailchimp_transactional_count"><?php echo number_format($mailchimp_total_transactional); ?></span>
170
+ <img class="sync-loader" src="<?php echo plugin_dir_url( __FILE__ ) . "images/3dotpurple.gif"; ?>"/>
171
+ </div>
172
  </div>
173
+ <div class="box sync-stats-card unsubscribed" >
174
+ <div class="sync-stats-card-content">
175
+ <span class="card_label"><strong><?php esc_html_e('Unsubscribed', 'mailchimp-for-woocommerce');?></strong></span>
176
+ <span class="card_count" id="mailchimp_unsubscribed_count"><?php echo number_format($mailchimp_total_unsubscribed); ?></span>
177
+ <img class="sync-loader" src="<?php echo plugin_dir_url( __FILE__ ) . "images/3dotpurple.gif"; ?>"/>
178
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
  </div>
180
  </div>
181
  </div>
182
  </div>
183
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  <?php $show_resync = $mailchimp_api && (!$store_syncing || isset($_GET['resync']) && $_GET['resync'] === '1'); ?>
185
  <div class="sync-content-wrapper sync-more-wrapper">
186
+ <div class="box box-half support-container">
187
+ <div class="content ">
188
+ <h3 style="padding-top: 1em;"><?php esc_html_e('More Information', 'mailchimp-for-woocommerce'); ?></h3>
189
+ <ul>
190
+ <li><?= sprintf(/* translators: %s - Plugin review URL. */wp_kses( __( 'Is this plugin helping your e-commerce business? <a href=%s target=_blank>Please leave us a ★★★★★ review!</a>.', 'mailchimp-for-woocommerce' ), array( 'a' => array( 'href' => array(), 'target'=> '_blank' ) ) ), esc_url( 'https://wordpress.org/support/plugin/mailchimp-for-woocommerce/reviews/' ) );?></li>
191
+ <li><?= sprintf(/* translators: Placeholders %1$s - plugin wiki CLI URL, %2$s - plugin wiki WP caching issues url */ wp_kses( __( 'Have a larger store or having issues syncing? Consider using <a href=%1$s target=_blank>WP-CLI</a> or browse documentation around common <a href=%2$s target=_blank>caching problems</a>.', 'mailchimp-for-woocommerce' ), array( 'a' => array( 'href' => array(), 'target'=> '_blank' ) ) ), esc_url( 'https://github.com/mailchimp/mc-woocommerce/wiki/Advanced-Queue-Setup-In-CLI-mode' ), esc_url( 'https://github.com/mailchimp/mc-woocommerce/wiki/Using-Caches' ) );?></li>
192
+ <li><?= esc_html__('Order and customer information will not sync if they contain an Amazon or generic email address.', 'mailchimp-for-woocommerce');?></li>
193
+ <li><?= sprintf(/* translators: Placeholders %1$s - Mailchimp Support URL, %2$s - link element id, %3$s - popup element id */wp_kses( __( 'Need help? Visit <a href=%1$s target=_blank>Mailchimp support</a> or <a id=%2$s href=%3$s>send us an email.</a> ', 'mailchimp-for-woocommerce' ), array( 'a' => array( 'href' => array(), 'id' => array(), 'target'=> '_blank' ) ) ), esc_url( 'https://us1.admin.mailchimp.com/support?support_key=woo_forum' ), 'mc-woocommerce-support-form-button', '#mc-woocommerce-support-form' );?></li>
194
+ <li><?= sprintf(/* translators: %s - Mailchimp Privacy Policy URL. */wp_kses( __( 'By using this plugin, Mailchimp will process customer information in accordance with their <a href=%s target=_blank>Privacy Policy</a>.', 'mailchimp-for-woocommerce' ), array( 'a' => array( 'href' => array(), 'target'=> '_blank' ) ) ), esc_url( 'https://mailchimp.com/legal/privacy/' ) );?></li>
195
+ </ul>
196
+ </div>
197
+ </div>
198
+ <div class="box box-half resync-container">
199
+ <div class="content ">
200
  <h3 style="padding-top: 1em;"><?php esc_html_e('Synchronization', 'mailchimp-for-woocommerce');?></h3>
201
+ <?php wp_nonce_field( '_resync-nonce-'.$store_id, '_resync-nonce' ); ?>
202
  <p id="resync_data_help_text">
203
+ <?php esc_html_e('You can safely resync your audience at any time without losing any of your e-commerce data.', 'mailchimp-for-woocommerce');?>
204
  </p>
205
  <?php if ($show_resync) : ?>
206
  <?php submit_button(__('Resync now', 'mailchimp-for-woocommerce'), 'primary mc-woocommerce-resync-button','submit', TRUE); ?>
210
  <?php endif;?>
211
  </div>
212
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  </div>
214
 
215
  <div id="mc-woocommerce-support-form" class="mc-woocommerce-modal">
bootstrap.php CHANGED
@@ -87,7 +87,7 @@ function mailchimp_environment_variables() {
87
  return (object) array(
88
  'repo' => 'master',
89
  'environment' => 'production', // staging or production
90
- 'version' => '2.4.7',
91
  'php_version' => phpversion(),
92
  'wp_version' => (empty($wp_version) ? 'Unknown' : $wp_version),
93
  'wc_version' => function_exists('WC') ? WC()->version : null,
@@ -319,7 +319,7 @@ function mailchimp_get_store_id() {
319
  /**
320
  * @return array
321
  */
322
- function mailchimp_get_user_tags_to_update($email = null) {
323
  $tags = mailchimp_get_option('mailchimp_user_tags');
324
  $formatted_tags = array();
325
 
@@ -332,7 +332,7 @@ function mailchimp_get_user_tags_to_update($email = null) {
332
  }
333
 
334
  // apply filter to user custom tags addition/removal
335
- $formatted_tags = apply_filters('mailchimp_user_tags', $formatted_tags, $email);
336
 
337
  if (empty($formatted_tags)){
338
  return false;
@@ -1050,7 +1050,8 @@ function mailchimp_has_started_syncing() {
1050
  function mailchimp_is_done_syncing() {
1051
  $sync_started_at = get_option('mailchimp-woocommerce-sync.started_at');
1052
  $sync_completed_at = get_option('mailchimp-woocommerce-sync.completed_at');
1053
- return ($sync_completed_at >= $sync_started_at);
 
1054
  }
1055
 
1056
  function run_mailchimp_woocommerce() {
@@ -1154,7 +1155,21 @@ function mailchimp_remove_activity_panel_inbox_notes() {
1154
  return;
1155
  }
1156
 
1157
- \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes::delete_notes_with_name( 'mailchimp-for-woocommerce-incomplete-install' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1158
  }
1159
 
1160
  // Print notices outside woocommerce admin bar
87
  return (object) array(
88
  'repo' => 'master',
89
  'environment' => 'production', // staging or production
90
+ 'version' => '2.5.0',
91
  'php_version' => phpversion(),
92
  'wp_version' => (empty($wp_version) ? 'Unknown' : $wp_version),
93
  'wc_version' => function_exists('WC') ? WC()->version : null,
319
  /**
320
  * @return array
321
  */
322
+ function mailchimp_get_user_tags_to_update($email = null, $order = null) {
323
  $tags = mailchimp_get_option('mailchimp_user_tags');
324
  $formatted_tags = array();
325
 
332
  }
333
 
334
  // apply filter to user custom tags addition/removal
335
+ $formatted_tags = apply_filters('mailchimp_user_tags', $formatted_tags, $email, $order);
336
 
337
  if (empty($formatted_tags)){
338
  return false;
1050
  function mailchimp_is_done_syncing() {
1051
  $sync_started_at = get_option('mailchimp-woocommerce-sync.started_at');
1052
  $sync_completed_at = get_option('mailchimp-woocommerce-sync.completed_at');
1053
+ if ($sync_completed_at == false) return false;
1054
+ else return ($sync_completed_at >= $sync_started_at);
1055
  }
1056
 
1057
  function run_mailchimp_woocommerce() {
1155
  return;
1156
  }
1157
 
1158
+ // if we can't use woocommerce for some reason - just return null
1159
+ if (!function_exists('WC')) {
1160
+ return;
1161
+ }
1162
+
1163
+ // if we do not have the ability to use notes, just cancel out here.
1164
+ if (!method_exists(WC(), 'is_wc_admin_active') || !WC()->is_wc_admin_active()) {
1165
+ return;
1166
+ }
1167
+
1168
+ try {
1169
+ \Automattic\WooCommerce\Admin\Notes\WC_Admin_Notes::delete_notes_with_name( 'mailchimp-for-woocommerce-incomplete-install' );
1170
+ } catch (\Exception $e) {
1171
+ // do nothing.
1172
+ }
1173
  }
1174
 
1175
  // Print notices outside woocommerce admin bar
includes/api/assets/class-mailchimp-product-variation.php CHANGED
@@ -71,7 +71,7 @@ class MailChimp_WooCommerce_ProductVariation
71
  */
72
  public function setTitle($title)
73
  {
74
- $this->title = $title;
75
 
76
  return $this;
77
  }
71
  */
72
  public function setTitle($title)
73
  {
74
+ $this->title = strip_tags($title);
75
 
76
  return $this;
77
  }
includes/api/assets/class-mailchimp-product.php CHANGED
@@ -73,7 +73,7 @@ class MailChimp_WooCommerce_Product
73
  */
74
  public function setTitle($title)
75
  {
76
- $this->title = $title;
77
 
78
  return $this;
79
  }
73
  */
74
  public function setTitle($title)
75
  {
76
+ $this->title = strip_tags($title);
77
 
78
  return $this;
79
  }
includes/api/class-mailchimp-api.php CHANGED
@@ -338,13 +338,14 @@ class MailChimp_WooCommerce_MailChimpApi
338
  * @param $list_id
339
  * @param $email
340
  * @param bool $fail_silently
 
341
  * @return array|bool|mixed|object|null
342
  * @throws MailChimp_WooCommerce_Error|\Exception
343
  */
344
- public function updateMemberTags($list_id, $email, $fail_silently = false)
345
  {
346
  $hash = md5(strtolower(trim($email)));
347
- $tags = mailchimp_get_user_tags_to_update($email);
348
 
349
  if (empty($tags)) return false;
350
 
@@ -1050,7 +1051,7 @@ class MailChimp_WooCommerce_MailChimpApi
1050
  }
1051
 
1052
  // update the member tags but fail silently just in case.
1053
- $this->updateMemberTags(mailchimp_get_list_id(), $email_address, true);
1054
 
1055
  update_option('mailchimp-woocommerce-resource-last-updated', time());
1056
  $order = new MailChimp_WooCommerce_Order();
@@ -1097,7 +1098,7 @@ class MailChimp_WooCommerce_MailChimpApi
1097
  }
1098
 
1099
  // update the member tags but fail silently just in case.
1100
- $this->updateMemberTags(mailchimp_get_list_id(), $email_address, true);
1101
 
1102
  $order = new MailChimp_WooCommerce_Order();
1103
  return $order->fromArray($data);
338
  * @param $list_id
339
  * @param $email
340
  * @param bool $fail_silently
341
+ * @param MailChimp_WooCommerce_Order $order
342
  * @return array|bool|mixed|object|null
343
  * @throws MailChimp_WooCommerce_Error|\Exception
344
  */
345
+ public function updateMemberTags($list_id, $email, $fail_silently = false, $order = null)
346
  {
347
  $hash = md5(strtolower(trim($email)));
348
+ $tags = mailchimp_get_user_tags_to_update($email, $order);
349
 
350
  if (empty($tags)) return false;
351
 
1051
  }
1052
 
1053
  // update the member tags but fail silently just in case.
1054
+ $this->updateMemberTags(mailchimp_get_list_id(), $email_address, true, $order);
1055
 
1056
  update_option('mailchimp-woocommerce-resource-last-updated', time());
1057
  $order = new MailChimp_WooCommerce_Order();
1098
  }
1099
 
1100
  // update the member tags but fail silently just in case.
1101
+ $this->updateMemberTags(mailchimp_get_list_id(), $email_address, true, $order);
1102
 
1103
  $order = new MailChimp_WooCommerce_Order();
1104
  return $order->fromArray($data);
includes/class-mailchimp-woocommerce-newsletter.php CHANGED
@@ -44,8 +44,8 @@ class MailChimp_Newsletter extends MailChimp_WooCommerce_Options
44
  }
45
 
46
  // allow the user to specify the text in the newsletter label.
47
- $label = $this->getOption('newsletter_label', __('Subscribe to our newsletter', 'mailchimp-for-woocommerce'));
48
-
49
  // if the user chose 'check' or nothing at all, we default to true.
50
  $default_checked = $default_setting === 'check';
51
  $status = $default_checked;
44
  }
45
 
46
  // allow the user to specify the text in the newsletter label.
47
+ $label = $this->getOption('newsletter_label');
48
+ if ($label == '') $label = __('Subscribe to our newsletter', 'mailchimp-for-woocommerce');
49
  // if the user chose 'check' or nothing at all, we default to true.
50
  $default_checked = $default_setting === 'check';
51
  $status = $default_checked;
includes/class-mailchimp-woocommerce.php CHANGED
@@ -259,6 +259,7 @@ class MailChimp_WooCommerce
259
 
260
  // Mailchimp oAuth
261
  $this->loader->add_action( 'wp_ajax_mailchimp_woocommerce_oauth_start', $plugin_admin, 'mailchimp_woocommerce_ajax_oauth_start' );
 
262
  $this->loader->add_action( 'wp_ajax_mailchimp_woocommerce_oauth_finish', $plugin_admin, 'mailchimp_woocommerce_ajax_oauth_finish' );
263
 
264
  // Create new mailchimp Account methods
@@ -274,6 +275,9 @@ class MailChimp_WooCommerce
274
 
275
  // Load log file via ajax
276
  $this->loader->add_action( 'wp_ajax_mailchimp_woocommerce_load_log_file', $plugin_admin, 'mailchimp_woocommerce_ajax_load_log_file' );
 
 
 
277
  }
278
 
279
  /**
259
 
260
  // Mailchimp oAuth
261
  $this->loader->add_action( 'wp_ajax_mailchimp_woocommerce_oauth_start', $plugin_admin, 'mailchimp_woocommerce_ajax_oauth_start' );
262
+ $this->loader->add_action( 'wp_ajax_mailchimp_woocommerce_oauth_status', $plugin_admin, 'mailchimp_woocommerce_ajax_oauth_status' );
263
  $this->loader->add_action( 'wp_ajax_mailchimp_woocommerce_oauth_finish', $plugin_admin, 'mailchimp_woocommerce_ajax_oauth_finish' );
264
 
265
  // Create new mailchimp Account methods
275
 
276
  // Load log file via ajax
277
  $this->loader->add_action( 'wp_ajax_mailchimp_woocommerce_load_log_file', $plugin_admin, 'mailchimp_woocommerce_ajax_load_log_file' );
278
+
279
+ // delete log file via ajax
280
+ $this->loader->add_action( 'wp_ajax_mailchimp_woocommerce_delete_log_file', $plugin_admin, 'mailchimp_woocommerce_ajax_delete_log_file' );
281
  }
282
 
283
  /**
languages/mc-woocommerce.pot CHANGED
@@ -2,21 +2,21 @@
2
  # This file is distributed under the same license as the Mailchimp for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mailchimp for WooCommerce 2.4.6\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mailchimp-for-woocommerce\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2020-09-04T10:17:41+02:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.1.0\n"
15
  "X-Domain: mailchimp-for-woocommerce\n"
16
 
17
  #. Plugin Name of the plugin
18
- #: admin/class-mailchimp-woocommerce-admin.php:158
19
- #: admin/class-mailchimp-woocommerce-admin.php:175
20
  msgid "Mailchimp for WooCommerce"
21
  msgstr ""
22
 
@@ -29,7 +29,7 @@ msgid "Connects WooCommerce to Mailchimp to sync your store data, send targeted
29
  msgstr ""
30
 
31
  #. Author of the plugin
32
- #: admin/class-mailchimp-woocommerce-admin.php:159
33
  msgid "Mailchimp"
34
  msgstr ""
35
 
@@ -99,7 +99,7 @@ msgid "If you have a moment, please share why you are deactivating %s:"
99
  msgstr ""
100
 
101
  #: includes/class-mailchimp-woocommerce-deactivation-survey.php:379
102
- #: admin/class-mailchimp-woocommerce-admin.php:369
103
  msgid "Mailchimp for Woocommerce"
104
  msgstr ""
105
 
@@ -124,352 +124,349 @@ msgstr ""
124
  msgid "User ID"
125
  msgstr ""
126
 
127
- #: includes/class-mailchimp-woocommerce-newsletter.php:45
128
- #: admin/class-mailchimp-woocommerce-admin.php:1031
129
- #: admin/partials/tabs/newsletter_settings.php:97
 
130
  msgid "Subscribe to our newsletter"
131
  msgstr ""
132
 
133
- #: includes/class-mailchimp-woocommerce-newsletter.php:73
134
  msgid "Please select all the ways you would like to hear from us"
135
  msgstr ""
136
 
137
  #: includes/class-mailchimp-woocommerce-rest-api.php:151
138
- #: admin/partials/tabs/store_sync.php:161
139
  msgid "D, M j, Y g:i A"
140
  msgstr ""
141
 
142
- #: admin/class-mailchimp-woocommerce-admin.php:135
143
  msgid "Are you sure?"
144
  msgstr ""
145
 
146
- #: admin/class-mailchimp-woocommerce-admin.php:136
147
  msgid "You will not be able to revert."
148
  msgstr ""
149
 
150
- #: admin/class-mailchimp-woocommerce-admin.php:137
151
  msgid "Yes, delete it!"
152
  msgstr ""
153
 
154
- #: admin/class-mailchimp-woocommerce-admin.php:138
155
  msgid "No, cancel!"
156
  msgstr ""
157
 
158
- #: admin/class-mailchimp-woocommerce-admin.php:139
 
 
 
 
159
  msgid "You are about to disconnect your store from Mailchimp."
160
  msgstr ""
161
 
162
- #: admin/class-mailchimp-woocommerce-admin.php:140
163
  msgid "Yes, disconnect."
164
  msgstr ""
165
 
166
- #: admin/class-mailchimp-woocommerce-admin.php:249
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  msgid "Log file deleted."
168
  msgstr ""
169
 
170
- #: admin/class-mailchimp-woocommerce-admin.php:370
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
171
  msgid "We dectected that this site has the following constants defined, likely at wp-config.php file"
172
  msgstr ""
173
 
174
- #: admin/class-mailchimp-woocommerce-admin.php:372
175
  msgid "These constants are deprecated since Mailchimp for Woocommerce version 2.3. Please refer to the <a href=\"https://github.com/mailchimp/mc-woocommerce/wiki/\">plugin official wiki</a> for further details."
176
  msgstr ""
177
 
178
- #: admin/class-mailchimp-woocommerce-admin.php:554
179
  msgid "Store Disconnected"
180
  msgstr ""
181
 
182
- #: admin/class-mailchimp-woocommerce-admin.php:557
183
  msgid "Store Disconnect Failed"
184
  msgstr ""
185
 
186
- #: admin/class-mailchimp-woocommerce-admin.php:851
187
- #: admin/class-mailchimp-woocommerce-admin.php:1056
188
- #: admin/class-mailchimp-woocommerce-admin.php:1618
189
  msgid "Cannot create or update Store at Mailchimp."
190
  msgstr ""
191
 
192
- #: admin/class-mailchimp-woocommerce-admin.php:945
193
  msgid "As part of the Mailchimp Terms of Use, we require a contact email and a physical mailing address."
194
  msgstr ""
195
 
196
- #: admin/class-mailchimp-woocommerce-admin.php:953
197
  msgid "As part of the Mailchimp Terms of Use, we require a valid phone number for your store."
198
  msgstr ""
199
 
200
- #: admin/class-mailchimp-woocommerce-admin.php:961
201
  msgid "Mailchimp for WooCommerce requires a Store Name to connect your store."
202
  msgstr ""
203
 
204
  #. translators: %s - plugin name.
205
- #: admin/class-mailchimp-woocommerce-admin.php:979
206
- #: admin/partials/tabs/campaign_defaults.php:73
207
  msgid "You were subscribed to the newsletter from %s"
208
  msgstr ""
209
 
210
- #: admin/class-mailchimp-woocommerce-admin.php:984
211
- #: admin/class-mailchimp-woocommerce-admin.php:1081
212
  msgid "One or more fields were not updated"
213
  msgstr ""
214
 
215
- #: admin/class-mailchimp-woocommerce-admin.php:1146
216
  msgid "You must supply your Mailchimp API key to pull the audiences."
217
  msgstr ""
218
 
219
- #: admin/class-mailchimp-woocommerce-admin.php:1415
220
  msgid "Cannot create or update List at Mailchimp."
221
  msgstr ""
222
 
223
- #: admin/class-mailchimp-woocommerce-admin.php:1415
224
  msgid "Please retry."
225
  msgstr ""
226
 
227
- #: admin/class-mailchimp-woocommerce-admin.php:1634
228
  msgid "Starting the sync process..."
229
  msgstr ""
230
 
231
- #: admin/class-mailchimp-woocommerce-admin.php:1636
232
  msgid "The plugin has started the initial sync with your store, and the process will work in the background automatically."
233
  msgstr ""
234
 
235
- #: admin/class-mailchimp-woocommerce-admin.php:1638
236
  msgid "Sometimes the sync can take a while, especially on sites with lots of orders and/or products. It is safe to navigate away from this screen while it is running."
237
  msgstr ""
238
 
239
- #: admin/class-mailchimp-woocommerce-admin.php:1654
240
- msgid "Your store is synced with Mailchimp!"
241
- msgstr ""
242
-
243
  #. translators: %1$s: Number of synced orders %2$s: Audience name
244
- #: admin/class-mailchimp-woocommerce-admin.php:1657
245
- msgid "We've successfully synced %1$s orders to your Audience %2$s, that's awesome!"
246
- msgstr ""
247
-
248
- #. translators: %s - Wordpress.org plugin review URL.
249
- #: admin/class-mailchimp-woocommerce-admin.php:1665
250
- msgid "Could you please do us a favor and leave the plugin a 5-star <a href=%s target='_blank'>rating on Wordpress.org</a>? It helps our community know that we're working hard to make it better each day."
251
  msgstr ""
252
 
253
- #: admin/class-mailchimp-woocommerce-admin.php:1668
254
  msgid "Leave a Review"
255
  msgstr ""
256
 
257
- #: admin/class-mailchimp-woocommerce-admin.php:1693
258
  msgid "Saved"
259
  msgstr ""
260
 
261
- #: admin/class-mailchimp-woocommerce-admin.php:1698
262
  msgid "Error setting communications status"
263
  msgstr ""
264
 
265
- #: admin/class-mailchimp-woocommerce-admin.php:1744
266
  msgid "No log file provided"
267
  msgstr ""
268
 
269
- #: admin/class-mailchimp-woocommerce-admin.php:1763
270
  msgid "Error loading log file contents"
271
  msgstr ""
272
 
273
- #: admin/partials/tabs/newsletter_settings.php:36
274
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:181
275
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:206
276
  msgid "Audience Settings"
277
  msgstr ""
278
 
279
- #: admin/partials/tabs/newsletter_settings.php:41
280
- msgid "Sync audience with your store"
281
  msgstr ""
282
 
283
- #: admin/partials/tabs/newsletter_settings.php:47
 
 
 
 
284
  msgid "Create New Audience"
285
  msgstr ""
286
 
287
- #: admin/partials/tabs/newsletter_settings.php:51
288
  msgid "Select Audience"
289
  msgstr ""
290
 
291
- #: admin/partials/tabs/newsletter_settings.php:76
292
  msgid "During initial sync, auto subscribe the existing customers."
293
  msgstr ""
294
 
295
- #: admin/partials/tabs/newsletter_settings.php:81
296
- msgid "Optional Audience Settings"
297
  msgstr ""
298
 
299
- #: admin/partials/tabs/newsletter_settings.php:86
300
- msgid "Opt-in Settings"
301
  msgstr ""
302
 
303
- #: admin/partials/tabs/newsletter_settings.php:91
304
- msgid "Message for the opt-in checkbox"
305
  msgstr ""
306
 
307
- #: admin/partials/tabs/newsletter_settings.php:92
308
- msgid "The call-to-action text that prompts customers to subscribe to your newsletter at checkout."
309
  msgstr ""
310
 
311
- #: admin/partials/tabs/newsletter_settings.php:98
312
- msgid "HTML tags allowed: <a href=\"\" target=\"\" title=\"\"></a> and <br>"
313
  msgstr ""
314
 
315
  #: admin/partials/tabs/newsletter_settings.php:103
316
- msgid "Checkbox Display Options"
317
- msgstr ""
318
-
319
- #: admin/partials/tabs/newsletter_settings.php:104
320
- msgid "Choose how you want the opt-in to your newsletter checkbox to render at checkout"
321
- msgstr ""
322
-
323
- #: admin/partials/tabs/newsletter_settings.php:112
324
- msgid "Visible, checked by default"
325
- msgstr ""
326
-
327
- #: admin/partials/tabs/newsletter_settings.php:115
328
- msgid "Visible, unchecked by default"
329
- msgstr ""
330
-
331
- #: admin/partials/tabs/newsletter_settings.php:118
332
- msgid "Hidden, unchecked by default"
333
- msgstr ""
334
-
335
- #: admin/partials/tabs/newsletter_settings.php:125
336
- msgid "Advanced Checkbox Settings"
337
- msgstr ""
338
-
339
- #. translators: %s - Woocommerce Actions documentation URL.
340
- #: admin/partials/tabs/newsletter_settings.php:126
341
- msgid "To change the location of the opt-in <br/>checkbox at checkout, input one of the <a href=%s target=_blank>available WooCommerce form actions</a>."
342
- msgstr ""
343
-
344
- #: admin/partials/tabs/newsletter_settings.php:132
345
- msgid "Enter a WooCommerce form action"
346
- msgstr ""
347
-
348
- #: admin/partials/tabs/newsletter_settings.php:136
349
- msgid "Subscriber Settings"
350
- msgstr ""
351
-
352
- #: admin/partials/tabs/newsletter_settings.php:141
353
- msgid "Tags"
354
- msgstr ""
355
-
356
- #: admin/partials/tabs/newsletter_settings.php:142
357
- msgid "Add a comma-separated list of tags to apply to a subscriber in Mailchimp after a transaction occurs"
358
- msgstr ""
359
-
360
- #: admin/partials/tabs/newsletter_settings.php:151
361
- msgid "Product Settings"
362
- msgstr ""
363
-
364
- #: admin/partials/tabs/newsletter_settings.php:157
365
- msgid "Product Image Size"
366
  msgstr ""
367
 
368
- #: admin/partials/tabs/newsletter_settings.php:158
369
- msgid "Define the product image size used by abandoned carts, order notifications, and product recommendations."
370
  msgstr ""
371
 
372
- #: admin/partials/tabs/api_key_create_account.php:33
373
- #: admin/partials/tabs/store_sync.php:282
374
- #: admin/partials/tabs/store_info.php:33
375
- msgid "Email"
376
  msgstr ""
377
 
378
- #: admin/partials/tabs/api_key_create_account.php:40
379
- msgid "Username"
380
  msgstr ""
381
 
382
- #: admin/partials/tabs/api_key_create_account.php:43
383
- msgid "Suggested username: "
384
  msgstr ""
385
 
386
- #: admin/partials/tabs/api_key_create_account.php:48
387
- msgid "Next Step"
388
  msgstr ""
389
 
390
- #: admin/partials/tabs/api_key_create_account.php:53
391
- #: admin/partials/tabs/store_sync.php:307
392
- msgid "Invalid Email. Please double check."
393
  msgstr ""
394
 
395
- #: admin/partials/tabs/api_key_create_account.php:67
396
- msgid "Address Line 1"
397
  msgstr ""
398
 
399
- #: admin/partials/tabs/api_key_create_account.php:74
400
- msgid "Address Line 2"
401
  msgstr ""
402
 
403
- #: admin/partials/tabs/api_key_create_account.php:82
404
- #: admin/partials/tabs/store_info.php:49
405
- msgid "City"
406
  msgstr ""
407
 
408
- #: admin/partials/tabs/api_key_create_account.php:89
409
- #: admin/partials/tabs/store_info.php:57
410
- msgid "State"
411
  msgstr ""
412
 
413
- #: admin/partials/tabs/api_key_create_account.php:96
414
- msgid "Zip"
415
  msgstr ""
416
 
417
- #: admin/partials/tabs/api_key_create_account.php:103
418
- #: admin/partials/tabs/store_info.php:73
419
- msgid "Country"
420
  msgstr ""
421
 
422
- #: admin/partials/tabs/api_key_create_account.php:128
423
- msgid "Phone"
424
  msgstr ""
425
 
426
- #: admin/partials/tabs/api_key_create_account.php:135
427
- msgid "Timezone"
428
  msgstr ""
429
 
430
- #. translators: %s - Mailchimp legal pages
431
- #: admin/partials/tabs/api_key_create_account.php:161
432
- msgid "By clicking the \"Get Started!\" button, you are creating a Mailchimp account, and you agree to Mailchimp's <a href=%1$s target=_blank>Terms of Use</a> and <a href=%2$s target=_blank>Privacy Policy</a>."
433
  msgstr ""
434
 
435
- #: admin/partials/tabs/api_key_create_account.php:167
436
- msgid "Go Back"
437
  msgstr ""
438
 
439
- #: admin/partials/tabs/api_key_create_account.php:171
440
- msgid "Get Started!"
441
  msgstr ""
442
 
443
- #: admin/partials/tabs/api_key_create_account.php:176
444
- msgid "Invalid Address"
 
445
  msgstr ""
446
 
447
- #: admin/partials/tabs/api_key_create_account.php:177
448
- msgid "Invalid City"
449
  msgstr ""
450
 
451
- #: admin/partials/tabs/api_key_create_account.php:178
452
- msgid "Invalid State"
453
  msgstr ""
454
 
455
- #: admin/partials/tabs/api_key_create_account.php:179
456
- msgid "Invalid Zip"
457
  msgstr ""
458
 
459
- #: admin/partials/tabs/api_key_create_account.php:180
460
- msgid "Invalid Country"
461
  msgstr ""
462
 
463
- #: admin/partials/tabs/api_key_create_account.php:181
464
- msgid "Invalid Phone"
465
  msgstr ""
466
 
467
- #: admin/partials/tabs/api_key_create_account.php:182
468
- msgid "Invalid Timezone"
469
  msgstr ""
470
 
471
- #: admin/partials/tabs/api_key_create_account.php:183
472
- msgid "Connecting..."
473
  msgstr ""
474
 
475
  #: admin/partials/tabs/logs.php:38
@@ -514,256 +511,333 @@ msgid "Mailchimp says: You must enter in a valid API key."
514
  msgstr ""
515
 
516
  #: admin/partials/tabs/notices.php:9
517
- msgid "Mailchimp says: Sorry you must set up your campaign defaults before you proceed!"
518
- msgstr ""
519
-
520
- #: admin/partials/tabs/notices.php:12
521
  msgid "Mailchimp says: You must select a marketing audience."
522
  msgstr ""
523
 
524
- #: admin/partials/tabs/notices.php:15
525
  msgid "Mailchimp says: Sorry you must set up your store before you proceed!"
526
  msgstr ""
527
 
528
- #: admin/partials/tabs/notices.php:18
529
  msgid "Mailchimp says: You are not fully ready to run the Store Sync, please verify your settings before proceeding."
530
  msgstr ""
531
 
532
- #: admin/partials/tabs/notices.php:32
533
  msgid "Mailchimp says: Your re-sync has been started!"
534
  msgstr ""
535
 
536
- #: admin/partials/tabs/campaign_defaults.php:19
537
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:166
538
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:203
539
- msgid "Audience Defaults"
540
  msgstr ""
541
 
542
- #: admin/partials/tabs/campaign_defaults.php:24
543
- msgid "From Name"
544
  msgstr ""
545
 
546
- #: admin/partials/tabs/campaign_defaults.php:32
547
- msgid "From Email"
548
  msgstr ""
549
 
550
- #: admin/partials/tabs/campaign_defaults.php:40
551
- #: admin/partials/tabs/store_sync.php:289
552
- msgid "Subject"
553
  msgstr ""
554
 
555
- #: admin/partials/tabs/campaign_defaults.php:43
556
- msgid "Store Newsletter"
557
  msgstr ""
558
 
559
- #: admin/partials/tabs/campaign_defaults.php:48
560
- msgid "Language"
561
  msgstr ""
562
 
563
- #: admin/partials/tabs/campaign_defaults.php:66
564
- msgid "Permission reminder message"
565
  msgstr ""
566
 
567
- #: admin/partials/tabs/store_sync.php:78
 
 
 
 
568
  msgid "Coupons"
569
  msgstr ""
570
 
571
- #: admin/partials/tabs/store_sync.php:88
572
  msgid "Products"
573
  msgstr ""
574
 
575
- #: admin/partials/tabs/store_sync.php:98
576
  msgid "Orders"
577
  msgstr ""
578
 
579
- #: admin/partials/tabs/store_sync.php:111
580
  msgid "Subscribers"
581
  msgstr ""
582
 
583
- #: admin/partials/tabs/store_sync.php:118
584
  msgid "Transactional"
585
  msgstr ""
586
 
587
- #: admin/partials/tabs/store_sync.php:125
588
  msgid "Unsubscribed"
589
  msgstr ""
590
 
591
- #: admin/partials/tabs/store_sync.php:141
592
- msgid "DISCONNECT STORE"
593
  msgstr ""
594
 
595
- #: admin/partials/tabs/store_sync.php:143
596
- msgid "Account Connected"
 
597
  msgstr ""
598
 
599
- #: admin/partials/tabs/store_sync.php:145
600
- msgid "Audience Connected"
 
 
 
 
 
 
601
  msgstr ""
602
 
603
- #: admin/partials/tabs/store_sync.php:151
604
- msgid "Status:"
 
605
  msgstr ""
606
 
607
- #: admin/partials/tabs/store_sync.php:152
608
- msgid "Sync Completed"
 
609
  msgstr ""
610
 
611
- #: admin/partials/tabs/store_sync.php:152
612
- msgid "Syncing..."
613
  msgstr ""
614
 
615
- #: admin/partials/tabs/store_sync.php:154
616
- msgid "Initial sync in progress"
617
  msgstr ""
618
 
619
- #: admin/partials/tabs/store_sync.php:158
620
- msgid "Last Updated:"
 
621
  msgstr ""
622
 
623
- #: admin/partials/tabs/store_sync.php:163
624
- msgid "Starting..."
625
  msgstr ""
626
 
627
- #: admin/partials/tabs/store_sync.php:190
628
- msgid "enabled"
629
  msgstr ""
630
 
631
- #: admin/partials/tabs/store_sync.php:191
632
- msgid "disabled"
633
  msgstr ""
634
 
635
- #: admin/partials/tabs/store_sync.php:209
636
- msgid "Synchronization"
637
  msgstr ""
638
 
639
- #: admin/partials/tabs/store_sync.php:211
640
- msgid "You can resync your audience at any time without losing any of your e-commerce data."
641
  msgstr ""
642
 
643
- #: admin/partials/tabs/store_sync.php:214
644
- #: admin/partials/tabs/store_sync.php:216
645
- msgid "Resync now"
 
646
  msgstr ""
647
 
648
- #: admin/partials/tabs/store_sync.php:217
649
- msgid "Sync is running. Please wait until it finishes."
650
  msgstr ""
651
 
652
- #: admin/partials/tabs/store_sync.php:224
653
- msgid "More Information"
654
  msgstr ""
655
 
656
- #. translators: %s - Plugin review URL.
657
- #: admin/partials/tabs/store_sync.php:226
658
- msgid "Is this plugin helping your e-commerce business? <a href=%s target=_blank>Please leave us a ★★★★★ review!</a>."
659
  msgstr ""
660
 
661
- #. translators: %s - WP-CLI URL.
662
- #: admin/partials/tabs/store_sync.php:227
663
- msgid "Have a larger store or having issues syncing? Consider using <a href=%s target=_blank>WP-CLI</a> or browse documentation around common <a href=%s target=_blank>caching problems</a>."
664
  msgstr ""
665
 
666
- #. translators: %s - WP-CLI URL.
667
- #: admin/partials/tabs/store_sync.php:228
668
- msgid "Order and customer information will not sync if they contain an Amazon or generic email address."
669
  msgstr ""
670
 
671
- #. translators: %s - Mailchimp Support URL.
672
- #: admin/partials/tabs/store_sync.php:229
673
- msgid "Need help? Visit <a href=%s target=_blank>Mailchimp support</a> or <a id=%s href=%s>send us an email.</a> "
674
  msgstr ""
675
 
676
- #. translators: %s - Mailchimp Privacy Policy URL.
677
- #: admin/partials/tabs/store_sync.php:230
678
- msgid "By using this plugin, Mailchimp will process customer information in accordance with their <a href=%s target=_blank>Privacy Policy</a>."
679
  msgstr ""
680
 
681
- #: admin/partials/tabs/store_sync.php:253
682
- msgid "Send us a support ticket"
683
  msgstr ""
684
 
685
- #: admin/partials/tabs/store_sync.php:254
686
- msgid "The best way to get in touch with us is by submitting a ticket in the form below. </br> We do our best to get back to you within 48 hours. We look forward to hear from you!"
687
  msgstr ""
688
 
689
- #: admin/partials/tabs/store_sync.php:268
690
- msgid "First name"
691
  msgstr ""
692
 
693
- #: admin/partials/tabs/store_sync.php:275
694
- msgid "Last name"
695
  msgstr ""
696
 
697
- #: admin/partials/tabs/store_sync.php:296
698
- msgid "Message"
 
699
  msgstr ""
700
 
701
- #: admin/partials/tabs/store_sync.php:302
702
- msgid "Send"
703
  msgstr ""
704
 
705
- #: admin/partials/tabs/store_sync.php:308
706
- msgid "Invalid First Name. Please double check."
 
707
  msgstr ""
708
 
709
- #: admin/partials/tabs/store_sync.php:309
710
- msgid "Invalid Last Name. Please double check."
711
  msgstr ""
712
 
713
- #: admin/partials/tabs/store_sync.php:310
714
- msgid "Invalid Subject. Please double check."
715
  msgstr ""
716
 
717
- #: admin/partials/tabs/store_sync.php:311
718
- msgid "Invalid Message. Please double check."
719
  msgstr ""
720
 
721
- #: admin/partials/tabs/store_sync.php:312
722
- msgid "Message sent..."
723
  msgstr ""
724
 
725
- #: admin/partials/tabs/store_sync.php:313
726
- msgid "Error: Message not sent..."
727
  msgstr ""
728
 
729
- #: admin/partials/tabs/api_key.php:6
730
- #: admin/partials/tabs/api_key.php:11
731
- msgid "Connect your store to Mailchimp"
732
  msgstr ""
733
 
734
- #: admin/partials/tabs/api_key.php:10
735
- msgid "Reconnect"
736
  msgstr ""
737
 
738
- #: admin/partials/tabs/api_key.php:10
739
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:141
740
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:197
741
- msgid "Connect"
742
  msgstr ""
743
 
744
- #: admin/partials/tabs/api_key.php:14
745
- msgid "Already connected. You can reconnect with another Mailchimp account if you want."
746
  msgstr ""
747
 
748
- #: admin/partials/tabs/api_key.php:16
749
- msgid "Connecting. A new window will open with Mailchimp's OAuth service. Please log-in an we will take care of the rest."
750
  msgstr ""
751
 
752
- #: admin/partials/tabs/api_key.php:17
753
- msgid "Error, can't login."
754
  msgstr ""
755
 
756
- #: admin/partials/tabs/api_key.php:18
757
- msgid "Connection in progress"
758
  msgstr ""
759
 
760
- #: admin/partials/tabs/api_key.php:19
761
- msgid "Connected! Please wait while loading next step"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
762
  msgstr ""
763
 
764
  #: admin/partials/tabs/store_info.php:21
765
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:151
766
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:200
767
  msgid "Store Settings"
768
  msgstr ""
769
 
@@ -789,7 +863,7 @@ msgstr ""
789
 
790
  #. translators: %1$s - The Currency name and format (ex: USD | US Dollar) %2$s - Timezone name or offset (ex: America/New_York or UTC-4:00) %3$s and %5$s- <a> tag open %4$s - </a> tag close
791
  #: admin/partials/tabs/store_info.php:116
792
- msgid "We've detected that your WooCommerce store's currency is <b>%1$s</b> (%3$schange%4$s), and the WordPress timezone is <b>%2$s</b> (%5$schange%4$s). <br/>."
793
  msgstr ""
794
 
795
  #: admin/partials/tabs/store_info.php:130
@@ -804,80 +878,141 @@ msgstr ""
804
  msgid "Select store's locale"
805
  msgstr ""
806
 
807
- #: admin/partials/tabs/store_info.php:158
808
- msgid "Optional Store Settings"
809
  msgstr ""
810
 
811
- #: admin/partials/tabs/store_info.php:164
812
  msgid "Plugin Permission Level"
813
  msgstr ""
814
 
815
- #: admin/partials/tabs/store_info.php:165
816
  msgid "Select the minimum permission capability to manage Mailchimp for Woocommerce options"
817
  msgstr ""
818
 
819
- #: admin/partials/tabs/store_info.php:172
820
  msgid "Administrators Only"
821
  msgstr ""
822
 
823
- #: admin/partials/tabs/store_info.php:175
824
  msgid "Shop Managers and Administrators"
825
  msgstr ""
826
 
827
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:72
828
- msgid "Mailchimp says: Please upgrade your PHP version to a minimum of 7.0"
829
  msgstr ""
830
 
831
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:78
832
- msgid "Mailchimp says: API Request Error - "
833
  msgstr ""
834
 
835
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:103
836
- msgid "Add Mailchimp for WooCommerce to build custom segments,<br/>send automations, and track purchase activity in Mailchimp"
 
 
 
 
 
 
 
 
 
 
 
 
837
  msgstr ""
838
 
839
  #: admin/partials/mailchimp-woocommerce-admin-tabs.php:107
840
- msgid "Please provide a bit of information<br/>about your WooCommerce store"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
841
  msgstr ""
842
 
843
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:111
844
- msgid "Please review the audience default<br/>campaign information"
845
  msgstr ""
846
 
847
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:116
848
- msgid "Please apply your <br/>audience settings."
849
  msgstr ""
850
 
851
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:119
 
 
 
 
852
  msgid "Please apply your audience settings. "
853
  msgstr ""
854
 
855
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:120
856
- msgid "If you don’t<br/>have an audience, you can choose to create one"
857
  msgstr ""
858
 
859
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:125
860
- msgid "Sweet! You're connected with<br/>Mailchimp and syncing data"
861
  msgstr ""
862
 
863
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:128
864
- msgid "Connect your WooCommerce store to a<br/>Mailchimp audience in less than 60 seconds"
865
  msgstr ""
866
 
867
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:133
868
- msgid "Log events from the <br/>Mailchimp plugin"
869
  msgstr ""
870
 
871
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:199
 
 
 
 
 
 
 
 
872
  msgid "Overview"
873
  msgstr ""
874
 
875
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:209
 
 
 
 
 
 
 
 
876
  msgid "Logs"
877
  msgstr ""
878
 
879
- #: admin/partials/mailchimp-woocommerce-admin-tabs.php:270
880
- msgid "Start sync"
 
 
 
 
 
 
 
 
881
  msgstr ""
882
 
883
  #: bootstrap.php:240
2
  # This file is distributed under the same license as the Mailchimp for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mailchimp for WooCommerce 2.5.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mailchimp-for-woocommerce\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2020-11-25T09:38:38+01:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.1.0\n"
15
  "X-Domain: mailchimp-for-woocommerce\n"
16
 
17
  #. Plugin Name of the plugin
18
+ #: admin/class-mailchimp-woocommerce-admin.php:174
19
+ #: admin/class-mailchimp-woocommerce-admin.php:191
20
  msgid "Mailchimp for WooCommerce"
21
  msgstr ""
22
 
29
  msgstr ""
30
 
31
  #. Author of the plugin
32
+ #: admin/class-mailchimp-woocommerce-admin.php:175
33
  msgid "Mailchimp"
34
  msgstr ""
35
 
99
  msgstr ""
100
 
101
  #: includes/class-mailchimp-woocommerce-deactivation-survey.php:379
102
+ #: admin/class-mailchimp-woocommerce-admin.php:434
103
  msgid "Mailchimp for Woocommerce"
104
  msgstr ""
105
 
124
  msgid "User ID"
125
  msgstr ""
126
 
127
+ #: includes/class-mailchimp-woocommerce-newsletter.php:48
128
+ #: admin/class-mailchimp-woocommerce-admin.php:129
129
+ #: admin/class-mailchimp-woocommerce-admin.php:1080
130
+ #: admin/partials/tabs/newsletter_settings.php:197
131
  msgid "Subscribe to our newsletter"
132
  msgstr ""
133
 
134
+ #: includes/class-mailchimp-woocommerce-newsletter.php:76
135
  msgid "Please select all the ways you would like to hear from us"
136
  msgstr ""
137
 
138
  #: includes/class-mailchimp-woocommerce-rest-api.php:151
139
+ #: admin/partials/tabs/store_sync.php:102
140
  msgid "D, M j, Y g:i A"
141
  msgstr ""
142
 
143
+ #: admin/class-mailchimp-woocommerce-admin.php:139
144
  msgid "Are you sure?"
145
  msgstr ""
146
 
147
+ #: admin/class-mailchimp-woocommerce-admin.php:140
148
  msgid "You will not be able to revert."
149
  msgstr ""
150
 
151
+ #: admin/class-mailchimp-woocommerce-admin.php:141
152
  msgid "Yes, delete it!"
153
  msgstr ""
154
 
155
+ #: admin/class-mailchimp-woocommerce-admin.php:142
156
  msgid "No, cancel!"
157
  msgstr ""
158
 
159
+ #: admin/class-mailchimp-woocommerce-admin.php:143
160
+ msgid "Please wait"
161
+ msgstr ""
162
+
163
+ #: admin/class-mailchimp-woocommerce-admin.php:144
164
  msgid "You are about to disconnect your store from Mailchimp."
165
  msgstr ""
166
 
167
+ #: admin/class-mailchimp-woocommerce-admin.php:145
168
  msgid "Yes, disconnect."
169
  msgstr ""
170
 
171
+ #: admin/class-mailchimp-woocommerce-admin.php:146
172
+ msgid "Try again"
173
+ msgstr ""
174
+
175
+ #: admin/class-mailchimp-woocommerce-admin.php:147
176
+ msgid "Resync request in progress"
177
+ msgstr ""
178
+
179
+ #: admin/class-mailchimp-woocommerce-admin.php:148
180
+ msgid "Could not resync orders, please try again."
181
+ msgstr ""
182
+
183
+ #: admin/class-mailchimp-woocommerce-admin.php:149
184
+ msgid "Disconnecting store in progress"
185
+ msgstr ""
186
+
187
+ #: admin/class-mailchimp-woocommerce-admin.php:150
188
+ msgid "Login Popup is blocked!"
189
+ msgstr ""
190
+
191
+ #: admin/class-mailchimp-woocommerce-admin.php:151
192
+ msgid "Please allow your browser to show popups for this page"
193
+ msgstr ""
194
+
195
+ #: admin/class-mailchimp-woocommerce-admin.php:152
196
+ msgid "Sending support request"
197
+ msgstr ""
198
+
199
+ #: admin/class-mailchimp-woocommerce-admin.php:153
200
+ msgid "Message received"
201
+ msgstr ""
202
+
203
+ #: admin/class-mailchimp-woocommerce-admin.php:154
204
+ msgid "Thanks, your message has been received."
205
+ msgstr ""
206
+
207
+ #: admin/class-mailchimp-woocommerce-admin.php:266
208
  msgid "Log file deleted."
209
  msgstr ""
210
 
211
+ #. translators: Placeholders %1$s - opening strong HTML tag, %2$s - closing strong HTML tag, %3$s - opening link HTML tag, %4$s - closing link HTML tag
212
+ #: admin/class-mailchimp-woocommerce-admin.php:282
213
+ msgid "%1$sMailchimp for Woocommerce%2$s is not yet connected to a Mailchimp account. To complete the connection, %3$svisit the plugin settings page%4$s."
214
+ msgstr ""
215
+
216
+ #: admin/class-mailchimp-woocommerce-admin.php:315
217
+ msgid "Mailchimp For WooCommerce"
218
+ msgstr ""
219
+
220
+ #: admin/class-mailchimp-woocommerce-admin.php:317
221
+ msgid "Plugin is not yet connected to a Mailchimp account. To complete the connection, open the settings page."
222
+ msgstr ""
223
+
224
+ #: admin/class-mailchimp-woocommerce-admin.php:334
225
+ msgid "Open Settings"
226
+ msgstr ""
227
+
228
+ #: admin/class-mailchimp-woocommerce-admin.php:435
229
  msgid "We dectected that this site has the following constants defined, likely at wp-config.php file"
230
  msgstr ""
231
 
232
+ #: admin/class-mailchimp-woocommerce-admin.php:437
233
  msgid "These constants are deprecated since Mailchimp for Woocommerce version 2.3. Please refer to the <a href=\"https://github.com/mailchimp/mc-woocommerce/wiki/\">plugin official wiki</a> for further details."
234
  msgstr ""
235
 
236
+ #: admin/class-mailchimp-woocommerce-admin.php:647
237
  msgid "Store Disconnected"
238
  msgstr ""
239
 
240
+ #: admin/class-mailchimp-woocommerce-admin.php:650
241
  msgid "Store Disconnect Failed"
242
  msgstr ""
243
 
244
+ #: admin/class-mailchimp-woocommerce-admin.php:937
245
+ #: admin/class-mailchimp-woocommerce-admin.php:1123
246
+ #: admin/class-mailchimp-woocommerce-admin.php:1685
247
  msgid "Cannot create or update Store at Mailchimp."
248
  msgstr ""
249
 
250
+ #: admin/class-mailchimp-woocommerce-admin.php:1031
251
  msgid "As part of the Mailchimp Terms of Use, we require a contact email and a physical mailing address."
252
  msgstr ""
253
 
254
+ #: admin/class-mailchimp-woocommerce-admin.php:1039
255
  msgid "As part of the Mailchimp Terms of Use, we require a valid phone number for your store."
256
  msgstr ""
257
 
258
+ #: admin/class-mailchimp-woocommerce-admin.php:1047
259
  msgid "Mailchimp for WooCommerce requires a Store Name to connect your store."
260
  msgstr ""
261
 
262
  #. translators: %s - plugin name.
263
+ #: admin/class-mailchimp-woocommerce-admin.php:1090
264
+ #: admin/partials/tabs/newsletter_settings.php:136
265
  msgid "You were subscribed to the newsletter from %s"
266
  msgstr ""
267
 
268
+ #: admin/class-mailchimp-woocommerce-admin.php:1095
269
+ #: admin/class-mailchimp-woocommerce-admin.php:1148
270
  msgid "One or more fields were not updated"
271
  msgstr ""
272
 
273
+ #: admin/class-mailchimp-woocommerce-admin.php:1213
274
  msgid "You must supply your Mailchimp API key to pull the audiences."
275
  msgstr ""
276
 
277
+ #: admin/class-mailchimp-woocommerce-admin.php:1482
278
  msgid "Cannot create or update List at Mailchimp."
279
  msgstr ""
280
 
281
+ #: admin/class-mailchimp-woocommerce-admin.php:1482
282
  msgid "Please retry."
283
  msgstr ""
284
 
285
+ #: admin/class-mailchimp-woocommerce-admin.php:1701
286
  msgid "Starting the sync process..."
287
  msgstr ""
288
 
289
+ #: admin/class-mailchimp-woocommerce-admin.php:1703
290
  msgid "The plugin has started the initial sync with your store, and the process will work in the background automatically."
291
  msgstr ""
292
 
293
+ #: admin/class-mailchimp-woocommerce-admin.php:1705
294
  msgid "Sometimes the sync can take a while, especially on sites with lots of orders and/or products. It is safe to navigate away from this screen while it is running."
295
  msgstr ""
296
 
 
 
 
 
297
  #. translators: %1$s: Number of synced orders %2$s: Audience name
298
+ #: admin/class-mailchimp-woocommerce-admin.php:1723
299
+ msgid "We successfully synced %1$s orders to your Audience, %2$s. If you’re happy with this integration, leave a 5-star review. It helps our community know we’re working hard to make it better each day."
 
 
 
 
 
300
  msgstr ""
301
 
302
+ #: admin/class-mailchimp-woocommerce-admin.php:1729
303
  msgid "Leave a Review"
304
  msgstr ""
305
 
306
+ #: admin/class-mailchimp-woocommerce-admin.php:1754
307
  msgid "Saved"
308
  msgstr ""
309
 
310
+ #: admin/class-mailchimp-woocommerce-admin.php:1759
311
  msgid "Error setting communications status"
312
  msgstr ""
313
 
314
+ #: admin/class-mailchimp-woocommerce-admin.php:1805
315
  msgid "No log file provided"
316
  msgstr ""
317
 
318
+ #: admin/class-mailchimp-woocommerce-admin.php:1824
319
  msgid "Error loading log file contents"
320
  msgstr ""
321
 
322
+ #: admin/partials/tabs/newsletter_settings.php:26
 
 
323
  msgid "Audience Settings"
324
  msgstr ""
325
 
326
+ #: admin/partials/tabs/newsletter_settings.php:31
327
+ msgid "Connect your store with an audience"
328
  msgstr ""
329
 
330
+ #: admin/partials/tabs/newsletter_settings.php:36
331
+ msgid "Audience name"
332
+ msgstr ""
333
+
334
+ #: admin/partials/tabs/newsletter_settings.php:42
335
  msgid "Create New Audience"
336
  msgstr ""
337
 
338
+ #: admin/partials/tabs/newsletter_settings.php:46
339
  msgid "Select Audience"
340
  msgstr ""
341
 
342
+ #: admin/partials/tabs/newsletter_settings.php:70
343
  msgid "During initial sync, auto subscribe the existing customers."
344
  msgstr ""
345
 
346
+ #: admin/partials/tabs/newsletter_settings.php:75
347
+ msgid "Your store is currently connected to:"
348
  msgstr ""
349
 
350
+ #: admin/partials/tabs/newsletter_settings.php:78
351
+ msgid "To select another audience, you must first disconnect your store at Settings tab"
352
  msgstr ""
353
 
354
+ #: admin/partials/tabs/newsletter_settings.php:83
355
+ msgid "Audience Defaults"
356
  msgstr ""
357
 
358
+ #: admin/partials/tabs/newsletter_settings.php:87
359
+ msgid "From Name"
360
  msgstr ""
361
 
362
+ #: admin/partials/tabs/newsletter_settings.php:95
363
+ msgid "From Email"
364
  msgstr ""
365
 
366
  #: admin/partials/tabs/newsletter_settings.php:103
367
+ #: admin/partials/tabs/store_sync.php:262
368
+ msgid "Subject"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
369
  msgstr ""
370
 
371
+ #: admin/partials/tabs/newsletter_settings.php:106
372
+ msgid "Store Newsletter"
373
  msgstr ""
374
 
375
+ #: admin/partials/tabs/newsletter_settings.php:111
376
+ msgid "Language"
 
 
377
  msgstr ""
378
 
379
+ #: admin/partials/tabs/newsletter_settings.php:129
380
+ msgid "Permission reminder message"
381
  msgstr ""
382
 
383
+ #: admin/partials/tabs/newsletter_settings.php:144
384
+ msgid "Opt-in Settings"
385
  msgstr ""
386
 
387
+ #: admin/partials/tabs/newsletter_settings.php:149
388
+ msgid "Checkbox display options"
389
  msgstr ""
390
 
391
+ #: admin/partials/tabs/newsletter_settings.php:150
392
+ msgid "Choose how you want the opt-in to your newsletter checkbox to render at checkout"
 
393
  msgstr ""
394
 
395
+ #: admin/partials/tabs/newsletter_settings.php:156
396
+ msgid "Visible, checked by default"
397
  msgstr ""
398
 
399
+ #: admin/partials/tabs/newsletter_settings.php:159
400
+ msgid "Visible, unchecked by default"
401
  msgstr ""
402
 
403
+ #: admin/partials/tabs/newsletter_settings.php:162
404
+ msgid "Hidden, unchecked by default"
 
405
  msgstr ""
406
 
407
+ #: admin/partials/tabs/newsletter_settings.php:166
408
+ msgid "Message for the opt-in checkbox"
 
409
  msgstr ""
410
 
411
+ #: admin/partials/tabs/newsletter_settings.php:167
412
+ msgid "The call-to-action text that prompts customers to subscribe to your newsletter at checkout."
413
  msgstr ""
414
 
415
+ #: admin/partials/tabs/newsletter_settings.php:171
416
+ msgid "HTML tags allowed: <a href=\"\" target=\"\" title=\"\"></a> and <br>"
 
417
  msgstr ""
418
 
419
+ #: admin/partials/tabs/newsletter_settings.php:171
420
+ msgid "Leave it blank to use language translation files (.po / .mo), translating the string: \"Subscribe to our newsletter\"."
421
  msgstr ""
422
 
423
+ #: admin/partials/tabs/newsletter_settings.php:175
424
+ msgid "Shop checkout preview"
425
  msgstr ""
426
 
427
+ #: admin/partials/tabs/newsletter_settings.php:176
428
+ msgid "The box below is a preview of your checkout page. Styles and fields may not be exact."
 
429
  msgstr ""
430
 
431
+ #: admin/partials/tabs/newsletter_settings.php:213
432
+ msgid "Advanced Opt-in Settings"
433
  msgstr ""
434
 
435
+ #: admin/partials/tabs/newsletter_settings.php:218
436
+ msgid "Opt-in checkbox position"
437
  msgstr ""
438
 
439
+ #. translators: %s - Woocommerce Actions documentation URL.
440
+ #: admin/partials/tabs/newsletter_settings.php:219
441
+ msgid "To change the position of the opt-in <br/>checkbox at checkout, input one of the <a href=%s target=_blank>available WooCommerce form actions</a>."
442
  msgstr ""
443
 
444
+ #: admin/partials/tabs/newsletter_settings.php:225
445
+ msgid "Enter a WooCommerce form action"
446
  msgstr ""
447
 
448
+ #: admin/partials/tabs/newsletter_settings.php:229
449
+ msgid "Subscriber Settings"
450
  msgstr ""
451
 
452
+ #: admin/partials/tabs/newsletter_settings.php:234
453
+ msgid "Tags"
454
  msgstr ""
455
 
456
+ #: admin/partials/tabs/newsletter_settings.php:235
457
+ msgid "Add a comma-separated list of tags to apply to a subscriber in Mailchimp after a transaction occurs"
458
  msgstr ""
459
 
460
+ #: admin/partials/tabs/newsletter_settings.php:244
461
+ msgid "Product Settings"
462
  msgstr ""
463
 
464
+ #: admin/partials/tabs/newsletter_settings.php:250
465
+ msgid "Product Image Size"
466
  msgstr ""
467
 
468
+ #: admin/partials/tabs/newsletter_settings.php:251
469
+ msgid "Define the product image size used by abandoned carts, order notifications, and product recommendations."
470
  msgstr ""
471
 
472
  #: admin/partials/tabs/logs.php:38
511
  msgstr ""
512
 
513
  #: admin/partials/tabs/notices.php:9
 
 
 
 
514
  msgid "Mailchimp says: You must select a marketing audience."
515
  msgstr ""
516
 
517
+ #: admin/partials/tabs/notices.php:12
518
  msgid "Mailchimp says: Sorry you must set up your store before you proceed!"
519
  msgstr ""
520
 
521
+ #: admin/partials/tabs/notices.php:15
522
  msgid "Mailchimp says: You are not fully ready to run the Store Sync, please verify your settings before proceeding."
523
  msgstr ""
524
 
525
+ #: admin/partials/tabs/notices.php:29
526
  msgid "Mailchimp says: Your re-sync has been started!"
527
  msgstr ""
528
 
529
+ #: admin/partials/tabs/store_sync.php:78
530
+ msgid "Account Connected"
 
 
531
  msgstr ""
532
 
533
+ #: admin/partials/tabs/store_sync.php:81
534
+ msgid "Audience Connected"
535
  msgstr ""
536
 
537
+ #: admin/partials/tabs/store_sync.php:92
538
+ msgid "Sync Status:"
539
  msgstr ""
540
 
541
+ #: admin/partials/tabs/store_sync.php:93
542
+ msgid "Completed"
 
543
  msgstr ""
544
 
545
+ #: admin/partials/tabs/store_sync.php:93
546
+ msgid "Running..."
547
  msgstr ""
548
 
549
+ #: admin/partials/tabs/store_sync.php:95
550
+ msgid "Initial sync in progress"
551
  msgstr ""
552
 
553
+ #: admin/partials/tabs/store_sync.php:99
554
+ msgid "Last Updated:"
555
  msgstr ""
556
 
557
+ #: admin/partials/tabs/store_sync.php:104
558
+ msgid "Starting..."
559
+ msgstr ""
560
+
561
+ #: admin/partials/tabs/store_sync.php:120
562
  msgid "Coupons"
563
  msgstr ""
564
 
565
+ #: admin/partials/tabs/store_sync.php:130
566
  msgid "Products"
567
  msgstr ""
568
 
569
+ #: admin/partials/tabs/store_sync.php:140
570
  msgid "Orders"
571
  msgstr ""
572
 
573
+ #: admin/partials/tabs/store_sync.php:156
574
  msgid "Subscribers"
575
  msgstr ""
576
 
577
+ #: admin/partials/tabs/store_sync.php:163
578
  msgid "Transactional"
579
  msgstr ""
580
 
581
+ #: admin/partials/tabs/store_sync.php:170
582
  msgid "Unsubscribed"
583
  msgstr ""
584
 
585
+ #: admin/partials/tabs/store_sync.php:183
586
+ msgid "More Information"
587
  msgstr ""
588
 
589
+ #. translators: %s - Plugin review URL.
590
+ #: admin/partials/tabs/store_sync.php:185
591
+ msgid "Is this plugin helping your e-commerce business? <a href=%s target=_blank>Please leave us a ★★★★★ review!</a>."
592
  msgstr ""
593
 
594
+ #. translators: Placeholders %1$s - plugin wiki CLI URL, %2$s - plugin wiki WP caching issues url
595
+ #: admin/partials/tabs/store_sync.php:186
596
+ msgid "Have a larger store or having issues syncing? Consider using <a href=%1$s target=_blank>WP-CLI</a> or browse documentation around common <a href=%2$s target=_blank>caching problems</a>."
597
+ msgstr ""
598
+
599
+ #. translators: Placeholders %1$s - plugin wiki CLI URL, %2$s - plugin wiki WP caching issues url
600
+ #: admin/partials/tabs/store_sync.php:187
601
+ msgid "Order and customer information will not sync if they contain an Amazon or generic email address."
602
  msgstr ""
603
 
604
+ #. translators: Placeholders %1$s - Mailchimp Support URL, %2$s - link element id, %3$s - popup element id
605
+ #: admin/partials/tabs/store_sync.php:188
606
+ msgid "Need help? Visit <a href=%1$s target=_blank>Mailchimp support</a> or <a id=%2$s href=%3$s>send us an email.</a> "
607
  msgstr ""
608
 
609
+ #. translators: %s - Mailchimp Privacy Policy URL.
610
+ #: admin/partials/tabs/store_sync.php:189
611
+ msgid "By using this plugin, Mailchimp will process customer information in accordance with their <a href=%s target=_blank>Privacy Policy</a>."
612
  msgstr ""
613
 
614
+ #: admin/partials/tabs/store_sync.php:195
615
+ msgid "Synchronization"
616
  msgstr ""
617
 
618
+ #: admin/partials/tabs/store_sync.php:198
619
+ msgid "You can safely resync your audience at any time without losing any of your e-commerce data."
620
  msgstr ""
621
 
622
+ #: admin/partials/tabs/store_sync.php:201
623
+ #: admin/partials/tabs/store_sync.php:203
624
+ msgid "Resync now"
625
  msgstr ""
626
 
627
+ #: admin/partials/tabs/store_sync.php:204
628
+ msgid "Sync is running. Please wait until it finishes."
629
  msgstr ""
630
 
631
+ #: admin/partials/tabs/store_sync.php:226
632
+ msgid "Send us a support ticket"
633
  msgstr ""
634
 
635
+ #: admin/partials/tabs/store_sync.php:227
636
+ msgid "The best way to get in touch with us is by submitting a ticket in the form below. </br> We do our best to get back to you within 48 hours. We look forward to hear from you!"
637
  msgstr ""
638
 
639
+ #: admin/partials/tabs/store_sync.php:241
640
+ msgid "First name"
641
  msgstr ""
642
 
643
+ #: admin/partials/tabs/store_sync.php:248
644
+ msgid "Last name"
645
  msgstr ""
646
 
647
+ #: admin/partials/tabs/store_sync.php:255
648
+ #: admin/partials/tabs/api_key.php:54
649
+ #: admin/partials/tabs/store_info.php:33
650
+ msgid "Email"
651
  msgstr ""
652
 
653
+ #: admin/partials/tabs/store_sync.php:269
654
+ msgid "Message"
655
  msgstr ""
656
 
657
+ #: admin/partials/tabs/store_sync.php:275
658
+ msgid "Send"
659
  msgstr ""
660
 
661
+ #: admin/partials/tabs/store_sync.php:280
662
+ #: admin/partials/tabs/api_key.php:74
663
+ msgid "Invalid Email. Please double check."
664
  msgstr ""
665
 
666
+ #: admin/partials/tabs/store_sync.php:281
667
+ msgid "Invalid First Name. Please double check."
 
668
  msgstr ""
669
 
670
+ #: admin/partials/tabs/store_sync.php:282
671
+ msgid "Invalid Last Name. Please double check."
 
672
  msgstr ""
673
 
674
+ #: admin/partials/tabs/store_sync.php:283
675
+ msgid "Invalid Subject. Please double check."
 
676
  msgstr ""
677
 
678
+ #: admin/partials/tabs/store_sync.php:284
679
+ msgid "Invalid Message. Please double check."
 
680
  msgstr ""
681
 
682
+ #: admin/partials/tabs/store_sync.php:285
683
+ msgid "Message sent..."
684
  msgstr ""
685
 
686
+ #: admin/partials/tabs/store_sync.php:286
687
+ msgid "Error: Message not sent..."
688
  msgstr ""
689
 
690
+ #: admin/partials/tabs/plugin_settings.php:12
691
+ msgid "Plugin Settings"
692
  msgstr ""
693
 
694
+ #: admin/partials/tabs/plugin_settings.php:17
695
+ msgid "Communication"
696
  msgstr ""
697
 
698
+ #. translators: Placeholders %1$s - admin email address
699
+ #: admin/partials/tabs/plugin_settings.php:23
700
+ msgid "Occasionally we may send you information about how-to's, updates, and other news to the store's admin email address. Choose whether or not you want to receive these messages at %1$s "
701
  msgstr ""
702
 
703
+ #: admin/partials/tabs/plugin_settings.php:33
704
+ msgid "Opt-in to our newsletter"
705
  msgstr ""
706
 
707
+ #: admin/partials/tabs/plugin_settings.php:45
708
+ #: admin/partials/tabs/plugin_settings.php:58
709
+ msgid "Disconnect Store"
710
  msgstr ""
711
 
712
+ #: admin/partials/tabs/plugin_settings.php:49
713
+ msgid "Disconnect your store from MailChimp. This action will remove all entries from the database but you will be able to reconnect anytime."
714
  msgstr ""
715
 
716
+ #: admin/partials/tabs/api_key.php:5
717
+ msgid "Connect your store to Mailchimp"
718
  msgstr ""
719
 
720
+ #: admin/partials/tabs/api_key.php:7
721
+ msgid "Reconnect account"
722
  msgstr ""
723
 
724
+ #: admin/partials/tabs/api_key.php:7
725
+ msgid "Connect account"
726
  msgstr ""
727
 
728
+ #: admin/partials/tabs/api_key.php:13
729
+ msgid "Already connected. You can reconnect with another Mailchimp account if you want."
730
  msgstr ""
731
 
732
+ #: admin/partials/tabs/api_key.php:15
733
+ msgid "Connecting. A new window will open with Mailchimp's OAuth service. Please log-in and we will take care of the rest."
 
734
  msgstr ""
735
 
736
+ #: admin/partials/tabs/api_key.php:16
737
+ msgid "Error, can't login."
738
  msgstr ""
739
 
740
+ #: admin/partials/tabs/api_key.php:17
741
+ msgid "Connection in progress"
 
 
742
  msgstr ""
743
 
744
+ #: admin/partials/tabs/api_key.php:18
745
+ msgid "Connected! Please wait while loading next step"
746
  msgstr ""
747
 
748
+ #: admin/partials/tabs/api_key.php:61
749
+ msgid "Username"
750
  msgstr ""
751
 
752
+ #: admin/partials/tabs/api_key.php:64
753
+ msgid "Suggested username: "
754
  msgstr ""
755
 
756
+ #: admin/partials/tabs/api_key.php:69
757
+ msgid "Next Step"
758
  msgstr ""
759
 
760
+ #: admin/partials/tabs/api_key.php:88
761
+ msgid "Address Line 1"
762
+ msgstr ""
763
+
764
+ #: admin/partials/tabs/api_key.php:95
765
+ msgid "Address Line 2"
766
+ msgstr ""
767
+
768
+ #: admin/partials/tabs/api_key.php:103
769
+ #: admin/partials/tabs/store_info.php:49
770
+ msgid "City"
771
+ msgstr ""
772
+
773
+ #: admin/partials/tabs/api_key.php:110
774
+ #: admin/partials/tabs/store_info.php:57
775
+ msgid "State"
776
+ msgstr ""
777
+
778
+ #: admin/partials/tabs/api_key.php:117
779
+ msgid "Zip"
780
+ msgstr ""
781
+
782
+ #: admin/partials/tabs/api_key.php:124
783
+ #: admin/partials/tabs/store_info.php:73
784
+ msgid "Country"
785
+ msgstr ""
786
+
787
+ #: admin/partials/tabs/api_key.php:149
788
+ msgid "Phone"
789
+ msgstr ""
790
+
791
+ #: admin/partials/tabs/api_key.php:156
792
+ msgid "Timezone"
793
+ msgstr ""
794
+
795
+ #. translators: %s - Mailchimp legal pages
796
+ #: admin/partials/tabs/api_key.php:182
797
+ msgid "By clicking the \"Get Started!\" button, you are creating a Mailchimp account, and you agree to Mailchimp's <a href=%1$s target=_blank>Terms of Use</a> and <a href=%2$s target=_blank>Privacy Policy</a>."
798
+ msgstr ""
799
+
800
+ #: admin/partials/tabs/api_key.php:188
801
+ msgid "Go Back"
802
+ msgstr ""
803
+
804
+ #: admin/partials/tabs/api_key.php:192
805
+ msgid "Get Started!"
806
+ msgstr ""
807
+
808
+ #: admin/partials/tabs/api_key.php:197
809
+ msgid "Invalid Address"
810
+ msgstr ""
811
+
812
+ #: admin/partials/tabs/api_key.php:198
813
+ msgid "Invalid City"
814
+ msgstr ""
815
+
816
+ #: admin/partials/tabs/api_key.php:199
817
+ msgid "Invalid State"
818
+ msgstr ""
819
+
820
+ #: admin/partials/tabs/api_key.php:200
821
+ msgid "Invalid Zip"
822
+ msgstr ""
823
+
824
+ #: admin/partials/tabs/api_key.php:201
825
+ msgid "Invalid Country"
826
+ msgstr ""
827
+
828
+ #: admin/partials/tabs/api_key.php:202
829
+ msgid "Invalid Phone"
830
+ msgstr ""
831
+
832
+ #: admin/partials/tabs/api_key.php:203
833
+ msgid "Invalid Timezone"
834
+ msgstr ""
835
+
836
+ #: admin/partials/tabs/api_key.php:204
837
+ msgid "Connecting..."
838
  msgstr ""
839
 
840
  #: admin/partials/tabs/store_info.php:21
 
 
841
  msgid "Store Settings"
842
  msgstr ""
843
 
863
 
864
  #. translators: %1$s - The Currency name and format (ex: USD | US Dollar) %2$s - Timezone name or offset (ex: America/New_York or UTC-4:00) %3$s and %5$s- <a> tag open %4$s - </a> tag close
865
  #: admin/partials/tabs/store_info.php:116
866
+ msgid "We've detected that your WooCommerce store's currency is <b>%1$s</b> (%3$schange%4$s), and the WordPress timezone is <b>%2$s</b> (%5$schange%4$s)."
867
  msgstr ""
868
 
869
  #: admin/partials/tabs/store_info.php:130
878
  msgid "Select store's locale"
879
  msgstr ""
880
 
881
+ #: admin/partials/tabs/store_info.php:157
882
+ msgid "Permission Settings"
883
  msgstr ""
884
 
885
+ #: admin/partials/tabs/store_info.php:162
886
  msgid "Plugin Permission Level"
887
  msgstr ""
888
 
889
+ #: admin/partials/tabs/store_info.php:163
890
  msgid "Select the minimum permission capability to manage Mailchimp for Woocommerce options"
891
  msgstr ""
892
 
893
+ #: admin/partials/tabs/store_info.php:170
894
  msgid "Administrators Only"
895
  msgstr ""
896
 
897
+ #: admin/partials/tabs/store_info.php:173
898
  msgid "Shop Managers and Administrators"
899
  msgstr ""
900
 
901
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:92
902
+ msgid "Add Mailchimp for WooCommerce"
903
  msgstr ""
904
 
905
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:93
906
+ msgid "Build custom segments, send automations, and track purchase <br/>activity in Mailchimp. Login to authorize an account connection."
907
  msgstr ""
908
 
909
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:98
910
+ msgid "Add WooCommerce store settings"
911
+ msgstr ""
912
+
913
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:99
914
+ msgid "Please provide a bit of information about your WooCommerce <br/> store and location."
915
+ msgstr ""
916
+
917
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:104
918
+ msgid "Add WooCommerce audience settings"
919
+ msgstr ""
920
+
921
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:106
922
+ msgid "Please provide a bit of information about your WooCommerce <br/> campaign and messaging settings."
923
  msgstr ""
924
 
925
  #: admin/partials/mailchimp-woocommerce-admin-tabs.php:107
926
+ msgid "If you don’t have an audience, <br/> you can choose to create one"
927
+ msgstr ""
928
+
929
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:135
930
+ msgid "Next step"
931
+ msgstr ""
932
+
933
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:136
934
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:141
935
+ msgid "Back"
936
+ msgstr ""
937
+
938
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:140
939
+ msgid "Start sync"
940
+ msgstr ""
941
+
942
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:167
943
+ msgid "Add Mailchimp for WooCommerce to build custom segments, send automations, and track purchase activity in Mailchimp"
944
+ msgstr ""
945
+
946
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:172
947
+ msgid "WooCommerce store and location"
948
  msgstr ""
949
 
950
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:174
951
+ msgid "Please provide a bit of information about your WooCommerce store"
952
  msgstr ""
953
 
954
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:179
955
+ msgid "Campaign and messaging settings"
956
  msgstr ""
957
 
958
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:183
959
+ msgid "Please apply your audience settings."
960
+ msgstr ""
961
+
962
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:186
963
  msgid "Please apply your audience settings. "
964
  msgstr ""
965
 
966
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:187
967
+ msgid "If you don’t have an audience, you can choose to create one"
968
  msgstr ""
969
 
970
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:193
971
+ msgid "Success! You are connected to Mailchimp"
972
  msgstr ""
973
 
974
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:196
975
+ msgid "Your WooCommerce store is syncing to Mailchimp"
976
  msgstr ""
977
 
978
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:204
979
+ msgid "Log events from the Mailchimp plugin"
980
  msgstr ""
981
 
982
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:208
983
+ msgid "Connection settings"
984
+ msgstr ""
985
+
986
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:215
987
+ msgid "Connect"
988
+ msgstr ""
989
+
990
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:217
991
  msgid "Overview"
992
  msgstr ""
993
 
994
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:218
995
+ msgid "Store"
996
+ msgstr ""
997
+
998
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:221
999
+ msgid "Audience"
1000
+ msgstr ""
1001
+
1002
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:223
1003
  msgid "Logs"
1004
  msgstr ""
1005
 
1006
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:224
1007
+ msgid "Settings"
1008
+ msgstr ""
1009
+
1010
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:243
1011
+ msgid "Mailchimp says: Please upgrade your PHP version to a minimum of 7.0"
1012
+ msgstr ""
1013
+
1014
+ #: admin/partials/mailchimp-woocommerce-admin-tabs.php:249
1015
+ msgid "Mailchimp says: API Request Error - "
1016
  msgstr ""
1017
 
1018
  #: bootstrap.php:240
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: Connects WooCommerce to Mailchimp to sync your store data, send targeted campaigns to your customers, and sell more stuff.
19
- * Version: 2.4.7
20
  * Author: Mailchimp
21
  * Author URI: https://mailchimp.com
22
  * License: GPL-2.0+
@@ -24,9 +24,9 @@
24
  * Text Domain: mailchimp-for-woocommerce
25
  * Domain Path: /languages
26
  * Requires at least: 4.9
27
- * Tested up to: 5.5
28
  * WC requires at least: 3.5
29
- * WC tested up to: 4.4
30
  */
31
 
32
  // If this file is called directly, abort.
16
  * Plugin Name: Mailchimp for WooCommerce
17
  * Plugin URI: https://mailchimp.com/connect-your-store/
18
  * Description: Connects WooCommerce to Mailchimp to sync your store data, send targeted campaigns to your customers, and sell more stuff.
19
+ * Version: 2.5.0
20
  * Author: Mailchimp
21
  * Author URI: https://mailchimp.com
22
  * License: GPL-2.0+
24
  * Text Domain: mailchimp-for-woocommerce
25
  * Domain Path: /languages
26
  * Requires at least: 4.9
27
+ * Tested up to: 5.6
28
  * WC requires at least: 3.5
29
+ * WC tested up to: 4.8
30
  */
31
 
32
  // If this file is called directly, abort.