Mike Jolley
84c96046f0
Check objects are not false/null
2017-04-07 16:01:51 +01:00
Claudio Sanches
87199d0627
[REST API] Fixed attributes while trying to save variations
...
Closes #13936
2017-04-05 17:03:05 -03:00
Mike Jolley
14802a0307
Remove double unserialization
2017-03-31 12:10:20 +01:00
Claudio Sanches
b8faa2197c
[REST API] Fixed default_attributes in legacy REST API
2017-03-23 17:23:12 -03:00
Mike Jolley
196ba7b770
Ensure we have a product before checking if it exists
...
Fixes #13642
2017-03-17 16:26:26 +00:00
Mike Jolley
8d0a4a3caf
Use correct getter in legacy API for get_discount
...
Fixes #13635
2017-03-17 14:37:19 +00:00
Claudio Sanches
1aa8218b26
Fixed oauth signature replacing spaces by plus sign
...
oAuth signatures are encoded by base64, that can generate plus signs.
See RFC 4648 <http://www.rfc-editor.org/rfc/rfc4648.txt >
By default plus signs in query params are replaced into spaces while
trying to access by super globals like $_GET and $_POST
Closes #13615
2017-03-16 14:23:45 -03:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
943c507d3f
Merge pull request #13606 from woocommerce/fix-13525-api
...
Fix 13525 api
2017-03-15 15:43:45 +00:00
Claudiu Lodromanean
bbfea35cf0
API tweaks from feedback
2017-03-15 08:10:42 -07:00
Claudiu Lodromanean
6351bb0c22
Update coupon API
2017-03-14 16:00:15 -07:00
Claudio Sanches
137de9eea6
Fixed access_expires in legacy REST API
2017-03-14 15:40:36 -03:00
Mike Jolley
dd1b8e35dc
API endpoints
2017-03-13 20:26:52 +00:00
Claudio Sanches
c6fa88bde8
Both $server-format_datetime() variables are false by default
2017-03-10 18:15:05 -03:00
Claudio Sanches
c353241599
Fixed dates in customer legacy endpoints
2017-03-10 18:10:03 -03:00
Mike Jolley
69cc8f5150
API dates
2017-03-10 16:28:50 +00:00
Illimar Tambek
21a54b93d8
Use wc_clean to sanitize fee title in legacy apis
...
This will bring legacy APIs in line with the new REST API, where the
order item names are sanitized using wc_clean and fix the
backwards-incompatible change of using sanitize_title.
2017-03-09 11:00:35 +02:00
Illimar Tambek
8e81a7e4e0
Set order id for fees & shipping on legacy api
...
If order ID is not set, the item will be created, but will not be
associated with the order being updated.
2017-03-09 10:53:10 +02:00
Claudiu Lodromanean
dd97b7bc50
Allow product ids in get_product_data
2017-03-07 09:40:28 -08:00
Mike Jolley
3eea782750
Brackets
2017-03-07 12:45:35 +00:00
Mike Jolley
3073867449
Multiple arguments passed to isset must all be isset to be true. We need 'or'.
...
Fixes #13489
2017-03-07 12:44:30 +00:00
Claudio Sanches
8a77bb0957
Fixed undefined $id #13405
2017-03-04 12:15:52 -03:00
Claudiu Lodromanean
e4db7f1d76
Update variable names to correct ones
2017-03-03 14:40:31 -08:00
Claudio Sanches
8d28e966c4
Let product CRUD handle terms IDs
2017-03-03 16:21:27 -03:00
Claudiu Lodromanean
51c5910866
Set line item prices on legacy API order create
2017-03-03 09:26:08 -08:00
Claudiu Lodromanean
bd4458fa90
Change create to save
2017-03-02 14:28:35 -08:00
Claudio Sanches
e42e2a3335
Replace woocommerce_coupon_code filter by wc_format_coupon_code()
2017-02-22 14:40:24 -03:00
Claudio Sanches
0410518f31
Removed filter query param from products queries in REST API
2017-02-17 13:15:54 -02:00
Claudio Sanches
58d90a2ee8
Added legacy classes
2017-02-17 00:27:40 -02:00
Claudio Sanches
75b2661ba3
Fixed undefined $meta[id]
2017-02-16 01:42:47 -02:00
Mike Jolley
52291e003c
wrong method name
2017-02-08 16:20:05 +00:00
Claudio Sanches
bd655af072
Restore attributes ordering, closes #12847
2017-01-16 21:11:56 -02:00
Mike Jolley
169c70f447
Fix get_stock_amount
2016-11-25 14:48:20 +00: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
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
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
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