Mike Jolley
020a7b518f
Fix API set of reviews_allowed
...
#12618
2016-12-16 11:24:11 +00:00
Claudio Sanches
af52cf4f73
[2.6] [REST API] Throw exception when product image ID is not a valid attachment
2016-12-14 21:11:50 -02:00
Justin Shreve
da1e14c087
Add WC CLI commands powered by the REST API.
2016-12-08 10:59:07 -08:00
Mike Jolley
4bacbaf90c
Fix completed and paid date meta keys.
2016-12-08 11:19:32 +00:00
Mike Jolley
47fbae4d26
Product Visibility Taxonomies ( #12527 )
...
* Convert visibility and featured to taxonomy
* Comment
* Add missing tax_queries
* Only check SKU after read.
* Added visibility term for outofstock products to speed those queries up al
* wc_bool_to_string
2016-12-08 10:56:45 +00:00
Justin Shreve
63a29dd4db
Add 'locale' to list of customer meta keys, and update expected type for 'object' for gateways, products, and shipping zones to fix some API issues.
2016-12-07 12:23:23 -08:00
Mike Jolley
e8d119c42c
Feedback
2016-12-07 18:13:17 +00:00
Mike Jolley
1ad852443b
Invalid type
2016-12-07 15:54:35 +00:00
Mike Jolley
7f234a0b63
Update array schema
2016-12-07 14:24:44 +00:00
Mike Jolley
cce08e6225
Indenting
2016-12-07 14:06:04 +00:00
Mike Jolley
d4fbda1d68
Put back array for arrays of objects
2016-12-07 12:20:56 +00:00
Mike Jolley
ba62599da0
Use objects, rather than arrays in schema when properties are defined
2016-12-07 11:36:46 +00:00
Mike Jolley
ff05080208
Merge pull request #12462 from danielhuesken/fix_rest_setting_user_role
...
Set customer role for user if it not a customer on the current blog
2016-12-06 11:16:27 +00:00
Mike Jolley
a8f6fd88f4
Merge pull request #12488 from woocommerce/save-coupon-wp-error
...
When saving coupons, return wp_error if necessary
2016-12-01 16:21:23 +00:00
Justin Shreve
a94acad387
Fix title, enabled, and description updates for payment gateways. Add missing readonly on method title and description.
...
Bump WC version.
2016-11-29 11:57:56 -08:00
Justin Shreve
5d8ce22afe
When saving coupons, return wp_errors if an item cannot be created or updated.
2016-11-29 03:06:10 -08:00
Mike Jolley
169c70f447
Fix get_stock_amount
2016-11-25 14:48:20 +00:00
Mike Jolley
e3f19f85c6
Add readonly role field to API
...
Closes #12468 @claudiosanches
2016-11-25 13:04:21 +00:00
Daniel Hüsken
89026327b8
Set customer role for user if it not a customer on the current blog
2016-11-24 13:52:54 +01:00
Mike Jolley
badd63bdd9
Merge pull request #12448 from woocommerce/webhook-api-versions
...
Allow send webhook payload using legacy API v3 or WP REST API integration
2016-11-24 10:22:01 +00:00
Mike Jolley
4ca49ba999
Fix tests
2016-11-23 16:27:18 +00:00
Mike Jolley
d7dfdd3d10
Wrap all deprecation calls.
2016-11-23 16:15:00 +00:00
Claudio Sanches
7aafd6cce7
Set webhook API version in REST API
2016-11-22 22:01:16 -02:00
Mike Jolley
deec278d4a
Only update menu order and display if set.
...
Closes #12411
2016-11-22 15:50:35 +00:00
Mike Jolley
277d9db832
Fix coupon unit test
2016-11-22 13:59:08 +00:00
Justin Shreve
c83823b97c
Remove stray error_log
2016-11-22 03:39:26 -08:00
Justin Shreve
afa294e70d
Fix legacy API issues
2016-11-21 10:57:33 -08:00
Justin Shreve
b20b3590c8
First pass at order items
2016-11-21 10:56:21 -08:00
Claudio Sanches
ec56bd5015
Merge pull request #12386 from woocommerce/order-data-store
...
Order data stores
2016-11-21 15:14:22 -02:00
Mike Jolley
32de28355a
Merge branch 'master' into order-data-store
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-order-data.php
2016-11-21 14:45:46 +00:00
Claudio Sanches
2739243587
Use wc_get_coupon_id_by_code() while querying coupons by code
2016-11-18 17:12:01 -02:00
Claudio Sanches
40c90ac2d0
Use ID to query coupons
2016-11-18 17:10:41 -02:00
Claudio Sanches
dd3a59d169
Return empty prices for deprecated cart_discount and order_discount in order legacy v1
2016-11-18 17:06:33 -02:00
Claudio Sanches
fdb0cf499f
Query coupons only by ID
2016-11-18 16:51:45 -02:00
Claudio Sanches
7a6bc5f9f5
Removed extra get_post() for orders
2016-11-18 16:46:59 -02:00
Claudio Sanches
a8a5763b47
Removed extra )
2016-11-18 16:39:31 -02:00
Claudio Sanches
073c924b98
Stop doing new queries only to get coupons gmt dates
2016-11-18 16:36:02 -02:00
Claudio Sanches
3074bd180f
Apply GMT date for legacy v1 customers endpoint
2016-11-18 16:34:30 -02:00
Claudio Sanches
359e0a5a56
Use GMT dates in legacy API
2016-11-18 16:33:16 -02:00
Claudio Sanches
526a46325f
Allow convert date to GMT in the legacy API
2016-11-18 16:13:46 -02:00
Claudio Sanches
6d66391a68
Merge pull request #12388 from woocommerce/terms-performance
...
Optimize terms queries
2016-11-18 13:01:38 -02:00
Mike Jolley
da2cc7144c
Merge pull request #12396 from woocommerce/update-customer-crud-endpoints
...
Apply Customer CRUD to legacy customer API endpoint
2016-11-18 12:35:24 +00:00
Mike Jolley
5d9a9b4dec
Fix tests
2016-11-18 11:14:09 +00:00
Claudio Sanches
65c9a1b26b
Fixed undefined method WC_Order_Item_Product::get_qty()
2016-11-18 06:08:00 -02:00
Claudio Sanches
91d6c74701
Apply Customer CRUD methods to update and create legacy API endpoints
2016-11-18 04:16:38 -02:00
Claudio Sanches
e032001953
Fixed undefined variable on update_customer_meta_fields()
2016-11-18 03:37:59 -02:00
Claudio Sanches
4fd47e1b02
Use wc_get_orders() to query customer orders
2016-11-17 22:11:05 -02:00
Claudio Sanches
aba4699ee2
Removed old get avatar method
2016-11-17 22:01:55 -02:00
Claudio Sanches
14996ef97a
Updated customer legacy API endpoints
2016-11-17 21:55:52 -02:00
Claudio Sanches
e1aeba9f21
Remove all wp_get_post_terms() and wp_get_object_terms() terms occurrences
2016-11-17 17:02:05 -02:00