Mike Jolley
c765ce644d
Inactive account handling
2018-04-30 15:38:45 +01:00
Mike Jolley
29961b540a
Fix up query
2018-04-18 12:04:53 +01:00
Mike Jolley
314d949d2c
Background process to cleanup
2018-04-17 15:21:03 +01:00
Rodrigo Primo
231328e112
phpcs fixes in includes/data-stores/class-wc-order-data-store-cpt.php
2018-03-08 16:28:16 -03:00
Patrick Garman
fd3a39345f
Return amount refunded as a float
...
An amount refunded should be numeric, I was receiving pHP notices that a non numeric value was encountered. Seems this is something potentially new as of PHP 7.1? Is there any reason we should **not** return a float here? Any null or empty response from the SQL query would be 0, which would still be accurate for the total that was refunded for that order.
```2018/01/27 16:50:50 [error] 46797#0: *2930 FastCGI sent in stderr: "PHP message: PHP Warning: A non-numeric value encountered in /wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php on line 212
PHP message: PHP Stack trace:
PHP message: PHP 1. include() /cms/wp-admin/post.php:174
PHP message: PHP 2. do_meta_boxes() /cms/wp-admin/edit-form-advanced.php:714
PHP message: PHP 3. WC_Meta_Box_Order_Items::output() /cms/wp-admin/includes/template.php:1063
PHP message: PHP 4. include() /wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php:41```
2018-01-27 17:07:20 -06:00
Peter Westwood
0b19427d1d
Order: Make note of two more meta keys that we store for an order.
2018-01-23 19:27:20 -07:00
Rodrigo Primo
e006e14d23
Ignore PHPCS in two instances
...
Ignoring PHPCS in two lines of the code where apparently it is not possible to fix the violations. I tried using what @claudiosanches suggested in this comment https://github.com/woocommerce/woocommerce/pull/17909#issuecomment-347168029 but both tags didn't work. Lets revisit this when PHPCS 3.2.0 is released and we can selectively disable rules (see https://github.com/squizlabs/PHP_CodeSniffer/issues/604 ).
2017-11-27 11:00:42 -02:00
Rodrigo Primo
5e43d92e07
Fix some PHPCS violations in includes/data-stores/class-wc-order-data-store-cpt.php
2017-11-24 17:25:16 -02:00
Rodrigo Primo
e12fa54bc6
phpcbf automatic coding standard fixes
2017-11-23 12:16:47 -02:00
claudiulodro
e6a9a5f79b
Fix date query meta unset checking
2017-10-24 13:07:21 -07:00
Boro Sitnikovski
5224eab917
Update PR with new logic
2017-09-05 19:56:56 +02:00
Boro Sitnikovski
85e3cee634
Use prop getters/setters instead
2017-09-05 15:17:16 +02:00
Jeremy Pry
2d4b7356df
Update some docblocks with proper parameters
2017-08-18 12:18:19 -04:00
Mike Jolley
e90fb6d54f
fix discount apply and save
2017-08-10 15:33:01 +01:00
Mike Jolley
cd8fb23884
Add ability to get local item rather than from DB
2017-08-10 14:38:02 +01:00
Mike Jolley
8ab1ef459c
WP_Query expects paged, not page
...
Fixes #15930
2017-07-03 12:24:30 +01:00
claudiulodro
62064d56f8
Add edge case test
2017-06-13 14:00:12 -07:00
claudiulodro
f1a9dbc69e
Extra checks and tests
2017-06-13 13:32:21 -07:00
claudiulodro
f020d54e67
Add support for paginate and return ids in wc_order_query
2017-06-12 13:26:29 -07:00
Mike Jolley
f866f164eb
Merge pull request #15244 from woocommerce/improvement/15187
...
Order query unit tests and fixes.
2017-05-24 12:03:40 +01:00
claudiulodro
201ea727db
Simplify status check
2017-05-23 18:52:03 -07:00
claudiulodro
4faad7d964
Finish unit tests and bugfixes
2017-05-23 18:44:37 -07:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
claudiulodro
9e9b9b86ba
Cant use empty check in customer query var
2017-05-14 17:05:46 -07:00
claudiulodro
cec2c3b7dc
Couple requested changes
2017-05-13 12:22:22 -07:00
claudiulodro
5b578c389f
Use previous filter name
2017-05-12 13:14:52 -07:00
claudiulodro
eee2ef82e8
Deprecate ->get_orders
2017-05-12 13:06:17 -07:00
claudiulodro
3861e32803
Migrate wc_get_orders
2017-05-12 11:45:01 -07:00
claudiulodro
5d86b2f001
Formatting
2017-05-09 14:55:39 -07:00
claudiulodro
93835f69db
New working date query format
2017-05-09 14:49:45 -07:00
claudiulodro
c89e389b3f
Good progress towards better date queries
2017-05-09 11:37:45 -07:00
Mike Jolley
dd3be1278b
Merge pull request #14733 from woocommerce/feature/13646
...
WC_Object_Query & WC_Order_Query
2017-05-07 14:24:12 +01:00
Claudio Sanches
421c9a3ba7
Introduced woocommerce_shop_order_search_results filter
...
Closes #14857
2017-05-03 18:14:41 -03:00
claudiulodro
7c393a4469
Better time handling
2017-04-28 14:01:06 -07:00
claudiulodro
1bb46ad876
Array filter results
2017-04-28 10:12:31 -07:00
claudiulodro
30d2332f48
Handle paginate
2017-04-27 19:14:48 -07:00
claudiulodro
0721354ff2
Add paginate
2017-04-27 15:02:02 -07:00
claudiulodro
11c7722eff
Update tests
2017-04-27 14:46:00 -07:00
claudiulodro
059389c684
Missed a spot
2017-04-27 14:13:06 -07:00
claudiulodro
4eb1396e85
Offload more to subclasses
2017-04-27 14:09:10 -07:00
claudiulodro
db3de7375d
Tweaks from feedback
2017-04-27 11:07:03 -07:00
claudiulodro
6aecb15505
Reduce scope
2017-04-27 08:38:18 -07:00
claudiulodro
9f0f0cd246
Polish and cleanup
2017-04-26 10:49:19 -07:00
Mike Jolley
234bc3c017
Missing arg in data store too
2017-04-26 11:08:47 +01:00
claudiulodro
efa1dbbda5
Basic working order queries
2017-04-25 14:52:17 -07:00
Mike Jolley
a325d03deb
wc_get_orders support for guest orders and unit tests
...
Fixes #14575
2017-04-20 18:05:58 +01:00
Mike Jolley
999a597055
Escaping in search orders
2017-03-31 17:14:08 +01:00
JeroenSormani
a29ba23fab
Miscellaneous cleanup of typos + change some return types for IDE helpers
2017-03-20 11:03:14 +01:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
d55653a408
Merge branch 'master' into fix-13498
...
# Conflicts:
# includes/class-wc-order.php
# tests/unit-tests/crud/data.php
2017-03-15 15:52:40 +00:00