Mike Jolley
e168702bb3
Add shipping phone to data stores
2021-06-03 13:55:37 +01:00
Vedanshu Jain
4339aee35f
Merge pull request #27352 from juliquiron/fix/slow-wc-customer-get-operations
...
Added cache and filter for wc-customer get operations.
2020-12-14 09:43:04 +05:30
vedanshujain
f1742e2298
Exclude user table columns as well
...
This is to prevent overwriting of original column data by a meta data if meta_key name is same as a column.
2020-11-13 01:02:15 +05:30
Julià Mestieri
b209b2bec3
fixup! Added PR feedback.
2020-08-31 08:28:30 +02:00
Julià Mestieri
83434deb42
Added PR feedback.
2020-08-27 09:05:33 +02:00
Julià Mestieri
b2c35a5ded
Added cache and filters for wc-customer get operations.
2020-08-17 11:25:54 +02:00
vedanshujain
72545c44b7
Add support for `_held_for_checkout` records to improve performance.
...
This will also improve transactional stability and avoid race conditions by providing a way to lock usage counts.
2019-12-17 19:13:19 +05:30
Mike Jolley
e354bb90aa
Pass objects to new/update actions
2019-04-17 12:50:46 +01:00
Paul Sealock
3f8b3bc1fd
_woocommerce_tracks_anon_id to customere data store
2019-02-22 11:49:14 +13:00
Paul Sealock
851a2557f6
Tracks: Add a PHP client
2019-02-22 11:48:17 +13:00
Mike Jolley
1b337dea64
Load customer data regardless of current blog
2019-01-14 16:30:47 +00:00
Claudiu Lodromanean
6e457799b3
Merge pull request #21943 from woocommerce/fix/21516
...
Match array keys on lowercase keys before calling set_props
2018-12-11 11:12:22 -08:00
Rodrigo Primo
6ec2b26972
Update WordPress.DB.PreparedSQL.NotPrepared sniff name
...
The latest version of WPCS that was added to WC last week, changed the name of some sniffs. This commit updates the name of one of those sniffs from WordPress.WP.PreparedSQL.NotPrepared to WordPress.DB.PreparedSQL.NotPrepared.
2018-11-23 15:10:52 -02:00
Rodrigo Primo
57f44798cb
Fix phpcs violations automatically using phpcbf
2018-11-23 12:57:51 -02:00
Gerhard
b071855632
Some PHPCS fixes
2018-11-16 12:17:33 +02:00
Gerhard
3943ec6395
Convert array keys to lower case before comparing keys to exclude.
2018-11-16 12:13:51 +02:00
Rodrigo Primo
37c796487d
Revert "Update WC_Customer_Data_Store to use post_author instead of _customer_user"
...
This reverts commit 482e844f16
.
2018-10-29 11:09:13 -03:00
Rodrigo Primo
c49059ce7a
Merge branch 'master' into update/use-post-author-for-customer-id
2018-05-08 17:34:09 -03:00
Rodrigo Primo
482e844f16
Update WC_Customer_Data_Store to use post_author instead of _customer_user
2018-05-07 17:54:42 -03:00
Khan M Rashedun-Naby
c174316bf8
Removed redundant else statement and inverted the early return
2018-04-25 22:21:21 +06:00
Rodrigo Primo
37ca7faf2e
Check if there is a customer ID set before calling get_user_by()
2018-03-09 09:34:26 -03:00
Rodrigo Primo
74879abeb3
phpcs fixes in includes/data-stores/class-wc-customer-data-store.php
2018-03-08 16:27:54 -03:00
Rodrigo Primo
2b5103c849
Fix phpcs violations using phpcbf
2018-03-08 14:30:43 -03:00
Arif Widianto
c4a2ed88c3
Change to get_display_name from object
2017-12-02 07:30:39 +07:00
Arif Widianto
793476e05f
Removed, display_name was not part of user meta
2017-11-28 08:36:09 +07:00
Arif Widianto
0b42515c93
Provides edit display name in my-account page ( #17606 )
2017-11-22 15:20:49 +07:00
Mike Jolley
a899b53b57
Unit test fix: Exclude syntax_highlighting
2017-11-16 18:58:09 +00:00
Claudio Sanches
c03520a661
Allow pre query filter return an empty array
2017-08-28 16:23:12 -03:00
Claudio Sanches
d5aae55725
Prevent "Argument #N is not an array" warning when WP_User_Query returns null
2017-08-28 16:15:19 -03:00
Claudio Sanches
f8c18ba899
Introduced pre query filter to WC_Customer_Data_Store::search_customers()
2017-08-28 16:14:13 -03:00
jaydeeprami
55100562b3
Fix typo in '@oaram' to '@param'
2017-07-19 08:14:41 +05:30
Justin Sainton
31d8a4a6d7
Add additional parenthesis.
...
Maybe don't throw fatal errors.
2017-07-03 10:19:57 -07:00
Justin Sainton
29c9fa55d8
Add search_customers() filter
...
Includes each of the parameters passed to the method, as well as a context parameter for each query.
Our specific use case for this is for a custom wholesale ordering system, where we're wanting to limit the search to a specific role - so customizing the arguments here would be really helpful.
Ironically, proposed the same thing three years ago and the committed filter no longer exists: e91ca49b6d
2017-06-30 13:52:24 -07:00
Mike Jolley
6eacecfeb6
Append blog ID on persistent cart user meta
2017-06-08 13:47:23 +01:00
Kelly Dwan
0a265b53a2
Add display_name to customer data store
2017-05-24 13:57:11 -04:00
Mike Jolley
383a318f59
Merge pull request #14949 from aelia-co/Improvement-customer-total-spent-filter
...
New filters for customer total spent
2017-05-23 20:37:58 +01:00
Diego Zanella
89efc65327
Fixed call to woocommerce_customer_get_total_spent_query filter
...
* Variable `$customer` was passed to `$wpdb->get_var()` instead of the filter.
2017-05-23 20:35:21 +01:00
Mike Jolley
c16acc6b51
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
2017-05-23 19:00:24 +01:00
Mike Jolley
d3666738d8
Merge branch 'pr/15069'
2017-05-23 18:56:58 +01:00
Mike Jolley
00e5189a05
Merge pull request #15070 from rasmusbe/phpdoc-missing-return-throws
...
Phpdoc: Add missing return and throws
2017-05-23 18:50:58 +01:00
Diego Zanella
a6bcc73846
Added $customer to filter woocommerce_customer_get_total_spent_query
2017-05-23 17:06:16 +01:00
Diego Zanella
885cb14029
Merge branch 'master' into Improvement-customer-total-spent-filter
2017-05-23 17:05:08 +01:00
Mike Jolley
351b0e0c67
Support limiting in search_customers
2017-05-16 10:16:57 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Rasmus Bengtsson
4a3902cd48
PHPDoc: Add missing throws statement
2017-05-15 13:39:03 +02:00
Rasmus Bengtsson
6a7fc8650f
Remove unused local variables
2017-05-15 12:06:52 +02:00
Diego Zanella
3f3f2bdc2c
New filters for customer total spent
...
* Added new filters to allow altering the calculation of customer's total spent:
* `woocommerce_customer_get_total_spent`
* `woocommerce_customer_get_total_spent_query`
2017-05-08 19:39:13 +01:00
Mike Jolley
af09548ec0
Add missing shipping_company from internal props in data store
...
Fixes #14768
2017-04-28 13:44:22 +01:00
Jaume
5e53ed70d8
Fix: Creating customer triggers password changed
...
Sending POST /wc/v1/customers or POST /wc/v2/customers with the required args triggers the 'Notice of Password Changed' after creating the customer due to update() calls when the password still has a value.
2017-04-22 20:06:56 +02:00
Mike Jolley
899176bee7
woocommerce_update_customer_args filter
2017-04-11 12:47:53 +01:00