Mike Jolley
472e64270a
Check parent status when seeing if variation is purchasable.
2018-02-20 12:34:33 +00:00
Mike Jolley
7c61f05bb1
Merge pull request #18620 from woocommerce/fix/get-downloads-order-by
...
Fix: properly set orderby and order when calling WC_Customer_Download_Data_Store::get_downloads()
2018-02-19 14:44:21 +00:00
Mike Jolley
b379e213c8
Allow search_products to find parent ids
2018-02-08 16:36:24 +00:00
Mike Jolley
7dd9c7fb0e
Added ability to search for all post statuses
2018-02-08 12:53:39 +00: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
Rodrigo Primo
9c4c006baa
Fix: set orderby and order when calling WC_Customer_Download_Data_Store::get_downloads()
...
This commit fixes a bug in WC_Customer_Download_Data_Store::get_downloads() that made impossible to change the order in which the query returned the results. This method accepts the arguments `order_by` and `order` but it was ignoring them and always using the default values ('permission_id' and 'ASC' respectively).
One of the assertions of the WC_Customer_Download_Data_Store::get_downloads() test method was modified to make sure the code now works.
This bug was introduced by commit a443419
.
2018-01-26 15:55:13 -02: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
aad2c83994
Remove unused variables
...
This commit removes two unused variables from WC_Product_Data_Store_CPT class.
2018-01-03 16:00:28 -02:00
Rodrigo Primo
22f1e549ef
Manually fixes remaining coding standard violations
2018-01-03 15:57:33 -02:00
Rodrigo Primo
a2b8e38a61
Fix coding standards violations automatically using phpcbf
2018-01-03 15:27:48 -02:00
Claudiu Lodromanean
20f698db2b
Merge pull request #18219 from woocommerce/fix/18197
...
Compare the date modified when loading session data.
2017-12-22 08:17:14 -08:00
Mike Jolley
e9105bd37d
Fix tests
2017-12-21 19:00:55 +00:00
Fulvio Notarstefano
e718d7bd40
[ #18223 ] Rename var to a more apt name
2017-12-19 17:19:10 +08:00
Fulvio Notarstefano
ee123fb739
[ #18223 ] Add argument to woocommerce_product_related_posts_query filter
2017-12-19 10:18:33 +08:00
Mike Jolley
6fd3d9c100
Compare the date modified when loading session data.
2017-12-18 16:43:18 +00:00
Claudio Sanches
2f6f6112c2
Merge branch 'master' into feature/webhook-crud
2017-12-07 18:21:52 -02:00
Mike Jolley
c3623a9967
Update docblock for $include_taxes
...
Closes #18053
2017-12-07 11:46:35 +00:00
Claudio Sanches
0f4f8a3f16
Merge branch 'master' into feature/webhook-crud
2017-12-04 12:37:10 -02:00
Mike Jolley
0a9485c465
Merge branch 'master' into feature/11259
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# includes/admin/list-tables/class-wc-admin-list-table-products.php
# includes/class-wc-install.php
# includes/wc-update-functions.php
2017-12-04 14:14:03 +00:00
Claudiu Lodromanean
224fa43fe2
Merge pull request #17986 from woocommerce/fix/12439-pending-delivery
...
Fixed webhook initial test delivery ping
2017-12-01 10:31:46 -08:00
Claudiu Lodromanean
1a2a332f54
Merge pull request #17939 from woocommerce/feature/17734
...
Apply Webhooks CRUD into REST API
2017-12-01 10:07:21 -08:00
Claudio Sanches
f5cddc4f36
Fixed webhook initial test delivery ping
...
Part of #12439
2017-12-01 14:04:59 -02:00
Claudio Sanches
01b3f2bac4
Trigger webhook when delivery URL is changed
2017-11-30 16:48:16 -02:00
Claudio Sanches
575e2d2224
Advanced webhooks search
2017-11-28 17:39:42 -02:00
Claudio Sanches
c6f8e95b97
Merge branch 'master' into feature/webhook-crud
2017-11-28 15:09:10 -02:00
Claudio Sanches
8ed6e7436f
Merge pull request #17909 from woocommerce/update/phpcs-violations
...
Fix some PHPCS violations
2017-11-27 18:42:24 -02: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
3d6bd30d8a
Fix some PHPCS violations in includes/data-stores/abstract-wc-order-data-store-cpt.php
2017-11-24 17:25:31 -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
Mike Jolley
c5a80d080b
Rename so delete is hidden
2017-11-23 14:41:17 +00:00
Mike Jolley
8dea28e6c2
Save default cat when saving products
2017-11-23 14:26:43 +00:00
Rodrigo Primo
e12fa54bc6
phpcbf automatic coding standard fixes
2017-11-23 12:16:47 -02:00
claudiulodro
a878b0cde5
Some phpcs
2017-11-22 14:03:26 -08:00
claudiulodro
9ec24731bb
Generalize child_is_in_stock
2017-11-21 15:06:35 -08:00
claudiulodro
a73436bdcd
Merge remote-tracking branch 'origin/master' into HEAD
2017-11-20 14:43:12 -08:00
claudiulodro
cebe335dda
Update routine
2017-11-20 14:21:08 -08:00
claudiulodro
03d51e5471
Tweak variable on backorder logic
2017-11-20 11:32:30 -08:00
claudiulodro
b64b26d030
Variable products are on backorder if all children are backordered
2017-11-20 11:19:06 -08:00
Claudio Sanches
13978e496b
Merge branch 'master' into feature/webhook-crud
2017-11-20 10:34:35 -02:00
Mike Jolley
a23541ad5d
Fix 4.9 conflict with variation names
...
`santiize-title` works differently with `/` chars in 4.9. This update
routine keeps variations functioning by doing a DB update on read.
Fixes #17775
2017-11-18 14:53:18 +00:00
Claudiu Lodromanean
9c1d3b8108
Merge pull request #17726 from woocommerce/fix/17713
...
non-enabled children should not be ignored
2017-11-17 10:07:38 -08:00
claudiulodro
dddf0ee473
Variable product sync
2017-11-17 08:46:49 -08:00
Mike Jolley
a899b53b57
Unit test fix: Exclude syntax_highlighting
2017-11-16 18:58:09 +00:00
Claudio Sanches
9fe0c7261e
Merge branch 'master' into feature/webhook-crud
2017-11-16 12:20:22 -02:00
Mike Jolley
11d0293ddd
non-enabled children should not be ignored
...
This fixes #17713 by also returning private children (non-enabled).
2017-11-16 11:56:51 +00:00
Mike Jolley
7347b25ce0
Restore removed action
2017-11-13 19:07:02 +00:00
Mike Jolley
3e7968d37b
Merge branch 'master' into pr/16418
2017-11-13 14:37:18 +00:00
Claudio Sanches
6553a71586
Fixed how read empty dates while reading webhooks from database
2017-11-10 11:58:25 -02:00
Claudio Sanches
61efd99c61
Fixed WC_Webhook_Data_Store::get_webhooks_ids transient
2017-11-09 11:03:14 -02:00
Mike Jolley
7fa02bd4cb
Missing cache clear on delete
2017-11-08 12:21:03 +00:00