Version Description
- Bug fixed: after importing new customers, new WooCommerce tables was not populated properly and they were not shown in the "Customers" list into WooCommerce, thanks for reporting @movementoweb (https://wordpress.org/support/topic/usuarios-importados-con-rol-de-cliente-customer-no-se-muestran-en-woocommerce/)
Download this release
Release Info
Developer | carazo |
Plugin | Import users from CSV with meta |
Version | 1.15.7.1 |
Comparing to | |
See all releases |
Code changes from version 1.15.7 to 1.15.7.1
- addons/woocommerce.php +18 -0
- import-users-from-csv-with-meta.php +1 -1
- readme.txt +4 -1
addons/woocommerce.php
CHANGED
@@ -12,6 +12,8 @@ class ACUI_WooCommerce{
|
|
12 |
function __construct(){
|
13 |
add_filter( 'acui_restricted_fields', array( $this, 'restricted_fields' ), 10, 1 );
|
14 |
add_action( 'acui_documentation_after_plugins_activated', array( $this, 'documentation' ) );
|
|
|
|
|
15 |
}
|
16 |
|
17 |
function fields(){
|
@@ -76,6 +78,22 @@ class ACUI_WooCommerce{
|
|
76 |
<?php
|
77 |
}
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
}
|
80 |
|
81 |
new ACUI_WooCommerce();
|
12 |
function __construct(){
|
13 |
add_filter( 'acui_restricted_fields', array( $this, 'restricted_fields' ), 10, 1 );
|
14 |
add_action( 'acui_documentation_after_plugins_activated', array( $this, 'documentation' ) );
|
15 |
+
add_action( 'post_acui_import_single_user', array( $this, 'sync_wc_customer' ), 10, 4 );
|
16 |
+
add_action( 'after_acui_import_users', array( $this, 'clear_transients' ) );
|
17 |
}
|
18 |
|
19 |
function fields(){
|
78 |
<?php
|
79 |
}
|
80 |
|
81 |
+
function sync_wc_customer( $headers, $data, $user_id, $role ){
|
82 |
+
if( !in_array( 'customer', $role ) || !class_exists( 'WC_Customer' ) )
|
83 |
+
return;
|
84 |
+
|
85 |
+
$customer = new WC_Customer( $user_id );
|
86 |
+
$customer->save();
|
87 |
+
}
|
88 |
+
|
89 |
+
function clear_transients(){
|
90 |
+
if( !class_exists( 'WC_Customer' ) )
|
91 |
+
return;
|
92 |
+
|
93 |
+
wc_delete_product_transients();
|
94 |
+
wc_delete_shop_order_transients();
|
95 |
+
delete_transient( 'wc_count_comments' );
|
96 |
+
}
|
97 |
}
|
98 |
|
99 |
new ACUI_WooCommerce();
|
import-users-from-csv-with-meta.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Import and export users and customers
|
4 |
Plugin URI: https://www.codection.com
|
5 |
Description: Using this plugin you will be able to import and export users or customers choosing many options and interacting with lots of other plugins
|
6 |
-
Version: 1.15.7
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
3 |
Plugin Name: Import and export users and customers
|
4 |
Plugin URI: https://www.codection.com
|
5 |
Description: Using this plugin you will be able to import and export users or customers choosing many options and interacting with lots of other plugins
|
6 |
+
Version: 1.15.7.1
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://codection.com/go/donate-import-users-from-csv-with-meta/
|
|
4 |
Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 5.4.2
|
7 |
-
Stable tag: 1.15.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -99,6 +99,9 @@ Plugin will automatically detect:
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
102 |
= 1.15.7 =
|
103 |
* Addon included to import data defined by WooCommerce Custom Fields by Rightpress
|
104 |
|
4 |
Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 5.4.2
|
7 |
+
Stable tag: 1.15.7.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 1.15.7.1 =
|
103 |
+
* Bug fixed: after importing new customers, new WooCommerce tables was not populated properly and they were not shown in the "Customers" list into WooCommerce, thanks for reporting @movementoweb (https://wordpress.org/support/topic/usuarios-importados-con-rol-de-cliente-customer-no-se-muestran-en-woocommerce/)
|
104 |
+
|
105 |
= 1.15.7 =
|
106 |
* Addon included to import data defined by WooCommerce Custom Fields by Rightpress
|
107 |
|