Import Export WordPress Users and WooCommerce Customers - Version 2.0.1

Version Description

  • Fix: Browser popup blocker issue.
  • Tested OK with WC 4.6.1.
Download this release

Release Info

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

Code changes from version 2.0.0 to 2.0.1

admin/class-wt-import-export-for-woo-admin.php CHANGED
@@ -133,37 +133,47 @@ class Wt_Import_Export_For_Woo_Admin_Basic {
133
  *
134
  * @since 1.0.0
135
  */
136
- public function admin_menu()
137
  {
138
  $menus=array(
139
  'general-settings'=>array(
140
  'menu',
141
  __('General Settings'),
142
- __('WebToffee Import Export (Basic)'),
143
  'manage_options',
144
  WT_IEW_PLUGIN_ID_BASIC,
145
  array($this,'admin_settings_page'),
146
  'dashicons-controls-repeat',
147
  56
148
- ),
149
- 'general-settings-sub'=>array(
150
- 'submenu',
151
- WT_IEW_PLUGIN_ID_BASIC,
152
- __('General Settings'),
153
- __('General Settings'),
154
- "manage_options",
155
- WT_IEW_PLUGIN_ID_BASIC,
156
- array($this, 'admin_settings_page')
157
  )
158
  );
159
  $menus=apply_filters('wt_iew_admin_menu_basic',$menus);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  if(count($menus)>0)
161
  {
162
  foreach($menus as $menu)
163
  {
164
  if($menu[0]=='submenu')
165
  {
166
- add_submenu_page($menu[1],$menu[2],$menu[3],$menu[4],$menu[5],$menu[6]);
 
167
  }else
168
  {
169
  add_menu_page($menu[1],$menu[2],$menu[3],$menu[4],$menu[5],$menu[6],$menu[7]);
@@ -171,9 +181,20 @@ class Wt_Import_Export_For_Woo_Admin_Basic {
171
  }
172
  }
173
  if(function_exists('remove_submenu_page')){
174
- //remove_submenu_page(WT_PIEW_POST_TYPE,WT_PIEW_POST_TYPE);
175
  }
176
  }
 
 
 
 
 
 
 
 
 
 
 
177
 
178
  public function admin_settings_page()
179
  {
133
  *
134
  * @since 1.0.0
135
  */
136
+ public function admin_menu()
137
  {
138
  $menus=array(
139
  'general-settings'=>array(
140
  'menu',
141
  __('General Settings'),
142
+ __('General Settings'),
143
  'manage_options',
144
  WT_IEW_PLUGIN_ID_BASIC,
145
  array($this,'admin_settings_page'),
146
  'dashicons-controls-repeat',
147
  56
 
 
 
 
 
 
 
 
 
148
  )
149
  );
150
  $menus=apply_filters('wt_iew_admin_menu_basic',$menus);
151
+
152
+ $menu_order=array("export","export-sub","import","history","history_log");
153
+ $this->wt_menu_order_changer($menus,$menu_order);
154
+
155
+ $main_menu = reset($menus); //main menu must be first one
156
+
157
+ $parent_menu_key=$main_menu ? $main_menu[4] : WT_IEW_PLUGIN_ID_BASIC;
158
+
159
+ /* adding general settings menu */
160
+ $menus['general-settings-sub']=array(
161
+ 'submenu',
162
+ $parent_menu_key,
163
+ __('General Settings'),
164
+ __('General Settings'),
165
+ "manage_options",
166
+ WT_IEW_PLUGIN_ID_BASIC,
167
+ array($this, 'admin_settings_page')
168
+ );
169
  if(count($menus)>0)
170
  {
171
  foreach($menus as $menu)
172
  {
173
  if($menu[0]=='submenu')
174
  {
175
+ /* currently we are only allowing one parent menu */
176
+ add_submenu_page($parent_menu_key,$menu[2],$menu[3],$menu[4],$menu[5],$menu[6]);
177
  }else
178
  {
179
  add_menu_page($menu[1],$menu[2],$menu[3],$menu[4],$menu[5],$menu[6],$menu[7]);
181
  }
182
  }
183
  if(function_exists('remove_submenu_page')){
184
+ //remove_submenu_page(WT_PIEW_POST_TYPE, WT_PIEW_POST_TYPE);
185
  }
186
  }
187
+
188
+
189
+ function wt_menu_order_changer (&$arr, $index_arr) {
190
+ $arr_t=array();
191
+ foreach($index_arr as $i=>$v) {
192
+ foreach($arr as $k=>$b) {
193
+ if ($k==$v) $arr_t[$k]=$b;
194
+ }
195
+ }
196
+ $arr=$arr_t;
197
+ }
198
 
199
  public function admin_settings_page()
200
  {
admin/modules/export/assets/js/main.js CHANGED
@@ -177,9 +177,13 @@ var wt_iew_basic_export=(function( $ ) {
177
  });
178
  }
179
  },
 
 
 
 
180
  set_export_progress_info:function(msg)
181
  {
182
- $('.wt_iew_loader_info_box').show().text(msg);
183
  },
184
  nonstep_actions:function(action)
185
  {
@@ -263,11 +267,9 @@ var wt_iew_basic_export=(function( $ ) {
263
  {
264
  if(data.finished==1)
265
  {
 
266
  wt_iew_notify_msg.success(wt_iew_basic_params.msgs.success);
267
- if(data.file_url!="") /* file url only available for local export */
268
- {
269
- window.open(data.file_url);
270
- }
271
  }
272
  else if(data.finished==2) /* Remote export */
273
  {
177
  });
178
  }
179
  },
180
+ hide_export_info_box:function()
181
+ {
182
+ $('.wt_iew_loader_info_box').hide();
183
+ },
184
  set_export_progress_info:function(msg)
185
  {
186
+ $('.wt_iew_loader_info_box').show().html(msg);
187
  },
188
  nonstep_actions:function(action)
189
  {
267
  {
268
  if(data.finished==1)
269
  {
270
+ wt_iew_basic_export.set_export_progress_info(data.msg);
271
  wt_iew_notify_msg.success(wt_iew_basic_params.msgs.success);
272
+
 
 
 
273
  }
274
  else if(data.finished==2) /* Remote export */
275
  {
admin/modules/export/export.php CHANGED
@@ -137,26 +137,33 @@ class Wt_Import_Export_For_Woo_Basic_Export
137
  * Adding admin menus
138
  */
139
  public function add_admin_pages($menus)
140
- {
141
- $first = array_slice($menus, 0, 2, true);
142
- $last=array_slice($menus, 2, (count($menus)-1), true);
143
-
144
- $menu=array(
145
  $this->module_base=>array(
146
- 'submenu',
147
- WT_IEW_PLUGIN_ID_BASIC,
148
- __('Export'),
149
  __('Export'),
 
150
  'manage_options',
151
  $this->module_id,
 
 
 
 
 
 
 
 
 
 
 
152
  array($this, 'admin_settings_page')
153
- )
154
  );
155
-
156
- $menus=array_merge($first, $menu, $last);
157
  return $menus;
158
  }
159
-
160
  /**
161
  * Export page
162
  */
@@ -653,8 +660,20 @@ class Wt_Import_Export_For_Woo_Basic_Export
653
  {
654
  $out['file_url']=html_entity_decode($this->get_file_url($file_name));
655
  $out['finished']=1; //finished
 
 
 
 
 
 
 
 
 
 
 
 
656
 
657
- $out['msg']=__('Finished');
658
 
659
  /* updating finished status */
660
  $update_data=array(
137
  * Adding admin menus
138
  */
139
  public function add_admin_pages($menus)
140
+ {
141
+ $menu_temp=array(
 
 
 
142
  $this->module_base=>array(
143
+ 'menu',
 
 
144
  __('Export'),
145
+ __('WebToffee Import Export (Basic)'),
146
  'manage_options',
147
  $this->module_id,
148
+ array($this,'admin_settings_page'),
149
+ 'dashicons-controls-repeat',
150
+ 56
151
+ ),
152
+ $this->module_base.'-sub'=>array(
153
+ 'submenu',
154
+ $this->module_id,
155
+ __('Export'),
156
+ __('Export'),
157
+ "manage_options",
158
+ $this->module_id,
159
  array($this, 'admin_settings_page')
160
+ ),
161
  );
162
+ unset($menus['general-settings']);
163
+ $menus=array_merge($menu_temp, $menus);
164
  return $menus;
165
  }
166
+
167
  /**
168
  * Export page
169
  */
660
  {
661
  $out['file_url']=html_entity_decode($this->get_file_url($file_name));
662
  $out['finished']=1; //finished
663
+ $msg = __('Export file processing completed');
664
+
665
+ $msg.='<span class="wt_iew_info_box_finished_text" style="font-size: 10px;">';
666
+ if(Wt_Import_Export_For_Woo_Admin_Basic::module_exists('history'))
667
+ {
668
+ $history_module_id= Wt_Import_Export_For_Woo_Basic::get_module_id('history');
669
+ $history_page_url=admin_url('admin.php?page='.$history_module_id);
670
+ $msg.=__('You can manage exports from History section.');
671
+ }
672
+
673
+ $msg.='<br /><br /><a class="button button-secondary" style="margin-top:5px;" onclick="wt_iew_basic_export.hide_export_info_box();">'.__('Close').'</a>';
674
+ $msg.='<a class="button button-secondary" style="margin-top:5px;" target="_blank" href="'.$out['file_url'].'" >'.__('Download file').'</a></span>';
675
 
676
+ $out['msg']=$msg;
677
 
678
  /* updating finished status */
679
  $update_data=array(
includes/class-wt-import-export-for-woo.php CHANGED
@@ -80,7 +80,7 @@ class Wt_Import_Export_For_Woo_Basic {
80
  if ( defined( 'WT_U_IEW_VERSION' ) ) {
81
  $this->version = WT_U_IEW_VERSION;
82
  } else {
83
- $this->version = '2.0.0';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
80
  if ( defined( 'WT_U_IEW_VERSION' ) ) {
81
  $this->version = WT_U_IEW_VERSION;
82
  } else {
83
+ $this->version = '2.0.1';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: user import, user export, export customers, import customers, export users
5
  Requires at least: 3.0.1
6
  Tested up to: 5.5
7
  Requires PHP: 5.6
8
- Stable tag: 2.0.0
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -20,7 +20,7 @@ Import users and export users made fast and simple! Import Export WordPress User
20
 
21
  &#128312; Users Export - Export Users to CSV file.</li>
22
  &#128312; Users import - Import Users from CSV format to WordPress/WooCommerce Store.
23
- &#128312; Tested OK with WooCommerce 4.6.0
24
  &#128312; Tested OK with PHP 7.3.5
25
 
26
  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.
@@ -33,6 +33,8 @@ You can create the CSV from the scratch or you can export the users to get the f
33
 
34
 
35
 
 
 
36
  = Premium version Features =
37
 
38
  <blockquote>
@@ -43,7 +45,7 @@ Import Export WordPress Users & WooCommerce Customers
43
  &#9989; Option to choose All Roles or Multiple Roles while export (Basic Supports only single role at a time)
44
  &#9989; Various Filter options for exporting Customers.
45
  &#9989; Map and Transform fields while Importing Customers.
46
- &#9989; Change values while improting Customers using Evaluation Fields.
47
  &#9989; Choice to Update or Skip existing imported Customers.
48
  &#9989; Choice to Send or Skip Emails for newly imported Customers.
49
  &#9989; WPML Supported. French language support Out of the Box.
@@ -158,10 +160,11 @@ By default, admin and store manager are given access to export users. Please vis
158
  3. Premium export Screen
159
 
160
  == Changelog ==
161
-
 
 
162
  = 2.0.0 =
163
- * Heads up! This version has been revamped majorly. The new version update will not automatically adopt the existing settings.
164
- Please make sure you record/note the existing plugin settings and redo them in the new version after an update.
165
  * Improved UI for better user experience
166
  * Export/Import options: via a pre-saved template or a quick(standard columns) export/import
167
  * Option to export/import selective columns
@@ -281,15 +284,7 @@ Please make sure you record/note the existing plugin settings and redo them in t
281
 
282
  == Upgrade Notice ==
283
 
284
- = 2.0.0 =
285
- * Heads up! This version has been revamped majorly. The new version update will not automatically adopt the existing settings.
286
- Please make sure you record/note the existing plugin settings and redo them in the new version after an update.
287
- * Improved UI for better user experience
288
- * Export/Import options: via a pre-saved template or a quick(standard columns) export/import
289
- * Option to export/import selective columns
290
- * Option to reorder columns during export
291
- * Import: Support for different types of delimiters
292
- * Export/Import options: Batch option with configurable batch count
293
- * History of all the Import/Export process
294
- * Dedicated logs for debugging failures
295
- * Tested OK with WC 4.6.0 and WP 5.5.1
5
  Requires at least: 3.0.1
6
  Tested up to: 5.5
7
  Requires PHP: 5.6
8
+ Stable tag: 2.0.1
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
20
 
21
  &#128312; Users Export - Export Users to CSV file.</li>
22
  &#128312; Users import - Import Users from CSV format to WordPress/WooCommerce Store.
23
+ &#128312; Tested OK with WooCommerce 4.6.1
24
  &#128312; Tested OK with PHP 7.3.5
25
 
26
  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.
33
 
34
 
35
 
36
+ More information about the set up of the plugin and a sample CSV that is taken as input by the plugin is given in the <a rel="nofollow" href="https://www.webtoffee.com/user-import-export-plugin-wordpress-user-guide/">basic set up guide.</a>
37
+
38
  = Premium version Features =
39
 
40
  <blockquote>
45
  &#9989; Option to choose All Roles or Multiple Roles while export (Basic Supports only single role at a time)
46
  &#9989; Various Filter options for exporting Customers.
47
  &#9989; Map and Transform fields while Importing Customers.
48
+ &#9989; Change values while importing Customers using Evaluation Fields.
49
  &#9989; Choice to Update or Skip existing imported Customers.
50
  &#9989; Choice to Send or Skip Emails for newly imported Customers.
51
  &#9989; WPML Supported. French language support Out of the Box.
160
  3. Premium export Screen
161
 
162
  == Changelog ==
163
+ = 2.0.1 =
164
+ * Fix: Browser popup blocker issue.
165
+ * Tested OK with WC 4.6.1.
166
  = 2.0.0 =
167
+ * Heads up! This version has been revamped majorly.
 
168
  * Improved UI for better user experience
169
  * Export/Import options: via a pre-saved template or a quick(standard columns) export/import
170
  * Option to export/import selective columns
284
 
285
  == Upgrade Notice ==
286
 
287
+ = 2.0.1 =
288
+ * Fix: Browser popup blocker issue.
289
+ * Tested OK with WC 4.6.1.
290
+ * Version 2.0.0 onward has been revamped majorly.
 
 
 
 
 
 
 
 
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: 2.0.0
10
- WC tested up to: 4.5.2
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
@@ -43,7 +43,7 @@ if ( ! defined( 'WT_IEW_DEBUG_BASIC' ) ) {
43
  * Start at version 1.0.0 and use SemVer - https://semver.org
44
  * Rename this for your plugin and update it as you release new versions.
45
  */
46
- define( 'WT_U_IEW_VERSION', '2.0.0' );
47
 
48
  /**
49
  * The code that runs during plugin activation.
@@ -123,7 +123,7 @@ function wt_uiew_plugin_action_links_basic_user($links)
123
 
124
  $links[] = '<a href="https://www.webtoffee.com/user-import-export-plugin-wordpress-user-guide/" target="_blank">'.__('Documentation').'</a>';
125
  $links[] = '<a target="_blank" href="https://wordpress.org/support/plugin/users-customers-import-export-for-wp-woocommerce/">' . __('Support') . '</a>';
126
- $links[] = '<a target="_blank" href="https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/" style="color:#3db634;">' . __('Premium Upgrade') . '</a>';
127
  if (array_key_exists('deactivate', $links)) {
128
  $links['deactivate'] = str_replace('<a', '<a class="userimport-deactivate-link"', $links['deactivate']);
129
  }
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: 2.0.1
10
+ WC tested up to: 4.6.1
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
43
  * Start at version 1.0.0 and use SemVer - https://semver.org
44
  * Rename this for your plugin and update it as you release new versions.
45
  */
46
+ define( 'WT_U_IEW_VERSION', '2.0.1' );
47
 
48
  /**
49
  * The code that runs during plugin activation.
123
 
124
  $links[] = '<a href="https://www.webtoffee.com/user-import-export-plugin-wordpress-user-guide/" target="_blank">'.__('Documentation').'</a>';
125
  $links[] = '<a target="_blank" href="https://wordpress.org/support/plugin/users-customers-import-export-for-wp-woocommerce/">' . __('Support') . '</a>';
126
+ $links[] = '<a target="_blank" href="https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/?utm_source=user-import-export&utm_medium=dashboard&utm_campaign=upgrade" style="color:#3db634;">' . __('Premium Upgrade') . '</a>';
127
  if (array_key_exists('deactivate', $links)) {
128
  $links['deactivate'] = str_replace('<a', '<a class="userimport-deactivate-link"', $links['deactivate']);
129
  }