Import Export WordPress Users and WooCommerce Customers - Version 1.2.6

Version Description

  • Bug Fix:- Cannot insert user without e-mail.
Download this release

Release Info

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

Code changes from version 1.2.5 to 1.2.6

includes/importer/class-wf-customerimpexpcsv-customer-import.php CHANGED
@@ -134,6 +134,11 @@ class WF_CustomerImpExpCsv_Customer_Import extends WP_Importer {
134
  $file = str_replace("\\", "/", $file);
135
 
136
  if ($file) {
 
 
 
 
 
137
  ?>
138
  <table id="import-progress" class="widefat_importer widefat">
139
  <thead>
@@ -843,5 +848,22 @@ class WF_CustomerImpExpCsv_Customer_Import extends WP_Importer {
843
  }
844
  return $ret;
845
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
846
 
847
  }
134
  $file = str_replace("\\", "/", $file);
135
 
136
  if ($file) {
137
+ $file_delimiter = $this->detectDelimiter($file);
138
+ if(!empty($file_delimiter) && ($file_delimiter != $this->delimiter)){
139
+ echo '<p class="error"><strong>' . __("Basic version supports only ',' as delimiter. Your file's delimiter seems to be unsupported.", 'users-customers-import-export-for-wp-woocommerce') . '</strong></p>';
140
+ break;
141
+ }
142
  ?>
143
  <table id="import-progress" class="widefat_importer widefat">
144
  <thead>
848
  }
849
  return $ret;
850
  }
851
+
852
+ public function detectDelimiter($csvFile) {
853
+ $delimiters = array(
854
+ ';' => 0,
855
+ ',' => 0,
856
+ "\t" => 0,
857
+ "|" => 0
858
+ );
859
+
860
+ $handle = fopen($csvFile, "r");
861
+ $firstLine = fgets($handle);
862
+ fclose($handle);
863
+ foreach ($delimiters as $delimiter => &$count) {
864
+ $count = count(str_getcsv($firstLine, $delimiter));
865
+ }
866
+ return array_search(max($delimiters), $delimiters);
867
+ }
868
 
869
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.1.1
7
- Stable tag: 1.2.5
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -22,7 +22,7 @@ Import users and export users made fast and simple! Import Export WordPress User
22
  &#128312; Tested OK with WooCommerce 3.5.7
23
  &#128312; Tested OK with PHP 7.3.3
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 deatils.
26
 
27
  = How does it work? =
28
 
@@ -149,6 +149,8 @@ No. You may want to use https://wordpress.org/plugins/order-import-export-for-wo
149
 
150
  == Changelog ==
151
 
 
 
152
  = 1.2.5 =
153
  * Minor UI change.
154
  * Tested OK with WC 3.5.7
@@ -215,7 +217,5 @@ No. You may want to use https://wordpress.org/plugins/order-import-export-for-wo
215
 
216
  == Upgrade Notice ==
217
 
218
- = 1.2.5 =
219
- * Minor UI change.
220
- * Tested OK with WC 3.5.7
221
- * Tested OK with PHP 7.3.3
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.1.1
7
+ Stable tag: 1.2.6
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
22
  &#128312; Tested OK with WooCommerce 3.5.7
23
  &#128312; Tested OK with PHP 7.3.3
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.
26
 
27
  = How does it work? =
28
 
149
 
150
  == Changelog ==
151
 
152
+ = 1.2.6 =
153
+ * Bug Fix:- Cannot insert user without e-mail.
154
  = 1.2.5 =
155
  * Minor UI change.
156
  * Tested OK with WC 3.5.7
217
 
218
  == Upgrade Notice ==
219
 
220
+ = 1.2.6 =
221
+ * Bug Fix:- Cannot insert user without e-mail.
 
 
users-customers-import-export-for-wp-woocommerce.php CHANGED
@@ -6,7 +6,7 @@
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.5
10
  WC tested up to: 3.5.7
11
  Text Domain: users-customers-import-export-for-wp-woocommerce
12
  License: GPLv3
@@ -23,7 +23,7 @@ if (!defined('ABSPATH') || !is_admin()) {
23
  function wf_wordpress_user_import_export_premium_check(){
24
  if ( is_plugin_active('customer-import-export-for-woocommerce/customer-import-export.php') ){
25
  deactivate_plugins( basename( __FILE__ ) );
26
- wp_die(__("You already have the Premium version installed. For any issues, kindly contact our <a target='_blank' href='https://www.webtoffee.com/support/'>support</a>.", "wf_customer_import_export"), "", array('back_link' => 1 ));
27
  }
28
  }
29
  register_activation_hook( __FILE__, 'wf_wordpress_user_import_export_premium_check' );
@@ -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.5");
40
  }
41
 
42
 
@@ -183,7 +183,7 @@ if (!class_exists('WF_Customer_Import_Export_CSV')) :
183
  $notice .= __('<h3>Use StoreFrog Migration Services.</h3>', 'users-customers-import-export-for-wp-woocommerce');
184
 
185
  $content = '<style>.webtoffee-storefrog-nav-tab.updated {z-index:2; display: flex;align-items: center;margin: 18px 20px 10px 0;padding:23px;border-left-color: #2c85d7!important}.webtoffee-storefrog-nav-tab ul {margin: 0;}.webtoffee-storefrog-nav-tab h3 {margin-top: 0;margin-bottom: 9px;font-weight: 500;font-size: 16px;color: #2880d3;}.webtoffee-storefrog-nav-tab h3:last-child {margin-bottom: 0;}.webtoffee-storefrog-banner {flex-basis: 20%;padding: 0 15px;margin-left: auto;} .webtoffee-storefrog-banner a:focus{box-shadow: none;}</style>';
186
- $content .= '<div class="updated woocommerce-message webtoffee-storefrog-nav-tab notice is-dismissible"><ul>' . $notice . '</ul><div class="webtoffee-storefrog-banner"><a href="http://www.storefrog.com/" target="_blank"> <img src="' . plugins_url(basename(plugin_dir_path(WF_CustomerImpExpCsv_FILE))) . '/images/storefrog.png"/></a></div><div style="position: absolute;top: 0;right: 1px;z-index: 10000;" ><button type="button" id="webtoffee-storefrog-notice-dismiss" class="notice-dismiss"><span class="screen-reader-text">' . __('Dismiss this notice.', 'wf_order_import_export') . '</span></button></div></div>';
187
  echo $content;
188
 
189
 
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.6
10
  WC tested up to: 3.5.7
11
  Text Domain: users-customers-import-export-for-wp-woocommerce
12
  License: GPLv3
23
  function wf_wordpress_user_import_export_premium_check(){
24
  if ( is_plugin_active('customer-import-export-for-woocommerce/customer-import-export.php') ){
25
  deactivate_plugins( basename( __FILE__ ) );
26
+ wp_die(__("You already have the Premium version installed. For any issues, kindly contact our <a target='_blank' href='https://www.webtoffee.com/support/'>support</a>.", "users-customers-import-export-for-wp-woocommerce"), "", array('back_link' => 1 ));
27
  }
28
  }
29
  register_activation_hook( __FILE__, 'wf_wordpress_user_import_export_premium_check' );
36
 
37
  if( !defined('WF_CUSTOMER_IMP_EXP_VERSION') )
38
  {
39
+ define("WF_CUSTOMER_IMP_EXP_VERSION", "1.2.6");
40
  }
41
 
42
 
183
  $notice .= __('<h3>Use StoreFrog Migration Services.</h3>', 'users-customers-import-export-for-wp-woocommerce');
184
 
185
  $content = '<style>.webtoffee-storefrog-nav-tab.updated {z-index:2; display: flex;align-items: center;margin: 18px 20px 10px 0;padding:23px;border-left-color: #2c85d7!important}.webtoffee-storefrog-nav-tab ul {margin: 0;}.webtoffee-storefrog-nav-tab h3 {margin-top: 0;margin-bottom: 9px;font-weight: 500;font-size: 16px;color: #2880d3;}.webtoffee-storefrog-nav-tab h3:last-child {margin-bottom: 0;}.webtoffee-storefrog-banner {flex-basis: 20%;padding: 0 15px;margin-left: auto;} .webtoffee-storefrog-banner a:focus{box-shadow: none;}</style>';
186
+ $content .= '<div class="updated woocommerce-message webtoffee-storefrog-nav-tab notice is-dismissible"><ul>' . $notice . '</ul><div class="webtoffee-storefrog-banner"><a href="http://www.storefrog.com/" target="_blank"> <img src="' . plugins_url(basename(plugin_dir_path(WF_CustomerImpExpCsv_FILE))) . '/images/storefrog.png"/></a></div><div style="position: absolute;top: 0;right: 1px;z-index: 10000;" ><button type="button" id="webtoffee-storefrog-notice-dismiss" class="notice-dismiss"><span class="screen-reader-text">' . __('Dismiss this notice.', 'users-customers-import-export-for-wp-woocommerce') . '</span></button></div></div>';
187
  echo $content;
188
 
189