Import Export WordPress Users and WooCommerce Customers - Version 1.3.0

Version Description

  • Bug fixes.
  • Tested OK with WC 3.6.5 and WP 5.2.2
Download this release

Release Info

Developer webtoffee
Plugin Icon 128x128 Import Export WordPress Users and WooCommerce Customers
Version 1.3.0
Comparing to
See all releases

Code changes from version 1.2.9 to 1.3.0

images/csv.png ADDED
Binary file
images/setup.png ADDED
Binary file
includes/exporter/class-wf-customerimpexpcsv-exporter.php CHANGED
@@ -57,6 +57,8 @@ class WF_CustomerImpExpCsv_Exporter {
57
  fwrite($fp, implode($delimiter, $row) . "\n");
58
  unset($row);
59
 
 
 
60
  // Loop users
61
  foreach ($users as $user) {
62
  //$row = array();
57
  fwrite($fp, implode($delimiter, $row) . "\n");
58
  unset($row);
59
 
60
+ ini_set('max_execution_time', -1);
61
+ ini_set('memory_limit', -1);
62
  // Loop users
63
  foreach ($users as $user) {
64
  //$row = array();
includes/importer/views/html-wf-import-greeting.php CHANGED
@@ -24,8 +24,8 @@
24
  <td>
25
  <input type="file" id="upload" name="import" size="25" />
26
  <input type="hidden" name="action" value="save" />
27
- <input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
28
- <small><?php printf(__('Maximum size: %s'), $size); ?></small>
29
  </td>
30
  </tr>
31
  </tbody>
24
  <td>
25
  <input type="file" id="upload" name="import" size="25" />
26
  <input type="hidden" name="action" value="save" />
27
+ <input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" /><br>
28
+ <small><?php _e('Please upload UTF-8 encoded CSV', 'users-customers-import-export-for-wp-woocommerce'); ?> &nbsp; -- &nbsp; <?php printf(__('Maximum size: %s', 'users-customers-import-export-for-wp-woocommerce'), $size); ?></small>
29
  </td>
30
  </tr>
31
  </tbody>
includes/views/html-wf-help-guide.php CHANGED
@@ -8,45 +8,51 @@ if ( ! defined( 'ABSPATH' ) ) {
8
  display: flex;
9
  }
10
  .help-guide .inner-panel {
11
- padding: 40px;
12
  background-color: #FFF;
13
  margin: 15px 10px;
14
  box-shadow: 1px 1px 5px 1px rgba(0,0,0,.1);
15
  text-align: center;
 
16
  }
17
  .help-guide .inner-panel p{
18
  margin-bottom: 20px;
19
  }
20
  .help-guide .inner-panel img{
21
- margin:30px 15px 0;
 
 
22
  }
23
-
24
  </style>
25
  <div class="pipe-main-box">
26
  <div class="tool-box bg-white p-20p pipe-view">
27
  <div id="tab-help" class="coltwo-col panel help-guide">
28
  <div class="cols">
29
  <div class="inner-panel" style="">
30
- <img src="<?php echo plugins_url(basename(plugin_dir_path(WF_CustomerImpExpCsv_FILE))) . '/images/video.png'; ?>"/>
31
  <h3><?php _e('How-to-setup', 'users-customers-import-export-for-wp-woocommerce'); ?></h3>
32
- <p style=""><?php _e('Get to know about our produt in 3 minutes with this video', 'users-customers-import-export-for-wp-woocommerce'); ?></p>
33
- <a href="https://www.webtoffee.com/setting-wordpress-users-woocommerce-customers-import-export-plugin/" target="_blank" class="button button-primary">
34
- <?php _e('Setup Guide', 'users-customers-import-export-for-wp-woocommerce'); ?></a>
35
  </div>
36
-
37
  <div class="inner-panel" style="">
38
  <img src="<?php echo plugins_url(basename(plugin_dir_path(WF_CustomerImpExpCsv_FILE))) . '/images/documentation.png'; ?>"/>
39
  <h3><?php _e('Documentation', 'users-customers-import-export-for-wp-woocommerce'); ?></h3>
40
- <p style=""><?php _e('Refer to our documentation to set and get started', 'users-customers-import-export-for-wp-woocommerce'); ?></p>
41
- <a target="_blank" href="https://www.webtoffee.com/category/documentation/wordpress-users-woocommerce-customers-import-export/" class="button-primary"><?php _e('Documentation', 'users-customers-import-export-for-wp-woocommerce'); ?></a>
42
  </div>
43
-
 
44
  <div class="inner-panel" style="">
45
  <img src="<?php echo plugins_url(basename(plugin_dir_path(WF_CustomerImpExpCsv_FILE))) . '/images/support.png'; ?>"/>
46
  <h3><?php _e('Support', 'users-customers-import-export-for-wp-woocommerce'); ?></h3>
47
  <p style=""><?php _e('We would love to help you on any queries or issues.', 'users-customers-import-export-for-wp-woocommerce'); ?></p>
48
- <a href="https://www.webtoffee.com/support/" target="_blank" class="button button-primary">
49
- <?php _e('Contact Us', 'users-customers-import-export-for-wp-woocommerce'); ?></a>
 
 
 
 
 
50
  </div>
51
  </div>
52
  </div>
8
  display: flex;
9
  }
10
  .help-guide .inner-panel {
11
+ padding: 10px 11px 20px 11px;
12
  background-color: #FFF;
13
  margin: 15px 10px;
14
  box-shadow: 1px 1px 5px 1px rgba(0,0,0,.1);
15
  text-align: center;
16
+ width: 50%;
17
  }
18
  .help-guide .inner-panel p{
19
  margin-bottom: 20px;
20
  }
21
  .help-guide .inner-panel img{
22
+ margin:12px 15px 0;
23
+ height: 90px;
24
+ width: 90px;
25
  }
 
26
  </style>
27
  <div class="pipe-main-box">
28
  <div class="tool-box bg-white p-20p pipe-view">
29
  <div id="tab-help" class="coltwo-col panel help-guide">
30
  <div class="cols">
31
  <div class="inner-panel" style="">
32
+ <img src="<?php echo plugins_url(basename(plugin_dir_path(WF_CustomerImpExpCsv_FILE))) . '/images/setup.png'; ?>"/>
33
  <h3><?php _e('How-to-setup', 'users-customers-import-export-for-wp-woocommerce'); ?></h3>
34
+ <p style=""><?php _e('Read the set-up guide to get started with the plugin', 'users-customers-import-export-for-wp-woocommerce'); ?></p>
35
+ <a href="https://www.webtoffee.com/setting-wordpress-users-woocommerce-customers-import-export-plugin/" target="_blank" class="button button-primary"><?php _e('Setup Guide', 'users-customers-import-export-for-wp-woocommerce'); ?></a>
 
36
  </div>
 
37
  <div class="inner-panel" style="">
38
  <img src="<?php echo plugins_url(basename(plugin_dir_path(WF_CustomerImpExpCsv_FILE))) . '/images/documentation.png'; ?>"/>
39
  <h3><?php _e('Documentation', 'users-customers-import-export-for-wp-woocommerce'); ?></h3>
40
+ <p style=""><?php _e('Troubleshoot any issues with our extensive documentation', 'users-customers-import-export-for-wp-woocommerce'); ?></p>
41
+ <a target="_blank" href="https://www.webtoffee.com/category/documentation/wordpress-users-woocommerce-customers-import-export/" class="button button-primary"><?php _e('Documentation', 'users-customers-import-export-for-wp-woocommerce'); ?></a>
42
  </div>
43
+ </div>
44
+ <div class="cols">
45
  <div class="inner-panel" style="">
46
  <img src="<?php echo plugins_url(basename(plugin_dir_path(WF_CustomerImpExpCsv_FILE))) . '/images/support.png'; ?>"/>
47
  <h3><?php _e('Support', 'users-customers-import-export-for-wp-woocommerce'); ?></h3>
48
  <p style=""><?php _e('We would love to help you on any queries or issues.', 'users-customers-import-export-for-wp-woocommerce'); ?></p>
49
+ <a href="https://www.webtoffee.com/support/" target="_blank" class="button button-primary"><?php _e('Contact Us', 'users-customers-import-export-for-wp-woocommerce'); ?></a>
50
+ </div>
51
+ <div class="inner-panel" style="">
52
+ <img src="<?php echo plugins_url(basename(plugin_dir_path(WF_CustomerImpExpCsv_FILE))) . '/images/csv.png'; ?>"/>
53
+ <h3><?php _e('Sample-CSV', 'users-customers-import-export-for-wp-woocommerce'); ?></h3>
54
+ <p style=""><?php _e('Familiarize yourself with the CSV format.', 'users-customers-import-export-for-wp-woocommerce'); ?></p>
55
+ <a href="<?php echo plugins_url('Sample_Users.csv', WF_CustomerImpExpCsv_FILE); ?>" class="button button-primary"><?php _e('Get Sample CSV', 'users-customers-import-export-for-wp-woocommerce'); ?></a>
56
  </div>
57
  </div>
58
  </div>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: webtoffee
3
  Donate link: https://www.webtoffee.com/plugins/
4
  Tags: Export Users to CSV, Import Users from CSV, woocommerce export customers, user export, export import users, woocommerce import customers, woocommerce export customer email
5
  Requires at least: 3.0.1
6
- Tested up to: 5.2.1
7
- Stable tag: 1.2.9
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -19,7 +19,7 @@ Import users and export users made fast and simple! Import Export WordPress User
19
 
20
  &#128312; Users Export - Export Users to CSV file.</li>
21
  &#128312; Users import - Import Users from CSV format to WordPress/WooCommerce Store.
22
- &#128312; Tested OK with WooCommerce 3.6.3
23
  &#128312; Tested OK with PHP 7.3.5
24
 
25
  Highlights: WordPress Users Export, WordPress Users CSV Import Suite, Export WordPress Users to CSV. Pro Version supports export and import of all additional user meta like WooCommerce details.
@@ -137,6 +137,9 @@ Yes. This plugin will export users with passwords
137
 
138
  No. You may want to use https://wordpress.org/plugins/order-import-export-for-woocommerce/ for this
139
 
 
 
 
140
 
141
 
142
  == Screenshots ==
@@ -149,6 +152,9 @@ No. You may want to use https://wordpress.org/plugins/order-import-export-for-wo
149
 
150
  == Changelog ==
151
 
 
 
 
152
  = 1.2.9 =
153
  * Tested OK with WC 3.6.3 and WP 5.2.1
154
  = 1.2.8 =
@@ -223,5 +229,6 @@ No. You may want to use https://wordpress.org/plugins/order-import-export-for-wo
223
 
224
  == Upgrade Notice ==
225
 
226
- = 1.2.9 =
227
- * Tested OK with WC 3.6.3 and WP 5.2.1
 
3
  Donate link: https://www.webtoffee.com/plugins/
4
  Tags: Export Users to CSV, Import Users from CSV, woocommerce export customers, user export, export import users, woocommerce import customers, woocommerce export customer email
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.2.2
7
+ Stable tag: 1.3.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
19
 
20
  &#128312; Users Export - Export Users to CSV file.</li>
21
  &#128312; Users import - Import Users from CSV format to WordPress/WooCommerce Store.
22
+ &#128312; Tested OK with WooCommerce 3.6.5
23
  &#128312; Tested OK with PHP 7.3.5
24
 
25
  Highlights: WordPress Users Export, WordPress Users CSV Import Suite, Export WordPress Users to CSV. Pro Version supports export and import of all additional user meta like WooCommerce details.
137
 
138
  No. You may want to use https://wordpress.org/plugins/order-import-export-for-woocommerce/ for this
139
 
140
+ = Are you redirected to dashboard or login page while exporting? =
141
+
142
+ By default, admin and store manager are given access to export users. Please visit <a rel="nofollow" href="https://www.webtoffee.com/how-to-export-items-from-your-site-without-user-role-restriction/">How to export users without user role restriction</a> for more details
143
 
144
 
145
  == Screenshots ==
152
 
153
  == Changelog ==
154
 
155
+ = 1.3.0 =
156
+ * Bug fixes.
157
+ * Tested OK with WC 3.6.5 and WP 5.2.2
158
  = 1.2.9 =
159
  * Tested OK with WC 3.6.3 and WP 5.2.1
160
  = 1.2.8 =
229
 
230
  == Upgrade Notice ==
231
 
232
+ = 1.3.0 =
233
+ * Bug fixes.
234
+ * Tested OK with WC 3.6.5 and WP 5.2.2
users-customers-import-export-for-wp-woocommerce.php CHANGED
@@ -6,8 +6,8 @@
6
  Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
7
  Author: WebToffee
8
  Author URI: https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/
9
- Version: 1.2.9
10
- WC tested up to: 3.6.3
11
  Text Domain: users-customers-import-export-for-wp-woocommerce
12
  License: GPLv3
13
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -36,7 +36,7 @@ if( !defined('WF_CUSTOMER_IMP_EXP_ID') )
36
 
37
  if( !defined('WF_CUSTOMER_IMP_EXP_VERSION') )
38
  {
39
- define("WF_CUSTOMER_IMP_EXP_VERSION", "1.2.9");
40
  }
41
 
42
 
@@ -130,12 +130,20 @@ if (!class_exists('WF_Customer_Import_Export_CSV')) :
130
  include_once( 'includes/exporter/class-wf-customerimpexpcsv-exporter.php' );
131
  WF_CustomerImpExpCsv_Exporter::do_export();
132
  } else {
133
- wp_redirect(wp_login_url());
 
 
 
 
134
  }
135
  break;
136
  }
137
  }
138
  }
 
 
 
 
139
 
140
  public function catch_save_settings() {
141
  if (!empty($_GET['action']) && !empty($_GET['page']) && $_GET['page'] == 'hf_wordpress_customer_im_ex') {
6
  Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
7
  Author: WebToffee
8
  Author URI: https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/
9
+ Version: 1.3.0
10
+ WC tested up to: 3.6.5
11
  Text Domain: users-customers-import-export-for-wp-woocommerce
12
  License: GPLv3
13
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
36
 
37
  if( !defined('WF_CUSTOMER_IMP_EXP_VERSION') )
38
  {
39
+ define("WF_CUSTOMER_IMP_EXP_VERSION", "1.3.0");
40
  }
41
 
42
 
130
  include_once( 'includes/exporter/class-wf-customerimpexpcsv-exporter.php' );
131
  WF_CustomerImpExpCsv_Exporter::do_export();
132
  } else {
133
+ if (is_admin()) {
134
+ add_action('admin_notices', array($this, 'wf_user_permission_ie_admin_notice'));
135
+ } else {
136
+ wp_redirect(wp_login_url());
137
+ }
138
  }
139
  break;
140
  }
141
  }
142
  }
143
+
144
+ public function wf_user_permission_ie_admin_notice(){
145
+ echo '<div class="notice notice-error"><p>' . __('By default, admin and store manager are given access to export users. Please visit <a href="https://www.webtoffee.com/how-to-export-items-from-your-site-without-user-role-restriction/" target="_blank">here</a> for more details', 'users-customers-import-export-for-wp-woocommerce') . '</p></div>';
146
+ }
147
 
148
  public function catch_save_settings() {
149
  if (!empty($_GET['action']) && !empty($_GET['page']) && $_GET['page'] == 'hf_wordpress_customer_im_ex') {