Claudio Sanches
611cf9b521
[API] Created bulk update/insert for orders #7915
2015-05-06 18:41:48 -03:00
Claudio Sanches
41e1ba2811
[2.3] [API] Fixed enable_html_description and enable_html_short_description for products endpoint, closes #8090
2015-05-06 14:28:57 -03:00
Claudio Sanches
08f8317554
[2.3] [API] Fixed start and end date for products, closes #8063
2015-05-06 13:55:40 -03:00
Claudio Sanches
0a3fc7673e
[API] Fixed the returned status when delete a product attribute
2015-04-28 15:56:28 -03:00
Claudio Sanches
8d339a7022
Stop yoda!
2015-04-28 15:10:29 -03:00
Claudio Sanches
dd8b2f6007
[API] Deprecated the products/sku/<sku> endpoint, closes #7592
2015-04-27 17:49:35 -03:00
Claudio Sanches
83b570e3e1
[API] Created method to delete product attributes
2015-04-27 16:33:47 -03:00
Claudio Sanches
bda53f75af
[API] Created method to edit product attributes
2015-04-27 16:14:31 -03:00
Claudio Sanches
212ebe486d
[API] Created method to create product attributes
2015-04-27 13:06:42 -03:00
Claudio Sanches
00f9c6f1ca
[API] Created WC_API_Products::get_product_attribute() method
2015-04-27 11:58:58 -03:00
Claudio Sanches
aa2d5835e4
[API] Created WC_API_Products::get_product_attributes() method
2015-04-27 11:47:17 -03:00
Claudio Sanches
98b1845b68
[2.3] [API] Fixed save downloadable files for product variations, closes #8037
2015-04-25 12:19:30 -03:00
Claudio Sanches
bcfdbcdd0a
[API] Improved WC_API_Products::bulk() #7915
2015-04-24 18:43:33 -03:00
Claudio Sanches
abf1d90d9b
Merge pull request #7922 from Nils-Fredrik/master
...
Allow bulk updates / inserts of products according to #7915
2015-04-24 17:12:53 -03:00
Claudio Sanches
af9c5f948b
[API] Improved the WC_API_Products::get_product_orders() method #8019
2015-04-24 17:04:13 -03:00
Claudio Sanches
cccc7b9b98
Merge pull request #8019 from cklosowski/issue/7285
...
Product's Orders API Endpoint, closes #7285
2015-04-24 16:42:24 -03:00
Claudio Sanches
4a83200a81
Fixed coding standards
2015-04-24 15:53:54 -03:00
Claudio Sanches
d5524a62bf
[API] Removed test in WC_API_Orders::set_line_item()
2015-04-24 15:53:39 -03:00
Mike Jolley
7e304fd4f9
[2.3][api] Prevent variable overwrite in save_product_meta
...
Closes #8011
2015-04-23 16:45:51 +01:00
Mike Jolley
30d2ab8af8
Avoid setting is_customer_note when 0
...
Closes #7995
2015-04-23 11:50:09 +01:00
Claudio Sanches
3e99768047
[API] Added product_url and button_text for external products, closes #7974
2015-04-17 15:50:18 -03:00
Chris Klosowski
d26265f885
Allowing filters to be applied #7285
2015-04-16 13:32:35 -07:00
Claudio Sanches
7ab0d01aa2
[API] Fixed create order method
2015-04-16 15:26:54 -03:00
Mike Jolley
d133d35e27
Fix conflict
2015-04-14 11:27:30 +01:00
Claudio Sanches
c06b6f13e3
[API] Improved the error messages when sent a empty object, closes #7914
2015-04-13 13:06:19 -03:00
Mike Jolley
ed6fe062a7
Merge pull request #7931 from woothemes/fix/api-check_permission
...
[2.3] Check for edit_post cap if the post type is revision
2015-04-10 10:14:19 +01:00
Barry Kooij
4650c2300a
Simply deny all access to revisions
2015-04-10 11:03:45 +02:00
Barry Kooij
64c79ffe1e
Check for edit_post cap if the post type is revision
2015-04-10 10:32:20 +02:00
nils-fredrik@maksimer.no
73cce9f15b
Allow bulk updates / inserts of products according to #7915 .
2015-04-09 22:48:51 +02:00
Claudio Sanches
2fb06e4c29
[API] Fixed the position type for attributes and images
2015-04-03 15:01:41 -03:00
Paul Kilmurray
c8d52c7c2d
Use wc_stock_amount format function
...
This allows the REST API to honour the `woocommerce_stock_amount` filter, eg: for decimal quantity values
2015-03-31 18:36:27 +08:00
Chris Klosowski
cd9360420f
Clearning up DocBlock and passing #7285
2015-03-26 13:56:37 -07:00
Chris Klosowski
8455d5cbd1
First pass at Product's orders endpoint #7285
2015-03-26 13:53:20 -07:00
Claudio Sanches
d08e099bfc
[API] List only approved comments in products reviews, closes #7809
2015-03-24 14:38:08 -03:00
Claudio Sanches
1600bcdae3
Fixed coding standards for #7793
2015-03-23 11:41:37 -03:00
nils-fredrik@maksimer.no
686c40919b
Fix for #7592
...
Added sku filter to the /products endpoint.
Will let you search for products by sku without using the
/products/sku/<sku> endpoint. Its now possible to search for product
skus with specialchars like / and -.
2015-03-21 18:53:00 +01:00
Guillermo Gette
49f84a7bc6
get product_id using wc_get_product_id_by_sku
2015-03-18 23:11:28 +11:00
Guillermo Gette
b8578c044d
Merge branch 'master' of github.com:woothemes/woocommerce into create_order_with_product_sku
2015-03-18 23:06:02 +11:00
Mike Jolley
74d46dcc1e
Merge pull request #7455 from bryceadams/patch-7433
...
Proposed solution for api all order status counts
2015-03-18 10:57:34 +00:00
nils-fredrik@maksimer.no
8e18937305
Fix for #7752
...
Use error code from WP_Error when wc_create_new_customer() fails.
2015-03-18 00:20:35 +01:00
Claudio Sanches
618f70ffdf
[API] Fixed the stock management for variations, closes #7698
2015-03-16 15:13:07 -03:00
Claudio Sanches
6ce7288814
[API] Delete product attachments when the product fails, closes #7731
2015-03-16 14:54:38 -03:00
matttallan
4d0e0b71f3
Rollback WCAPI create_order if exception is thrown after wc_create_order
...
When you use the api to create an order and specify an method_id for
the payment details, but no method_title. You recieve a WP_Error as the
response but a pending order of $0 is still created.
2015-03-13 16:02:42 +10:00
Guillermo Gette
e9d20c9f66
update set_line_item to let you set items by sku
2015-03-12 22:52:37 +11:00
Barry Kooij
b5d64ba932
Decimal Precision can now be set in all orders API calls.
...
Fixes #7652
2015-03-09 19:07:02 +01:00
Barry Kooij
e99bcc7f77
API: reports/sales now also returns total refunds.
...
Fixes #7262
2015-03-09 17:09:07 +01:00
Claudio Sanches
0148a1bd86
[API] Fixed the variable product managing_stock variable, closes #7513
2015-02-20 23:01:26 -02:00
Claudio Sanches
d0aafd1f0b
[API] Fixed undefined messages when edit a product
2015-02-19 10:48:21 -02:00
Bryce
a0b50541cc
Proposed solution for api all order status counts
...
I’m not sure if this is the best way or if it needs work. What do you
think @maxrice @claudiosmweb?
With `status` set to `any`, it returns:
```
stdClass Object
(
[count] => stdClass Object
(
[pending] => 0
[processing] => 2042
[on-hold] => 4
[completed] => 2993
[cancelled] => 13
[refunded] => 0
[failed] => 4
)
)
```
If not `any, same as before.
Closes #7433
2015-02-17 13:27:38 +07:00
Mike Jolley
cdcd38ebb9
API total_tax should include shipping tax
2015-02-16 11:48:26 +00:00
Mike Jolley
8409d67602
Share data between sales by date report and API.
...
Also ensures data is consistent. #7416
2015-02-13 21:25:59 +00:00
Claudio Sanches
050286add6
Updated the changelog for 1452bde
2015-02-11 10:13:36 -02:00
Guillermo Gette
a95591502e
#7359 filter api results by a list of ids
2015-02-11 22:51:56 +11:00
Bryce
deb4acd5a2
Return (first) role of user in customer API endpoint
2015-02-07 13:08:48 +07:00
Claudio Sanches
00916b9e29
Merge pull request #7303 from mattallan/matt/wc-api-orders-tweaks
...
WC_API_Orders: pass data var to new wrappable api function.
2015-02-05 06:46:34 -02:00
matttallan
6531eb0373
pass data var to wrappable api function.
2015-02-05 15:43:05 +10:00
Bryce
1e9349a585
Remove $wpdb and $blog_id
2015-02-04 19:33:25 +07:00
Bryce
d0e0a6be6b
Change so only single role can be set in role param
2015-02-04 19:31:14 +07:00
Bryce
0f927acdd3
Allow people to override roles when querying customers API
...
Just fixing core
and closes #7289
2015-02-04 18:59:25 +07:00
Mike Jolley
6af80f8e60
Merge pull request #7280 from mattallan/matt/wc-api-orders-tweaks
...
Some more tweaks to WC API Orders
2015-02-04 11:46:33 +00:00
matttallan
e5c3385d3b
Change private wc-api method to protected.
...
Mainly so that it can be used in the new Subscriptions API :)
2015-02-04 11:38:38 +10:00
matttallan
f3fbbdeecc
Use validate_request() to avoid duplicate code.
2015-02-04 11:38:36 +10:00
matttallan
cd085f2adc
add an overrideable function to a create custom post.
...
Especially handy for WC Subscriptions seeing as they extend the Abstract
Order Class.
2015-02-04 11:16:11 +10:00
matttallan
c2520a528b
changes to avoid writing duplicated code
2015-02-04 09:59:02 +10:00
Mike Jolley
c814a9fa23
docblock corrections
2015-02-03 14:44:57 +00:00
Mike Jolley
1ef8a24ec9
These should be default_attr, not attribute
2015-02-03 14:44:57 +00:00
Mike Jolley
84fad56258
No return needed
2015-02-03 14:44:57 +00:00
Mike Jolley
10a819bd45
Use coupon_amount in api
2015-02-03 14:44:57 +00:00
Mike Jolley
81515fddbe
Incorrect api docblock
2015-02-03 14:17:49 +00:00
Bryce
0d656dfa23
fix spacing
2015-02-01 14:24:29 +07:00
Bryce
a582481c13
Extra currency options for API
...
* `currency_position`
* `thousand_separator`
* `decimal_separator`
2015-02-01 14:22:41 +07:00
Claudio Sanches
05a011376d
Updated the api docs url
2015-01-30 13:32:23 -02:00
Barry Kooij
e41841cee3
Round net_sales in API to 2 decimals
2015-01-30 14:33:13 +01:00
Barry Kooij
7a92094b72
Added net_sales to API reports response.
2015-01-30 14:29:10 +01:00
Barry Kooij
5435c16a3b
API code standards
2015-01-30 14:28:53 +01:00
Barry Kooij
746a46778d
Fixed sales data in API so it matches the WC reports page.
...
Fixes #7233
2015-01-30 14:28:35 +01:00
Claudio Sanches
242dbe1bc0
[API] product visible by default
2015-01-30 11:08:17 -02:00
Claudio Sanches
ce569c153b
[API] Set default product visibility
2015-01-30 11:00:57 -02:00
Claudio Sanches
5f63425e0a
[API] Fixed the deleted type for refunds
2015-01-26 19:39:33 -02:00
Claudio Sanches
cd88ac0d72
[API] Fixed the refunds returned data
2015-01-26 19:24:54 -02:00
Claudio Sanches
8ff08e70af
Fixed the WC_Abstract_Order::get_user_id() return type and fixed the orders customer_id
2015-01-26 14:41:19 -02:00
Claudio Sanches
4774646a0e
[API] Removed cart_discount, we have now only total_discount
2015-01-26 14:24:59 -02:00
Claudio Sanches
177bcbe7d5
Removed unused code
2015-01-23 16:34:43 -02:00
Mike Jolley
7f2a943075
Docblocks
2015-01-23 14:35:17 +00:00
Mike Jolley
2d707689d9
Add transient cache to webhooks Closes #7184
2015-01-23 13:28:30 +00:00
Mike Jolley
2584041700
wc_price enhancements
...
- Renamed some 2.3 methods for consistency
- Allow more args to be passed to wc_price to control output
- Filter wc_price args which Closes #7188
- wc_get_price_decimal_separator function
- wc_get_price_thousand_separator function
- wc_get_price_decimals function
2015-01-23 11:50:32 +00:00
Claudio Sanches
eb68b1d688
[API] Fixed the products reviews ID type
2015-01-22 22:04:03 -02:00
Claudio Sanches
78fe840499
[API] Fixed the properties for save downloadable files in products endpoint #5942
2015-01-22 19:20:05 -02:00
Claudio Sanches
3561c63ec1
[API] Fixed the default_attributes name and prevent errors with the old param
2015-01-22 18:49:09 -02:00
Claudio Sanches
bfb5329a55
[API] Fixed the WC_API_Products::get_attribute_taxonomy_by_slug()
2015-01-22 18:38:39 -02:00
Claudio Sanches
ece4f00a71
[API] Prevent "PHP Notice: Trying to get property of non-object" errors
2015-01-22 17:22:21 -02:00
Claudio Sanches
1dafa5d3cd
[API] Fixed the download limit and expiry to accept empty string as unlimited/never value
2015-01-22 11:15:52 -02:00
Claudio Sanches
bdf88d2323
[API] Allow edit the comment status in products endpoint using the reviews_allowed param
2015-01-21 21:09:08 -02:00
Claudio Sanches
ec6039794a
[API] Fixed the datetime format for WC_API_Customers::get_customer_downloads()
2015-01-21 10:38:33 -02:00
Claudio Sanches
4e2ae38233
[API] Fixed the expiry date when create a new coupon
2015-01-20 17:57:27 -02:00
Claudio Sanches
183d6ce62c
[API] Fixed create coupon attributes
2015-01-20 17:03:21 -02:00
Claudio Sanches
18b55a429e
[API] Added price_num_decimals to the index, closes #7149
2015-01-19 16:09:44 -02:00
Claudio Sanches
07e6996bf1
[API] Fixed the default attributes saving
2015-01-19 11:33:33 -02:00
Claudio Sanches
847720fe68
[API] Fixed attributes save for variations in products endpoint
2015-01-19 11:11:30 -02:00
Claudio Sanches
b6925d49ef
[API] Fixed errors when the description and short_description is empty in products endpoint
2015-01-19 10:52:44 -02:00