Claudio Sanches
5e4f3b40e3
Include since tag to new methods
2021-07-20 20:55:39 -03:00
Mike Jolley
e168702bb3
Add shipping phone to data stores
2021-06-03 13:55:37 +01:00
Barry Hughes
568e1e4f94
Add `@since` tag
2021-04-07 14:11:08 -07:00
Barry Hughes
87cdcff52d
Merge branch 'trunk' into fix/28759-billing-shipping-addresses
2021-04-06 17:22:52 -07:00
Mike Jolley
35b02e1660
Customer billing and shipping getter should merge changed data
2021-03-30 16:27:09 +01:00
𝓑𝓪𝓻𝓻𝔂 𝓗𝓾𝓰𝓱𝓮𝓼
f0c164d2d4
Do not copy fields from the billing address to the shipping address. | #28759
2021-03-26 17:08:37 -07:00
vedanshujain
f945f9a015
Add protective check to make sure WC()->session is initialized before loading the data store.
2020-12-30 19:20:51 +05:30
Nestor Soriano
7485b9165f
Convert optional-before-required arguments to required.
...
In PHP 8 required parameters after optional parameters in
function/method signatures trigger a deprecation notice. These type
of parameters are pointless since a value needs to always be
provided for them anyway, so they are actually de-facto required.
This commit converts all these not-so-optional parameters into
truly required parameters by removing their default values.
2020-10-02 09:45:09 +02:00
Nestor Soriano
53d33457e3
Fix code style/sniffer errors in a few files.
2020-10-02 09:34:09 +02:00
Claudio Sanches
d48f1d4e2e
Fixed package tag usage
2020-08-05 13:36:24 -03:00
parmarhardip
12985e107a
#23596 - I have solve this issue.
2019-05-06 11:43:56 +05:30
Mike Jolley
f68a547f53
Don't mix session and customer data
2019-01-15 16:49:01 +00:00
Peter Fabian
1a2f0d4a0b
Removed check for invalid utf8 in passwords.
2018-08-17 11:01:30 +02:00
Peter Fabian
925002bc37
Changed wc_clean sanitization to checking for valid utf8 and the input is later sanitized by WordPress db layer.
...
It caused issues in 2 places: Order item name (product name) and user's password.
2018-08-06 20:49:27 +02:00
Claudio Sanches
d528e65849
Fixed includes/class-wc-customer.php PHPCS violations
2018-03-19 20:15:16 -03:00
Claudio Sanches
0f797714f1
Tweaks on account display name
2018-02-21 21:52:45 -03:00
Claudio Sanches
c0e29d0cbe
Merge branch 'fix/17606' into add/17606
2018-02-21 21:34:38 -03:00
Mike Jolley
e9105bd37d
Fix tests
2017-12-21 19:00:55 +00:00
Arif Widianto
55b65d405e
Refactor set_display_name with a localized value and prevent email
2017-11-24 21:19:19 +07:00
Mike Jolley
2f6aaa85bb
Avoid using meta directly
2017-08-08 13:04:27 +01:00
Claudio Sanches
df0ec12fb4
Deprecated wc_get_customer_avatar_url() in favor of get_avatar_url()
...
And remove duplicated code.
2017-06-09 16:25:57 -03:00
Claudio Sanches
72b98cbf5d
Fixed WC_Customer->set_display_name @since #15239
2017-05-24 17:45:20 -03:00
Kelly Dwan
0a265b53a2
Add display_name to customer data store
2017-05-24 13:57:11 -04:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Claudio Sanches
4f1577fb27
Added support new WC_DateTime in WC_Customer
2017-03-10 01:20:33 -03:00
JeroenSormani
d97ae5f9a6
Set the default to '' to prevent warning
2017-03-01 19:45:38 +01:00
Mike Jolley
1d9f71fee5
Wrap read with try catch block
2017-02-23 12:09:39 +00:00
Justin Shreve
dcecf0f228
Fix get_hook_prefix format
2017-01-24 11:02:06 -08:00
Justin Shreve
58b4cb9cf4
Make sure get_hook_prefix is present on all of our classes.
...
And fix up an exclude internal keys call for the customer data store.
2016-11-22 04:20:25 -08:00
Justin Shreve
174aa38be6
Start moving meta to normal stores, instead of a separate meta store.
2016-11-22 04:05:05 -08:00
Mike Jolley
8d6f236d47
Fix save
2016-11-17 16:02:09 +00:00
Mike Jolley
d88b512143
Setters
2016-11-17 15:17:23 +00:00
Mike Jolley
286cb2d1c8
get_address_prop for customers
2016-11-17 15:05:40 +00:00
Justin Shreve
53524141b7
Fix up the other delete signatures.
2016-11-15 11:35:10 -08:00
Mike Jolley
00ed627b29
Data stores
2016-11-14 18:18:08 +00:00
Justin Shreve
1797c76a14
Implement WC_Data_Store and related code & tests.
2016-11-08 01:39:47 -08:00
Mike Jolley
32e814eef1
Use all paid statuses in $customer->get_total_spent()
2016-11-03 11:27:03 +00:00
Justin Shreve
bff6f5f2ad
Remove the $id parameter from Customer & Coupon CRUD's update_post_meta fucntion.
...
This is a private function that will only interact with one specific object ($this->get_id()).
2016-10-19 08:15:49 -07:00
Mike Jolley
cfbb8d6601
Use meta as a cache for order/spent methods.
...
Closes #12080
2016-10-14 15:11:10 +01:00
Aristeides Stathopoulos
831b4463d0
Merge pull request #5 from woothemes/master
...
sync
2016-09-09 16:49:48 +03:00
Justin Shreve
e1e6c682b5
* Stop using _ as a prefix for protected or private vars and functions. We have a keyword for that.
...
* Introduces set_id and get_id to WC_Data for the CRUD classes to share
2016-09-09 05:36:54 -07:00
Aristeides Stathopoulos
734f284fa4
WordPress.PHP.YodaConditions.NotYoda
2016-09-08 01:32:24 +03:00
Aristeides Stathopoulos
8fe4cd65a4
PEAR.Functions.FunctionCallSignature.SpaceBeforeOpenBracket
2016-09-02 04:12:22 +03:00
Aristeides Stathopoulos
fde1037757
fix failing tests.
2016-09-01 23:50:14 +03:00
Mike Jolley
1b2df3dd3b
Merge branch 'pr/11797'
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
# includes/api/class-wc-rest-coupons-controller.php
# includes/class-wc-coupon.php
# tests/unit-tests/api/coupons.php
# tests/unit-tests/coupon/crud.php
2016-09-01 11:46:05 +01:00
Mike Jolley
d9a0d0988b
Handle meta data and fix unit tests
2016-08-31 15:43:34 +01:00
Mike Jolley
1595cc5767
remove changed
2016-08-31 13:25:13 +01:00
Mike Jolley
7439f6d79f
Use set_props
2016-08-30 17:59:41 +01:00
Mike Jolley
047242515d
Make API and CRUD use consistent keys and make use of data
2016-08-30 17:50:35 +01:00