Claudio Sanches
1360f6fc3e
Docblock for #12287
2016-11-09 10:54:08 -02:00
Dwain Maralack
5f87161c06
add function arguments to the filter to give more context when filter is applied
2016-11-09 12:49:38 +02:00
Claudio Sanches
2de494e105
Merge pull request #12219 from ramiy/i18n-translation-comments
...
i18n: add translators comments
2016-11-03 13:24:35 -02:00
Mike Jolley
32e814eef1
Use all paid statuses in $customer->get_total_spent()
2016-11-03 11:27:03 +00:00
Rami Yushuvaev
93d55dade9
add translators comments
2016-10-29 20:32:38 +03:00
Claudio Sanches
4a1d5d3b0c
Use Order CRUD to save admin order data ( #12181 )
...
* Fixed downlodable permissions while updating orders.
- Fixed undefined $wpdb fatal error
- Fixed how to update permissions when updated the billing_email
cc @mikejolley
* Use order CRUD to update admin order data
* Updated WC_Meta_Box_Order_Data::save() params and updated docblocks
* Missing period
* Handle cache and status on CRUD side
2016-10-28 10:52:01 +01: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
Mike Jolley
311c540662
Merge pull request #11833 from aristath/master
...
Coding Standards (2nd pass)
2016-09-07 10:14:17 +01:00
Mike Jolley
cf59524dd7
Fix order total race condition in CRUD
2016-09-07 09:28:11 +01:00
Aristeides Stathopoulos
9dc4949e0a
Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis
2016-09-02 06:17:42 +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
Claudio Sanches
06280a7003
HTTPS for google maps
2016-08-31 14:18:55 -03:00
Aristeides Stathopoulos
17961f6484
WordPress.Arrays.ArrayDeclaration.ValueNoNewline
2016-08-27 06:04:10 +03:00
Aristeides Stathopoulos
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03:00
Mike Jolley
9bd57414c5
Remove set and get prop - no longer need the extra overhead since functions won't return wp_error now.
2016-08-26 10:48:17 +01:00
Mike Jolley
461ec4da16
Return false instead of throwing exception
2016-08-25 17:48:36 +01:00
Mike Jolley
658970cbc8
No string required here
2016-08-25 17:12:32 +01:00
Mike Jolley
3637814b92
Revert use of default_data for default args and just set that in constructor
2016-08-25 13:31:03 +01:00
Mike Jolley
25883f8687
Set_props helper to load data from DB and handle errors
2016-08-25 13:05:27 +01:00
Mike Jolley
938361535f
Exception handling
2016-08-24 16:02:19 +01:00
Mike Jolley
d9798f7226
Set reading to prevent exceptions during DB load
2016-08-24 14:37:19 +01:00
Mike Jolley
7e30e8dda3
Set defaults and handle order reads without exceptions
2016-08-24 12:34:19 +01:00
Mike Jolley
53f01b52a8
Bring back WC_Data_Exception
2016-08-24 10:46:29 +01:00
Mike Jolley
b727acd96e
Implement get and set prop methods
2016-08-23 18:48:48 +01:00
Mike Jolley
e08e5a816d
2d array handling
2016-08-23 15:49:34 +01:00
Mike Jolley
2636d04ba6
Setters
2016-08-23 15:25:50 +01:00
Mike Jolley
fdd7e797ba
API get refunds
2016-08-22 13:15:15 +01:00
Mike Jolley
9e45927803
Create refund with crud
2016-08-22 13:15:15 +01:00
Mike Jolley
1baef12395
qty -> quantity
2016-08-16 12:36:38 +01:00
Mike Jolley
837e08143b
Merge branch 'master' into orders-crud-classes
...
# Conflicts:
# includes/abstracts/abstract-wc-order.php
2016-08-03 12:32:27 +01:00
Mike Jolley
b11794ceac
@Since changes
2016-06-29 12:58:38 +01:00
Mike Jolley
46439ddba5
Refund unit tests
2016-06-22 16:31:05 +01:00
Mike Jolley
9da9d3bf69
Unit test conditional functions
2016-06-22 15:38:28 +01:00
Mike Jolley
8287b13cf1
Address and CRUD unit tests
2016-06-22 14:07:42 +01:00
Mike Jolley
ece2b5bf57
Order class
2016-06-21 20:06:39 +01:00
Mike Jolley
ee0798047e
Merge branch 'wc-get-orders-10500'
2016-03-14 16:09:01 +00:00
Mike Jolley
733b0c8c93
Lowercase includes %s string only
2016-03-14 10:41:48 +00:00
Mike Jolley
c1e8dd1fe8
Use wc_get_orders iternally
2016-03-09 16:11:05 +00:00
Mike Jolley
37003b2370
Round get_remaining_refund_amount
...
Fixes #10060
2016-01-13 11:07:05 +00:00
Mike Jolley
2e553cf220
Show order refunds in totals
...
Fixes #9589 @claudiosmweb
2015-11-30 15:25:48 +00:00
Nicola Mustone
c9da4f928a
check if ABSPATH is defined
2015-11-06 10:22:19 +01:00
Scrutinizer Auto-Fixer
08efaf84df
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-11-05 16:05:03 +00:00
Claudio Sanches
5893875b0c
Removed period for file headers
2015-11-03 11:53:50 -02:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Mike Jolley
abaa8f47d8
Moved refund hooks to avoid emails after API refund failure
2015-10-06 14:43:36 +01:00
Ewout Fernhout
535949b02e
add $display_refunded parameter to get_formatted_order_total
...
#8793
2015-08-13 15:45:49 +02:00
Mike Jolley
7b2aec4791
Take item qty into consideration when refunding orders
...
Fixes #8675
2015-07-29 13:13:41 +01:00
Mike Jolley
7285ce74e6
Tax display notice
2015-07-16 10:15:45 +01:00
Mike Jolley
db473cc369
Move refund logic into main order class.
...
These methods are not defined in the abstract.
2015-07-15 16:02:26 +01:00