Mike Jolley
fce44e2271
Status filter adjustment #13357
2017-02-27 11:55:09 +00:00
Mike Jolley
31d428131e
Imrpove checkout performance when updating product sales
2017-02-10 23:41:53 +00:00
Mike Jolley
b5572fc041
wc_create_refund should handle payment and stock
2017-02-08 16:19:47 +00:00
Justin Shreve
b660eda4b8
Add date searching to wc_get_orders.
2017-01-17 12:52:27 -08:00
Mike Jolley
451199a388
Hooks when creating refunds
2017-01-10 14:14:05 +00:00
Mike Jolley
d7dfdd3d10
Wrap all deprecation calls.
2016-11-23 16:15:00 +00:00
Mike Jolley
b1007c9d62
Fix order item meta saving
2016-11-23 15:37:34 +00:00
Mike Jolley
edf973d35f
Feedback
2016-11-21 14:30:56 +00:00
Mike Jolley
b1565cf0d6
Download update routine and interface
2016-11-18 19:29:37 +00:00
Mike Jolley
1b6d7acd24
Data store for downloads
2016-11-18 17:13:02 +00:00
Mike Jolley
ac3be6ba50
Order stores complete
2016-11-18 14:07:21 +00:00
Mike Jolley
5d9a9b4dec
Fix tests
2016-11-18 11:14:09 +00:00
Mike Jolley
c933f82961
Refunds
2016-11-17 16:53:13 +00:00
Mike Jolley
ac6bda2f62
Product crud abstract todos ( #12316 )
...
* Get dimensions and weights, with soft deprecation
* Product attributes
* Ratings
* Fix read method
* Downloads
* Feedback
* Fix up store
2016-11-11 15:31:00 +00:00
Mike Jolley
4fc03c9930
Revert "[Product CRUD] Abstract todos ( #12305 )"
...
This reverts commit 9a6136fcf8
.
2016-11-11 11:58:57 +00:00
Mike Jolley
9a6136fcf8
[Product CRUD] Abstract todos ( #12305 )
...
* Get dimensions and weights, with soft deprecation
* Product attributes
* Ratings
* Fix read method
* Downloads
* Feedback
2016-11-11 11:43:52 +00:00
Mike Jolley
5f4dbdb733
[Product CRUD] Variations - setters, getters and admin. ( #12228 )
...
* Started on variation changes
* Stock functions
* Variation class
* Bulk change ->id to get_id() to fix variation form display
* Missing status
* Fix add to cart
* Start on stored data save
* save variation
* Save_variations
* Variation edit panel
* Save variations code works.
* Remove stored data code and fix save
* Improve legacy class
* wc_bool_to_string
* prepare_set_attributes
* Use wc_get_products
* More feedback fixes
* Feedback fixes
2016-11-09 16:05:49 +00: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
55f08d62ae
add translators comments
2016-10-29 23:03:28 +03:00
Mike Jolley
85f22f9f11
Update coupon on pending order
...
Closes #12096
2016-10-18 12:27:56 +01:00
Claudio Sanches
657c312cae
Fix strings case ( #12069 )
...
* Fixed case for all _e, esc_attr_e and esc_html_e strings
* Fixed case for all _n_noop strings
* Fixed case for all _x strings
* Fixed case for all __, esc_html__ and esc_attr__ strings
* Fixed a few more strings
* Fixed strings in unit tests
* Fix PayPal Standard case.
* Save Order text
2016-10-12 11:16:30 +01:00
Claudio Sanches
7172429244
Fixed coding standards
2016-09-14 16:00:14 -03:00
Claudio Sanches
0fced8d5d5
Fixed wrong "quantity" while reducing stock
...
cc @mikejolley
2016-09-14 15:35:17 -03: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
3f9ab31461
Fix CRUD refunds
2016-09-07 10:04:56 +01:00
Aristeides Stathopoulos
fde1037757
fix failing tests.
2016-09-01 23:50:14 +03:00
Aristeides Stathopoulos
82f3cc221e
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis
2016-08-27 07:23:02 +03:00
Aristeides Stathopoulos
6c30f84fa2
WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys
2016-08-27 06:23:21 +03:00
Aristeides Stathopoulos
17961f6484
WordPress.Arrays.ArrayDeclaration.ValueNoNewline
2016-08-27 06:04:10 +03:00
Aristeides Stathopoulos
ec8a0b288b
PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast
2016-08-27 05:08:49 +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
938361535f
Exception handling
2016-08-24 16:02:19 +01:00
Mike Jolley
cde78abed3
Working on catching errors
2016-08-24 15:26:35 +01:00
Mike Jolley
95b11606fc
get_product_from_item -> get_product
2016-08-22 16:51:24 +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
f4a4f6c361
Reduce stock and other notices
2016-08-09 14:15:04 +01:00
Mike Jolley
7685587b22
payment_method
2016-08-05 16:04:41 +01:00
Mike Jolley
84c52370fa
more getters
2016-08-05 15:57:40 +01:00
Mike Jolley
39b4831e95
get_id
2016-08-05 15:56:23 +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
Rodrigo Primo
3c485fc2a1
Use WC_Cache_Helper::get_cache_prefix() to generate the cache key for wc_orders_count()
2016-06-29 16:19:47 -03:00
Rodrigo Primo
1a394fbe02
Improve wc_orders_count() performance by running a query to count only posts of the given status
...
The function wc_orders_count() is called on every admin page. WooCommerce core uses it to count only orders with the status 'processing' and typically a site has only a few of those orders. But since wc_orders_count() calls internally wp_post_count() this means that MySQL will have to count the number of orders of all status. Thus, in a site with a significant number of orders, this query can be slow.
This commit changes wc_orders_count() function to query directly the database to get the number of orders for a given status instead of using wp_post_count(). On a WooCommerce installation I manage, the old query takes about 2 seconds to run and the new query takes 0.002 seconds.
2016-06-29 15:04:59 -03:00
Mike Jolley
b11794ceac
@Since changes
2016-06-29 12:58:38 +01:00
Mike Jolley
eb2a840db0
Use string in search
...
Closes #11222
2016-06-23 12:32:20 +01:00
Mike Jolley
46439ddba5
Refund unit tests
2016-06-22 16:31:05 +01:00
Mike Jolley
7b3a9b27ed
Function replacements for class methods
2016-06-21 20:26:35 +01:00
Claudio Sanches
c9a3ce465f
Fixe the return type of wc_order_search()
2016-06-13 15:26:14 -03:00
Claudio Sanches
e253382702
Created wc_order_search() function
...
cc @mikejolley
2016-06-13 17:08:20 +01:00