Commit Graph

1782 Commits

Author SHA1 Message Date
Claudiu Lodromanean f311ad0d12
Merge pull request #21608 from woocommerce/use-crud-instead-of-has-post-thumbnail
Use $product->get_image_id() instead of has_post_thumbnail()
2018-10-25 11:51:11 -07:00
Claudio Sanches 53fa49b13a Removed non-existing WC_Product_Simple->set_date_created_gmt method
Closes #21660
2018-10-25 13:12:40 -03:00
Claudiu Lodromanean 6ebdffd615
Merge pull request #21617 from itowhid06/master
[REST API] pass missing $filter as parameter in legacy get_order_refund endpoints
2018-10-22 09:40:26 -07:00
Towhidul Islam b68cef2062 [REST API] pass missing $filter as parameter in get_order_refund 2018-10-19 20:41:20 +06:00
Claudio Sanches bd37853923 Improved review and reviewer_email 2018-10-18 18:53:16 -03:00
Claudio Sanches f3fdcd2ec0 Fixed order or collection params 2018-10-18 18:17:15 -03:00
Claudio Sanches 17a80c863e [REST API] Fixed product reviews schema and content 2018-10-18 18:13:21 -03:00
Claudio Sanches d987fb95b9 [REST API] Register data endpoints 2018-10-18 16:04:54 -03:00
Rodrigo Primo 9b094fc74d Use $product->get_image_id() instead of has_post_thumbnail()
This commit replaces all instances where has_post_thumbnail() was used with $product->get_image_id(). This is a continuation of 64b589f032 and is needed to support the custom product tables plugin as has_post_thumbnail() relies on a post meta.
2018-10-18 09:28:20 -03:00
Claudiu Lodromanean 8c6b7032c6
Merge pull request #21596 from woocommerce/fix/rest-api-v3-producs-schema
[REST API] Fixed schema stock_status on products endpoints
2018-10-17 08:25:12 -07:00
Claudiu Lodromanean 5ca9600a23
Merge pull request #21595 from woocommerce/fix/rest-api-v3-trashed-orders
[REST API] Ability to query orders from trash bin
2018-10-17 08:24:06 -07:00
Claudiu Lodromanean 6f32369144
Merge pull request #21594 from woocommerce/fix/rest-api-v3-order-refunds-schema
[REST API] Fixed schema for refunded_payment in order refunds endpoint
2018-10-17 08:11:16 -07:00
Claudio Sanches 2bcd4598f8 Fixed coding standards 2018-10-16 21:15:03 -03:00
Claudio Sanches a9b36a4e23 [REST API] Fixed schema stock_status on products endpoints 2018-10-16 21:12:49 -03:00
Claudio Sanches c6daf8287d [REST API] Ability to query orders from trash bin 2018-10-16 20:19:34 -03:00
Claudio Sanches 98c8bb3eda [REST API] Fixed schema for refunded_payment in order refunds endpoint 2018-10-16 19:20:53 -03:00
Claudio Sanches 0f1f91f90a [REST API] Fixed duplicated entry in orders notes schema 2018-10-16 19:07:58 -03:00
Claudiu Lodromanean 84ec31d3cc
Merge pull request #21588 from woocommerce/fix/21587
[REST API] Product downloads - Check if file ID is not empty and exists
2018-10-16 10:09:52 -07:00
Claudio Sanches 63390c181d [REST API] Fixed schema for product's downloads
Download ID are generated with wp_generate_uuid4() for while now.
Also we allow users to manipulate it.
2018-10-16 13:19:41 -03:00
Claudio Sanches 00c1a9016a Check if file ID is not empty and exists
Closes #21587
2018-10-16 13:01:51 -03:00
Alex Kirk 3e7cf4be21
Fix typo revivew 2018-10-15 15:54:19 +02:00
Claudiu Lodromanean 2008b8e2b2
Merge pull request #21384 from woocommerce/fix/rest-api-order-statuses
[REST API] Updated order statuses slugs
2018-09-24 11:28:56 -07:00
Claudio Sanches 4ce8544478 [REST API] Fixed reports results 2018-09-18 12:14:17 -03:00
Claudio Sanches bd7a73696a [REST API] Updated order statuses slugs
All REST API does not include "wc-" prefix, removing here makes easy to
work with all endpoint without care about any prefix.
2018-09-18 11:27:26 -03:00
Claudio Sanches 48a0045373 [REST API] Fixed endpoints registered in /reports 2018-09-18 11:23:35 -03:00
Claudiu Lodromanean 7b1344e567
Merge pull request #21327 from woocommerce/feature/21119
[REST API] Allow apply and remove coupons in orders endpoint
2018-09-12 08:04:00 -07:00
Claudio Sanches bfdd758bd4 Improve coupons logic and throw errors for invalid coupons 2018-09-11 18:26:32 -03:00
Claudio Sanches 8d9da1cb94 Created method to apply and remove coupons 2018-09-11 18:10:58 -03:00
Claudio Sanches fda3f6890c Fixed allow to remove coupons when using line item ID. 2018-09-11 17:18:59 -03:00
Claudiu Lodromanean 92c5c4e54e
Merge pull request #21326 from woocommerce/fix/rest-api-settings-schema
[REST API] Updated Settings schema since now we allow batch update
2018-09-11 13:16:36 -07:00
Claudio Sanches 2b7e5121f2 [REST API] Allow apply and remove coupons in orders endpoint
Closes #21119
2018-09-11 16:53:55 -03:00
Claudio Sanches ccd1e1ced6 Fixed coding standards 2018-09-11 16:53:41 -03:00
Claudio Sanches 0ab5dc3e5b [REST API] Updated Settings schema since now we allow batch update 2018-09-11 16:21:10 -03:00
Claudio Sanches 45c542aa8a [REST API] Fixed order notes schema 2018-09-11 15:53:13 -03:00
Claudio Sanches 61873627a7 Merge branch 'master' into feature/rest-api-v3 2018-09-10 19:16:22 -03:00
Claudiu Lodromanean ba0a989a38
Merge pull request #21306 from woocommerce/feature/21115
[REST API] Reports totals endpoints
2018-09-10 10:23:56 -07:00
Claudiu Lodromanean 75bac9f3c6
Merge pull request #21316 from woocommerce/fix/21120
Replaced in_stock with stock_status for v3 products endpoint.
2018-09-10 09:47:31 -07:00
Peter Fabian f80d628c56 Fixed omitted grandparent's prepare_objects_query for products endpoint. 2018-09-10 13:49:42 +02:00
Peter Fabian 1237e5ef7e Added enums to collection_params for stock_status. 2018-09-10 12:36:18 +02:00
Peter Fabian 0ddd8f4506 Fixed stock_status validation. 2018-09-10 12:32:01 +02:00
Peter Fabian 70a4309d81 Replaced in_stock with stock_status for v3 products endpoint. 2018-09-10 11:53:20 +02:00
Claudio Sanches 14a1217218 Load all product types even when empty 2018-09-08 22:45:51 -03:00
Claudio Sanches 5f723fc0d9 Removed extra code 2018-09-08 22:40:27 -03:00
Claudio Sanches d199538514 Inserted data for /reports/reviews/count endpoint 2018-09-08 22:10:19 -03:00
Claudio Sanches d2b0ff0f32 Initial /reports/reviews/totals endpoint 2018-09-08 21:19:57 -03:00
Claudio Sanches 2fcabfe7e6 /reports/coupons/totals endpoint 2018-09-08 21:04:13 -03:00
Claudio Sanches daf6650d5d /reports/customers/count endpoint 2018-09-08 20:32:39 -03:00
Claudio Sanches a0145c0265 Fixed schema to include instance_id for shipping_lines 2018-09-08 19:12:40 -03:00
Claudio Sanches 30a2e87cf5 Fixed schema to include instance_id for shipping_lines 2018-09-08 19:10:45 -03:00
Claudio Sanches 5d67b474ed Load product types 2018-09-08 19:02:22 -03:00
Claudio Sanches 017b44693b Updated names 2018-09-05 10:30:14 -03:00
Claudio Sanches f13deab00a /reports/orders/count 2018-09-05 10:28:22 -03:00
Claudio Sanches 25ed037fb0 Include new reports endpoints results 2018-09-05 09:36:19 -03:00
Claudio Sanches 9fd386155f Allow to easy manipulate /reports endpoint results 2018-09-05 09:28:58 -03:00
Claudio Sanches c271fca508 Restored reports endpoints 2018-09-05 09:24:02 -03:00
Claudio Sanches 6a3483fa8a [REST API] Make product's created date editable 2018-09-03 10:57:28 -03:00
Andrew Minion 067a79c336
fix typo 2018-08-23 14:37:54 -04:00
Claudiu Lodromanean fe69a875e2
Merge pull request #20993 from woocommerce/fix/20959
Changed wc_clean to checking for valid utf8 for line items and password.
2018-08-22 10:12:48 -07:00
Peter Fabian 1a2f0d4a0b Removed check for invalid utf8 in passwords. 2018-08-17 11:01:30 +02:00
Gerhard Potgieter 2c15bee1d4 Refine wp.org update check to use correct data structures when querying data. 2018-08-16 14:27:35 +02:00
Gerhard Potgieter 2625823734 Add fallback to wp.org plugin info check if the changelog check fails, this is for free plugins hosted on .org 2018-08-16 14:09:39 +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 0b0fba824b Returns only reviews and fixed prepared args 2018-08-02 14:01:46 -03:00
Claudio Sanches c98cb8b0fd Introduced batch endpoint and set default for status 2018-07-31 13:33:33 -03:00
Claudio Sanches 48078f6bcc DELETE /product/reviews/<id> 2018-07-31 12:37:44 -03:00
Claudio Sanches a286bde484 PUT /products/reviews/<id> 2018-07-31 11:51:18 -03:00
Adrian Jagusch dc8d15356b
Ensure coding standards on #20914 2018-07-27 11:38:57 +02:00
Adrian Jagusch 7b7bccaf21
Ensure coding standards on #20914 2018-07-27 10:51:15 +02:00
Claudio Sanches 2f3779afa9 POST method for product reviews endpoint 2018-07-26 16:31:17 -03:00
Adrian Jagusch 2a2345acae
Fixes #20914 2018-07-26 17:32:08 +02:00
Claudio Sanches 1137782c6a Improved links 2018-07-24 15:56:46 -03:00
Claudio Sanches 7d07d52279 Allow _fields 2018-07-24 15:52:48 -03:00
Claudio Sanches 73938b642a Allow fetch multiple reviews 2018-07-24 15:45:12 -03:00
Claudio Sanches 6233d8bdf0 Improved reviews schema 2018-07-24 15:10:41 -03:00
Claudiu Lodromanean a0b4a8df03
Merge pull request #20611 from woocommerce/fix/20349
Allow filtering variations by attributes in API.
2018-07-24 10:25:36 -07:00
Claudio Sanches 809c2f0539 Merge branch 'feature/rest-api-v3' into feature/rest-api-reviews-v3 2018-07-24 14:01:50 -03:00
Claudio Sanches 99840c3914 Merge branch 'master' into feature/rest-api-v3 2018-07-12 16:07:57 -03:00
Claudiu Lodromanean 6dbd5d5323
Merge pull request #20731 from woocommerce/add/20724
Do not load all tables in multisite system status
2018-07-11 13:42:52 -07:00
Peter Fabian 47d0bb7b6a Removed variables that are not needed. 2018-07-11 13:44:43 +02:00
Gerhard Potgieter 3cda8c439c Better table matching on multisite, hat tip to @claudiulodro for pointing me in the right direction. 2018-07-11 11:19:10 +02:00
Peter Fabian 3af9c1e95b Merge branch 'master' into fix/20349
# Conflicts:
#	tests/framework/helpers/class-wc-helper-product.php
#	tests/unit-tests/api/products.php
2018-07-09 18:18:06 +02:00
Peter Fabian 2839dba7d2 Switched implementation of variation query parameters in the API from SQL query adjustment to one extra parent query. 2018-07-09 17:14:12 +02:00
Gerhard Potgieter beaa610cc0 Only load tables for system that is part of current multisite, this avoids displaying all tables in a MS speeding up page load, and also prevent divulding tables on other sites in the MS environment. 2018-07-09 13:48:05 +02:00
Claudio Sanches 47cb949ea4 Reviews 2018-07-04 15:15:33 -03:00
Mike Jolley a480cff0d2 Logic is not grouped specific; only for product types with children 2018-06-29 15:24:17 +01:00
Eleanor Martin c94a5df7a4 Allowing API deletion of grouped products. #20666 2018-06-29 15:01:10 +01:00
Claudiu Lodromanean d0491072e8
Merge pull request #17895 from woocommerce/update/use-post-author-for-customer-id
Use post_author instead of the post meta '_customer_user'
2018-06-25 11:23:59 -07:00
Peter Fabian ef3d32699c Fixed missing key errors. 2018-06-23 13:55:42 +02:00
Mike Jolley 66ae57699a Return error code if parent is invalid 2018-06-19 12:54:57 +01:00
Rodrigo Primo 43d22a2349 Merge branch 'master' into update/use-post-author-for-customer-id 2018-06-18 15:17:19 -03:00
Peter Fabian 1a3b5b165d Factor out parent table name to variable, allow big SELECT. 2018-06-18 10:15:36 +02:00
Claudiu Lodromanean ee47ceb361
Merge pull request #20537 from woocommerce/update/transactions-revert
Transactions, caching, and version transient cleanup issues
2018-06-15 09:11:23 -07:00
Mike Jolley ce1810cd1a
Merge pull request #20497 from woocommerce/fix/20485
API: Order images by position before saving
2018-06-14 15:24:49 +01:00
Mike Jolley 9f86839cab Remove wc_transaction_query in favour of logging 2018-06-14 14:39:18 +01:00
Mike Jolley fcd23567f6 Clear transients tool; clear wc_layered_nav_counts 2018-06-12 12:31:15 +01:00
Mike Jolley cfda380d2f API: Order images by position before saving 2018-06-12 12:13:10 +01:00
Rodrigo Primo dd8bf8b522 Merge branch 'master' into update/use-post-author-for-customer-id 2018-06-11 10:44:14 -03:00
Peter Fabian db9d2f2c30 Made path /orders/refund_id return invalid order id msg. 2018-06-07 13:26:29 +02:00
Claudio Sanches 4729ef8e3c
Merge pull request #20309 from woocommerce/fix/wc-api-dev-53
Removed 'orders_count' and 'total_spent' fields from customer v3 API.
2018-06-06 17:25:42 -03:00
Peter Fabian 9ce165d75e Added extra join with parent product to filter variable products from REST API 2018-06-05 13:22:22 +02:00