Import Export WordPress Users and WooCommerce Customers - Version 2.1.9

Version Description

  • Added support for customer shipping phone number import export
  • WC 5.6 tested OK
Download this release

Release Info

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

Code changes from version 2.1.8 to 2.1.9

admin/class-wt-import-export-for-woo-admin.php CHANGED
@@ -120,6 +120,8 @@ class Wt_Import_Export_For_Woo_Admin_Basic {
120
  'settings_success'=>__('Settings updated.'),
121
  'all_fields_mandatory'=>__('All fields are mandatory'),
122
  'settings_error'=>__('Unable to update Settings.'),
 
 
123
  'value_empty'=>__('Value is empty.'),
124
  'error'=>sprintf(__('An unknown error has occurred! Refer to our %stroubleshooting guide%s for assistance.'), '<a href="'.WT_IEW_DEBUG_BASIC_TROUBLESHOOT.'" target="_blank">', '</a>'),
125
  'success'=>__('Success.'),
@@ -243,6 +245,33 @@ class Wt_Import_Export_For_Woo_Admin_Basic {
243
  exit();
244
  }
245
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
  /**
247
  Registers modules: admin
248
  */
@@ -304,7 +333,8 @@ class Wt_Import_Export_For_Woo_Admin_Basic {
304
 
305
  $addon_modules_basic = array(
306
  'user'=>'users-customers-import-export-for-wp-woocommerce',
307
- 'product'=>'product-import-export-for-woo',
 
308
  'order'=>'order-import-export-for-woocommerce',
309
  'coupon'=>'order-import-export-for-woocommerce',
310
  );
120
  'settings_success'=>__('Settings updated.'),
121
  'all_fields_mandatory'=>__('All fields are mandatory'),
122
  'settings_error'=>__('Unable to update Settings.'),
123
+ 'template_del_error'=>__('Unable to delete template'),
124
+ 'template_del_loader'=>__('Deleting template...'),
125
  'value_empty'=>__('Value is empty.'),
126
  'error'=>sprintf(__('An unknown error has occurred! Refer to our %stroubleshooting guide%s for assistance.'), '<a href="'.WT_IEW_DEBUG_BASIC_TROUBLESHOOT.'" target="_blank">', '</a>'),
127
  'success'=>__('Success.'),
245
  exit();
246
  }
247
 
248
+ /**
249
+ * Delete pre-saved temaplates entry from DB - ajax hook
250
+ */
251
+ public function delete_template() {
252
+ $out = array(
253
+ 'status' => false,
254
+ 'msg' => __('Error'),
255
+ );
256
+
257
+ if (Wt_Iew_Sh::check_write_access(WT_IEW_PLUGIN_ID_BASIC)) {
258
+ if (isset($_POST['template_id'])) {
259
+
260
+ global $wpdb;
261
+ $template_id = absint($_POST['template_id']);
262
+ $tb = $wpdb->prefix . Wt_Import_Export_For_Woo_Basic::$template_tb;
263
+ $where = "=%d";
264
+ $where_data = array($template_id);
265
+ $wpdb->query($wpdb->prepare("DELETE FROM $tb WHERE id" . $where, $where_data));
266
+ $out['status'] = true;
267
+ $out['msg'] = __('Template deleted successfully');
268
+ $out['template_id'] = $template_id;
269
+ }
270
+ }
271
+ wp_send_json($out);
272
+
273
+ }
274
+
275
  /**
276
  Registers modules: admin
277
  */
333
 
334
  $addon_modules_basic = array(
335
  'user'=>'users-customers-import-export-for-wp-woocommerce',
336
+ 'product'=>'product-import-export-for-woo',
337
+ 'product_review'=>'product-import-export-for-woo',
338
  'order'=>'order-import-export-for-woocommerce',
339
  'coupon'=>'order-import-export-for-woocommerce',
340
  );
admin/classes/class-csvreader.php CHANGED
@@ -73,8 +73,8 @@ class Wt_Import_Export_For_Woo_Basic_Csvreader
73
  $val=(isset($sample_data_val[$k]) ? $this->format_data_from_csv($sample_data_val[$k], $enc) : '');
74
 
75
  /* removing BOM like non characters */
76
- // $key=preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $key);
77
- $key= wt_removeBomUtf8_basic($key);
78
  if($grouping)
79
  {
80
  if(strrpos($key, ':')!==false)
@@ -157,8 +157,8 @@ class Wt_Import_Export_For_Woo_Basic_Csvreader
157
  }else
158
  {
159
  /* removing BOM like non characters */
160
- // $head_arr[$head_key]=preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $head_val);
161
- $head_arr[$head_key]= wt_removeBomUtf8_basic($head_val);
162
  }
163
  }
164
 
73
  $val=(isset($sample_data_val[$k]) ? $this->format_data_from_csv($sample_data_val[$k], $enc) : '');
74
 
75
  /* removing BOM like non characters */
76
+ $key=preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $key);
77
+ //$key= wt_removeBomUtf8_basic($key);
78
  if($grouping)
79
  {
80
  if(strrpos($key, ':')!==false)
157
  }else
158
  {
159
  /* removing BOM like non characters */
160
+ $head_arr[$head_key]=preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $head_val);
161
+ //$head_arr[$head_key]= wt_removeBomUtf8_basic($head_val);
162
  }
163
  }
164
 
admin/js/wt-import-export-for-woo-admin.js CHANGED
@@ -123,6 +123,50 @@ var wt_iew_settings_form_basic=
123
  });
124
  }
125
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  var wt_drp_menu=
127
  {
128
  Set:function()
@@ -738,4 +782,5 @@ jQuery(document).ready(function(){
738
  wt_iew_file_attacher.Set();
739
  wt_iew_form_toggler.Set();
740
  wt_field_group.Set();
 
741
  });
123
  });
124
  }
125
  }
126
+
127
+
128
+ var wt_saved_templates = {
129
+ Set: function()
130
+ {
131
+ jQuery('.wt_ier_delete_template').unbind('click').click(function (e) {
132
+ e.preventDefault();
133
+ if(confirm(wt_iew_basic_params.msgs.sure)){
134
+
135
+ var template_id = jQuery(this).attr('data-id');
136
+
137
+ var data = {
138
+ _wpnonce: wt_iew_basic_params.nonces.main,
139
+ action: 'wt_iew_delete_template',
140
+ template_id: template_id,
141
+ };
142
+ jQuery('tr[data-row-id='+data.template_id+']').html('<td colspan="5">'+wt_iew_basic_params.msgs.template_del_loader+'</td>');
143
+ jQuery.ajax({
144
+ url: wt_iew_basic_params.ajax_url,
145
+ type: 'POST',
146
+ dataType: 'json',
147
+ data: data,
148
+ success: function (data)
149
+ {
150
+ if (data.status == true)
151
+ {
152
+ wt_iew_notify_msg.success(data.msg, true);
153
+ jQuery('tr[data-row-id='+data.template_id+']').remove();
154
+ } else
155
+ {
156
+ wt_iew_notify_msg.error(data.msg, true);
157
+ }
158
+ },
159
+ error: function ()
160
+ {
161
+ wt_iew_notify_msg.error(wt_iew_basic_params.msgs.template_del_error);
162
+ }
163
+ });
164
+ }
165
+ });
166
+ }
167
+ }
168
+
169
+
170
  var wt_drp_menu=
171
  {
172
  Set:function()
782
  wt_iew_file_attacher.Set();
783
  wt_iew_form_toggler.Set();
784
  wt_field_group.Set();
785
+ wt_saved_templates.Set();
786
  });
admin/modules/export/assets/js/main.js CHANGED
@@ -689,17 +689,20 @@ var wt_iew_basic_export=(function( $ ) {
689
  wt_iew_basic_export.load_pending_steps();
690
  }
691
  });
 
692
  }
693
  else if(step=='filter') /* filter page */
694
  {
695
  $('.wc-enhanced-select').select2();
696
  $( document.body ).trigger( 'wc-enhanced-select-init' );
 
697
  }
698
  else if(step=='mapping') /* mapping page */
699
  {
700
  this.enable_sortable();
701
  this.mapping_box_accordian();
702
  this.reg_mapping_field_bulk_action();
 
703
  }
704
  else if(step=='advanced')
705
  {
@@ -753,6 +756,7 @@ var wt_iew_basic_export=(function( $ ) {
753
  $('[name="wt_iew_file_as"]').unbind('change').change(function(){
754
  $('.wt_iew_file_ext_info').html('.'+$(this).val());
755
  });
 
756
  }
757
 
758
  /* common events */
@@ -888,7 +892,13 @@ var wt_iew_basic_export=(function( $ ) {
888
  'data_type': data_type,
889
  'export_method': this.export_method,
890
  };
891
- }
 
 
 
 
 
 
892
  }
893
  return wt_iew_basic_export;
894
 
689
  wt_iew_basic_export.load_pending_steps();
690
  }
691
  });
692
+ wt_iew_basic_export.warn_on_refresh();
693
  }
694
  else if(step=='filter') /* filter page */
695
  {
696
  $('.wc-enhanced-select').select2();
697
  $( document.body ).trigger( 'wc-enhanced-select-init' );
698
+ wt_iew_basic_export.warn_on_refresh();
699
  }
700
  else if(step=='mapping') /* mapping page */
701
  {
702
  this.enable_sortable();
703
  this.mapping_box_accordian();
704
  this.reg_mapping_field_bulk_action();
705
+ wt_iew_basic_export.warn_on_refresh();
706
  }
707
  else if(step=='advanced')
708
  {
756
  $('[name="wt_iew_file_as"]').unbind('change').change(function(){
757
  $('.wt_iew_file_ext_info').html('.'+$(this).val());
758
  });
759
+ wt_iew_basic_export.warn_on_refresh();
760
  }
761
 
762
  /* common events */
892
  'data_type': data_type,
893
  'export_method': this.export_method,
894
  };
895
+ },
896
+ warn_on_refresh: function () {
897
+ window.onbeforeunload = function (event)
898
+ {
899
+ return confirm("Changes that you made may not be saved.");
900
+ };
901
+ }
902
  }
903
  return wt_iew_basic_export;
904
 
admin/modules/export/export.php CHANGED
@@ -86,7 +86,7 @@ class Wt_Import_Export_For_Woo_Basic_Export
86
  );
87
 
88
  /* advanced plugin settings */
89
- add_filter('wt_iew_advanced_setting_fields_basic', array($this, 'advanced_setting_fields'));
90
 
91
  /* setting default values, this method must be below of advanced setting filter */
92
  $this->get_defaults();
86
  );
87
 
88
  /* advanced plugin settings */
89
+ add_filter('wt_iew_advanced_setting_fields_basic', array($this, 'advanced_setting_fields'), 11);
90
 
91
  /* setting default values, this method must be below of advanced setting filter */
92
  $this->get_defaults();
admin/modules/history/history.php CHANGED
@@ -47,7 +47,7 @@ class Wt_Import_Export_For_Woo_Basic_History
47
  add_filter('wt_iew_admin_menu_basic', array($this, 'add_admin_pages'), 10, 1);
48
 
49
  /* advanced plugin settings */
50
- add_filter('wt_iew_advanced_setting_fields_basic', array($this, 'advanced_setting_fields'), 11);
51
 
52
  /* main ajax hook. The callback function will decide which action is to execute. */
53
  add_action('wp_ajax_iew_history_ajax_basic', array($this, 'ajax_main'), 11);
47
  add_filter('wt_iew_admin_menu_basic', array($this, 'add_admin_pages'), 10, 1);
48
 
49
  /* advanced plugin settings */
50
+ add_filter('wt_iew_advanced_setting_fields_basic', array($this, 'advanced_setting_fields'), 12);
51
 
52
  /* main ajax hook. The callback function will decide which action is to execute. */
53
  add_action('wp_ajax_iew_history_ajax_basic', array($this, 'ajax_main'), 11);
admin/modules/history/views/_history_list.php CHANGED
@@ -105,7 +105,7 @@ if ( ! defined( 'WPINC' ) ) {
105
  <input type="checkbox" name="" class="wt_iew_history_checkbox_main">
106
  <?php _e("No."); ?>
107
  </th>
108
- <th><?php _e("Id"); ?></th>
109
  <th><?php _e("Action type"); ?></th>
110
  <th><?php _e("Post type"); ?></th>
111
  <th><?php _e("Started at"); ?></th>
@@ -178,6 +178,13 @@ if ( ! defined( 'WPINC' ) ) {
178
  <?php
179
  }
180
  }
 
 
 
 
 
 
 
181
  ?>
182
  </td>
183
  </tr>
105
  <input type="checkbox" name="" class="wt_iew_history_checkbox_main">
106
  <?php _e("No."); ?>
107
  </th>
108
+ <th width="50"><?php _e("Id"); ?></th>
109
  <th><?php _e("Action type"); ?></th>
110
  <th><?php _e("Post type"); ?></th>
111
  <th><?php _e("Started at"); ?></th>
178
  <?php
179
  }
180
  }
181
+ if($action_type=='export' && Wt_Import_Export_For_Woo_Admin_Basic::module_exists($action_type))
182
+ {
183
+ $export_download_url=wp_nonce_url(admin_url('admin.php?wt_iew_export_download=true&file='.$history_item['file_name']), WT_IEW_PLUGIN_ID_BASIC);
184
+ ?>
185
+ | <a class="wt_iew_export_download_btn" target="_blank" href="<?php echo $export_download_url;?>"><?php _e('Download');?></a>
186
+ <?php
187
+ }
188
  ?>
189
  </td>
190
  </tr>
admin/modules/import/assets/js/main.js CHANGED
@@ -869,6 +869,7 @@ var wt_iew_basic_import=(function( $ ) {
869
  wt_iew_dropzone.init('wt_iew_local_file_dropzone');
870
  /* Auto populate template file. */
871
  wt_iew_dropzone.auto_populate();
 
872
  }
873
  else if(step=='mapping') /* mapping page */
874
  {
@@ -876,10 +877,11 @@ var wt_iew_basic_import=(function( $ ) {
876
  this.mapping_box_accordian();
877
  this.reg_mapping_field_bulk_action();
878
  wt_iew_popover.Set();
 
879
  }
880
  else if(step=='advanced')
881
  {
882
-
883
  }
884
 
885
  /* common events */
@@ -1040,7 +1042,13 @@ var wt_iew_basic_import=(function( $ ) {
1040
  is_object:function(obj)
1041
  {
1042
  return obj !== undefined && obj !== null && obj.constructor == Object;
1043
- }
 
 
 
 
 
 
1044
  }
1045
 
1046
  var mapping_field_editor=
869
  wt_iew_dropzone.init('wt_iew_local_file_dropzone');
870
  /* Auto populate template file. */
871
  wt_iew_dropzone.auto_populate();
872
+ wt_iew_basic_import.warn_on_refresh();
873
  }
874
  else if(step=='mapping') /* mapping page */
875
  {
877
  this.mapping_box_accordian();
878
  this.reg_mapping_field_bulk_action();
879
  wt_iew_popover.Set();
880
+ wt_iew_basic_import.warn_on_refresh();
881
  }
882
  else if(step=='advanced')
883
  {
884
+ wt_iew_basic_import.warn_on_refresh();
885
  }
886
 
887
  /* common events */
1042
  is_object:function(obj)
1043
  {
1044
  return obj !== undefined && obj !== null && obj.constructor == Object;
1045
+ },
1046
+ warn_on_refresh: function () {
1047
+ window.onbeforeunload = function (event)
1048
+ {
1049
+ return confirm("Changes that you made may not be saved.");
1050
+ };
1051
+ }
1052
  }
1053
 
1054
  var mapping_field_editor=
admin/modules/import/import.php CHANGED
@@ -107,7 +107,17 @@ class Wt_Import_Export_For_Woo_Basic_Import
107
  */
108
  public function advanced_setting_fields($fields)
109
  {
110
- $fields['enable_import_log']=array(
 
 
 
 
 
 
 
 
 
 
111
  'label'=>__("Generate Import log"),
112
  'type'=>'radio',
113
  'radio_fields'=>array(
@@ -138,6 +148,7 @@ class Wt_Import_Export_For_Woo_Basic_Import
138
  'help_text'=>__('Provide the default number of records to be imported in a batch.'),
139
  'validation_rule'=>array('type'=>'absint'),
140
  );
 
141
  return $fields;
142
  }
143
 
107
  */
108
  public function advanced_setting_fields($fields)
109
  {
110
+
111
+ $fields['maximum_execution_time'] = array(
112
+ 'label' => __("Maximum execution time"),
113
+ 'type' => 'number',
114
+ 'value' => ini_get('max_execution_time'), /* Default max_execution_time settings value */
115
+ 'field_name' => 'maximum_execution_time',
116
+ 'field_group' => 'advanced_field',
117
+ 'help_text' => __('The maximum execution time, in seconds(eg:- 300, 600, 1800, 3600). If set to zero, no time limit is imposed. Increasing this will reduce the chance of export/import timeouts.'),
118
+ 'validation_rule' => array('type' => 'int'),
119
+ );
120
+ $fields['enable_import_log']=array(
121
  'label'=>__("Generate Import log"),
122
  'type'=>'radio',
123
  'radio_fields'=>array(
148
  'help_text'=>__('Provide the default number of records to be imported in a batch.'),
149
  'validation_rule'=>array('type'=>'absint'),
150
  );
151
+
152
  return $fields;
153
  }
154
 
admin/modules/user/data/data-user-columns.php CHANGED
@@ -57,6 +57,7 @@ if( is_plugin_active( 'woocommerce/woocommerce.php' ) ):
57
  $columns['shipping_first_name'] = 'Shipping first name';
58
  $columns['shipping_last_name'] = 'Shipping last name';
59
  $columns['shipping_company'] = 'Shipping company';
 
60
  $columns['shipping_address_1'] = 'Shipping address 1';
61
  $columns['shipping_address_2'] = 'Shipping address 2';
62
  $columns['shipping_postcode'] = 'Shipping postcode';
57
  $columns['shipping_first_name'] = 'Shipping first name';
58
  $columns['shipping_last_name'] = 'Shipping last name';
59
  $columns['shipping_company'] = 'Shipping company';
60
+ $columns['shipping_phone'] = 'Shipping phone';
61
  $columns['shipping_address_1'] = 'Shipping address 1';
62
  $columns['shipping_address_2'] = 'Shipping address 2';
63
  $columns['shipping_postcode'] = 'Shipping postcode';
admin/modules/user/data/data/data-wf-reserved-fields-pair.php CHANGED
@@ -53,6 +53,7 @@ if( is_plugin_active( 'woocommerce/woocommerce.php' ) ):
53
  $columns['shipping_first_name'] = array('title'=>'Shipping first name','description'=>'');
54
  $columns['shipping_last_name'] = array('title'=>'Shipping last name','description'=>'');
55
  $columns['shipping_company'] = array('title'=>'Shipping company','description'=>'');
 
56
  $columns['shipping_address_1'] = array('title'=>'Shipping address 1','description'=>'');
57
  $columns['shipping_address_2'] = array('title'=>'Shipping address 2','description'=>'');
58
  $columns['shipping_postcode'] = array('title'=>'Shipping postcode','description'=>'');
53
  $columns['shipping_first_name'] = array('title'=>'Shipping first name','description'=>'');
54
  $columns['shipping_last_name'] = array('title'=>'Shipping last name','description'=>'');
55
  $columns['shipping_company'] = array('title'=>'Shipping company','description'=>'');
56
+ $columns['shipping_phone'] = array('title'=>'Shipping phone','description'=>'');
57
  $columns['shipping_address_1'] = array('title'=>'Shipping address 1','description'=>'');
58
  $columns['shipping_address_2'] = array('title'=>'Shipping address 2','description'=>'');
59
  $columns['shipping_postcode'] = array('title'=>'Shipping postcode','description'=>'');
admin/modules/user/export/export.php CHANGED
@@ -169,7 +169,7 @@ class Wt_Import_Export_For_Woo_basic_User_Export {
169
  public function get_guest_customers_csv_row($order) {
170
  $customer_data = array();
171
  $csv_columns = $this->parent_module->get_selected_column_names();
172
- $key_array = array('billing_first_name', 'billing_last_name', 'billing_company', 'billing_email', 'billing_phone', 'billing_address_1', 'billing_address_2', 'billing_postcode', 'billing_city', 'billing_state', 'billing_country', 'shipping_first_name', 'shipping_last_name', 'shipping_company', 'shipping_address_1', 'shipping_address_2', 'shipping_postcode', 'shipping_city', 'shipping_state', 'shipping_country', 'shipping_method');
173
  foreach ($csv_columns as $key) {
174
  if (in_array($key, $key_array)) {
175
  if ($key == 'user_email') {
169
  public function get_guest_customers_csv_row($order) {
170
  $customer_data = array();
171
  $csv_columns = $this->parent_module->get_selected_column_names();
172
+ $key_array = array('billing_first_name', 'billing_last_name', 'billing_company', 'billing_email', 'billing_phone', 'billing_address_1', 'billing_address_2', 'billing_postcode', 'billing_city', 'billing_state', 'billing_country', 'shipping_first_name', 'shipping_last_name', 'shipping_company', 'shipping_phone', 'shipping_address_1', 'shipping_address_2', 'shipping_postcode', 'shipping_city', 'shipping_state', 'shipping_country', 'shipping_method');
173
  foreach ($csv_columns as $key) {
174
  if (in_array($key, $key_array)) {
175
  if ($key == 'user_email') {
admin/views/admin-settings-advanced.php CHANGED
@@ -14,6 +14,9 @@ if ( ! defined( 'WPINC' ) ) {
14
  Wt_Import_Export_For_Woo_Basic_Common_Helper::field_generator($fields, $advanced_settings);
15
  ?>
16
  </table>
 
 
 
17
  <?php
18
  include "admin-settings-save-button.php";
19
  ?>
14
  Wt_Import_Export_For_Woo_Basic_Common_Helper::field_generator($fields, $advanced_settings);
15
  ?>
16
  </table>
17
+ <?php
18
+ include "admin-settings-pre-saved-templates.php";
19
+ ?>
20
  <?php
21
  include "admin-settings-save-button.php";
22
  ?>
admin/views/admin-settings-pre-saved-templates.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if (!defined('WPINC')) {
3
+ die;
4
+ }
5
+
6
+ global $wpdb;
7
+ $tb = $wpdb->prefix . Wt_Import_Export_For_Woo_Basic::$template_tb;
8
+ $val = $wpdb->get_results("SELECT * FROM $tb ORDER BY id DESC", ARRAY_A);
9
+ $pre_saved_templates = ($val ? $val : array());
10
+ if (!empty($pre_saved_templates)):
11
+ ?>
12
+
13
+
14
+ <style>
15
+ .wt_ier_template_list_table {
16
+ width: 50%;
17
+ border-spacing: 0px;
18
+ border-collapse: collapse;
19
+ margin-top: 15px;
20
+ }
21
+ .wt_ier_template_list_table th {
22
+ padding: 5px 5px;
23
+ background: #f9f9f9;
24
+ color: #333;
25
+ text-align: center;
26
+ border: solid 1px #e1e1e1;
27
+ font-weight: bold;
28
+ }
29
+ .wt_ier_template_list_table td {
30
+ padding: 5px 5px;
31
+ background: #fff;
32
+ color: #000;
33
+ text-align: center;
34
+ border: solid 1px #e1e1e1;
35
+ }
36
+ </style>
37
+ <div class="wt-ier-import-export-templates">
38
+ <h3><?php _e('Import export pre-saved templates'); ?></h3>
39
+ <div class="wt_ier_template_list_table_data">
40
+ <table class="wt_ier_template_list_table">
41
+ <thead>
42
+ <tr>
43
+ <th style="width:50px;">#</th>
44
+ <th><?php _e('Name'); ?></th>
45
+ <th><?php _e('Item'); ?></th>
46
+ <th><?php _e('Type'); ?></th>
47
+ <th><?php _e('Action'); ?></th>
48
+ </tr>
49
+ </thead>
50
+ <tbody>
51
+ <?php
52
+ $num = 1;
53
+ foreach ($pre_saved_templates as $key => $value):
54
+ ?>
55
+ <tr data-row-id="<?php echo absint($value['id']); ?>">
56
+ <td><?php echo $num; ?></td>
57
+ <td><?php echo $value['name']; ?></td>
58
+ <td><?php echo $value['item_type']; ?></td>
59
+ <td><?php echo $value['template_type']; ?></td>
60
+ <td><button data-id="<?php echo absint($value['id']); ?>" title="<?php _e('Delete'); ?>" class="button button-secondary wt_ier_delete_template"><span><?php _e('Delete'); ?></span></button></td>
61
+ </tr>
62
+ <?php
63
+ $num++;
64
+ endforeach;
65
+ ?>
66
+ </tbody>
67
+ </table>
68
+ </div>
69
+ </div>
70
+ <?php endif; ?>
admin/views/market.php CHANGED
@@ -8,7 +8,7 @@ if (!defined('ABSPATH')) {
8
  <div class="ier-premium-upgrade">
9
  <div class="wt-ier-sidebar-wrapper wt-ier-p-5">
10
  <img src="<?php echo WT_U_IEW_PLUGIN_URL; ?>assets/images/upgrade/crown.svg" class="wt-ier-sidebar-img">
11
- <h3 class="wt-ier-sidebar-title wt-ier-center"><?php _e('Do not leave any data behind!<br>Upgrade to pro.');?></h3>
12
  <div class="wt-ier-row">
13
  <div class="wt-ier-col-12 wt-ier-col-md-6 wt-ier-border-md-right">
14
  <div class="wt-ier-flex wt-ier-v-center ">
8
  <div class="ier-premium-upgrade">
9
  <div class="wt-ier-sidebar-wrapper wt-ier-p-5">
10
  <img src="<?php echo WT_U_IEW_PLUGIN_URL; ?>assets/images/upgrade/crown.svg" class="wt-ier-sidebar-img">
11
+ <h3 class="wt-ier-sidebar-title wt-ier-center"><?php _e('Migrate all your WooCommerce data in a go!<br>Upgrade to pro.');?></h3>
12
  <div class="wt-ier-row">
13
  <div class="wt-ier-col-12 wt-ier-col-md-6 wt-ier-border-md-right">
14
  <div class="wt-ier-flex wt-ier-v-center ">
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.1.8';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
@@ -193,7 +193,7 @@ class Wt_Import_Export_For_Woo_Basic {
193
  {
194
  //ajax hook for saving settings, Includes plugin main settings and settings from module
195
  $this->loader->add_action('wp_ajax_wt_iew_save_settings_basic',$this->plugin_admin,'save_settings');
196
-
197
  /* Loading admin modules */
198
  $this->plugin_admin->admin_modules();
199
 
80
  if ( defined( 'WT_U_IEW_VERSION' ) ) {
81
  $this->version = WT_U_IEW_VERSION;
82
  } else {
83
+ $this->version = '2.1.9';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
193
  {
194
  //ajax hook for saving settings, Includes plugin main settings and settings from module
195
  $this->loader->add_action('wp_ajax_wt_iew_save_settings_basic',$this->plugin_admin,'save_settings');
196
+ $this->loader->add_action('wp_ajax_wt_iew_delete_template',$this->plugin_admin,'delete_template');
197
  /* Loading admin modules */
198
  $this->plugin_admin->admin_modules();
199
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: user import, user export, csv, woocommerce, customers, export import users
5
  Requires at least: 3.0.1
6
  Tested up to: 5.8
7
  Requires PHP: 5.6
8
- Stable tag: 2.1.8
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -26,7 +26,7 @@ WordPress User Import Export plugin allows the import and export of WordPress us
26
  &#128312; Map and Transform fields while importing customers/users
27
  &#128312; Change values (bulk modify) while importing customers/users using Evaluation Fields
28
  &#128312; Tested OK with WordPress 5.8
29
- &#128312; Tested OK with WooCommerce 5.5
30
  &#128312; Tested OK with PHP 8.0
31
 
32
  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.
@@ -214,6 +214,9 @@ Please refer the article on how to <a href="https://www.webtoffee.com/refresh-wo
214
 
215
  == Changelog ==
216
 
 
 
 
217
  = 2.1.8 =
218
  * Bug fix: Email and username validation improvements
219
  * WP 5.8 tested OK
@@ -390,7 +393,6 @@ Please refer the article on how to <a href="https://www.webtoffee.com/refresh-wo
390
 
391
  == Upgrade Notice ==
392
 
393
- = 2.1.8 =
394
- * Bug fix: Email and username validation improvements
395
- * WP 5.8 tested OK
396
- * WC 5.5 tested OK
5
  Requires at least: 3.0.1
6
  Tested up to: 5.8
7
  Requires PHP: 5.6
8
+ Stable tag: 2.1.9
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
26
  &#128312; Map and Transform fields while importing customers/users
27
  &#128312; Change values (bulk modify) while importing customers/users using Evaluation Fields
28
  &#128312; Tested OK with WordPress 5.8
29
+ &#128312; Tested OK with WooCommerce 5.6
30
  &#128312; Tested OK with PHP 8.0
31
 
32
  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.
214
 
215
  == Changelog ==
216
 
217
+ = 2.1.9 =
218
+ * Added support for customer shipping phone number import export
219
+ * WC 5.6 tested OK
220
  = 2.1.8 =
221
  * Bug fix: Email and username validation improvements
222
  * WP 5.8 tested OK
393
 
394
  == Upgrade Notice ==
395
 
396
+ = 2.1.9 =
397
+ * Added support for customer shipping phone number import export
398
+ * WC 5.6 tested OK
 
users-customers-import-export-for-wp-woocommerce.php CHANGED
@@ -5,8 +5,8 @@
5
  Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
6
  Author: WebToffee
7
  Author URI: https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/
8
- Version: 2.1.8
9
- WC tested up to: 5.5
10
  Text Domain: users-customers-import-export-for-wp-woocommerce
11
  License: GPLv3
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -45,7 +45,7 @@ if (!defined('WT_IEW_DEBUG_BASIC_TROUBLESHOOT')) {
45
  * Start at version 1.0.0 and use SemVer - https://semver.org
46
  * Rename this for your plugin and update it as you release new versions.
47
  */
48
- define('WT_U_IEW_VERSION', '2.1.8');
49
 
50
  /**
51
  * The code that runs during plugin activation.
@@ -82,6 +82,10 @@ register_deactivation_hook(__FILE__, 'deactivate_wt_import_export_for_woo_basic_
82
  */
83
  require plugin_dir_path(__FILE__) . 'includes/class-wt-import-export-for-woo.php';
84
 
 
 
 
 
85
  /**
86
  * Begins execution of the plugin.
87
  *
5
  Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
6
  Author: WebToffee
7
  Author URI: https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/
8
+ Version: 2.1.9
9
+ WC tested up to: 5.6
10
  Text Domain: users-customers-import-export-for-wp-woocommerce
11
  License: GPLv3
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
45
  * Start at version 1.0.0 and use SemVer - https://semver.org
46
  * Rename this for your plugin and update it as you release new versions.
47
  */
48
+ define('WT_U_IEW_VERSION', '2.1.9');
49
 
50
  /**
51
  * The code that runs during plugin activation.
82
  */
83
  require plugin_dir_path(__FILE__) . 'includes/class-wt-import-export-for-woo.php';
84
 
85
+ $advanced_settings = get_option('wt_iew_advanced_settings', array());
86
+ $ier_get_max_execution_time = (isset($advanced_settings['wt_iew_maximum_execution_time']) && $advanced_settings['wt_iew_maximum_execution_time'] != '') ? $advanced_settings['wt_iew_maximum_execution_time'] : ini_get('max_execution_time');
87
+ set_time_limit($ier_get_max_execution_time);
88
+
89
  /**
90
  * Begins execution of the plugin.
91
  *