Max Rice
a7538da23b
Add shop_webhook capabilities on install/upgrade
...
Part of #5564
2014-07-30 16:24:14 -04:00
Max Rice
0fd7e3376d
Hide webhook comments
...
Part of #5564
2014-07-30 16:23:41 -04:00
Max Rice
572becdcde
Introduce WC_Webhook class
...
Part of #5564
2014-07-30 16:23:22 -04:00
Max Rice
9536d98ade
Add webhooks REST API endpoint
...
Part of #5564
2014-07-30 16:22:58 -04:00
Max Rice
81297cf94d
Add shop_webhook custom post type
...
Part of #5564
2014-07-30 16:22:40 -04:00
Max Rice
64ddf83184
Add coupon description to REST API coupon response
2014-07-30 16:19:35 -04:00
Mike Jolley
1b41eef5f6
Ensure add-to-cart is not present when redirecting after a deletion.
...
Fixes #5645
2014-07-29 15:25:43 +01:00
Mike Jolley
dd61317395
Merge pull request #5904 from maxrice/rest-api-remove-xml
...
Remove XML response from v2 REST API
2014-07-29 13:20:05 +01:00
Mike Jolley
98030c2cfc
Merge pull request #5907 from claudiosmweb/improve-db-queries-product-post-class
...
Replace wp_get_post_terms() for get_the_terms() in wc_product_post_class()
2014-07-29 13:19:54 +01:00
Mike Jolley
ae6dceeace
Merge pull request #5908 from maxrice/fix-issue-5423
...
Add item meta to REST API orders response
2014-07-29 13:19:38 +01:00
Mike Jolley
caff9658b9
Merge pull request #5911 from claudiosmweb/improve-breadcrumbs
...
Improve product_cat queries in breadcrumbs
2014-07-29 13:19:08 +01:00
Mike Jolley
6a092ddd37
Merge pull request #5913 from maxrice/feature-issue-5806
...
Add product categories endpoint to REST API
2014-07-29 13:16:45 +01:00
Mike Jolley
be757abf61
Merge pull request #5916 from maxrice/feature-rest-api-order-notes
...
Improve order notes endpoint
2014-07-29 13:16:38 +01:00
Mike Jolley
2201a93981
Merge pull request #5914 from maxrice/feature-issue-5720
...
Add orderby filtering to REST API resource endpoints
2014-07-29 13:15:53 +01:00
Mike Jolley
df824f653d
Readme update
2014-07-29 13:14:27 +01:00
Mike Jolley
c465c7235d
Merge branch 'credit-notes'
...
Conflicts:
includes/abstracts/abstract-wc-order.php
includes/class-wc-order-factory.php
includes/class-wc-post-types.php
includes/wc-formatting-functions.php
includes/wc-order-functions.php
2014-07-29 12:09:52 +01:00
Max Rice
76be03010c
Improve order notes endpoint
...
This commit improves the order notes endpoint with full read/write
capabilities:
* GET /orders/#{order_id}/notes - get all notes for an order
* GET /orders/#{order_id}/notes/#{id} - get single order note
* POST /orders/#{order_id}/notes - create an order note
* PUT /orders/#{order_id}/notes/#{id} - edit an order note
* DELETE /orders/#{order_id}/notes/#{id} - delete an order note
2014-07-28 23:39:07 -04:00
Max Rice
47ccd78b21
Allow using meta_value_num with resource orderby
...
Part of #5720
2014-07-28 19:49:56 -04:00
Max Rice
bb651761d0
Add orderby filtering to REST API resource endpoints
...
Adds orderby filtering to all endpoints using default WP orderby
parameters.
Closes #5720
2014-07-28 19:40:28 -04:00
Max Rice
323bcbf848
Add order (desc/asc) to REST API customers endpoint
...
Part of #5720
2014-07-28 19:38:21 -04:00
Max Rice
7f3b67272a
Adhere to WP code standards
2014-07-28 19:34:41 -04:00
Max Rice
80368dc105
Add product categories endpoint to REST API
...
This commit adds two new endpoints:
* GET /products/categories - returns a list product categories
* GET /products/category/#{id} - returns the product category for #{id}
Closes #5806
2014-07-28 19:01:50 -04:00
claudiosmweb
53494ff91c
improved the product_cat query in product single page
2014-07-28 17:57:11 -03:00
claudiosmweb
0b559b3997
improved the product_cat query in breadcrumbs, closes #5906
2014-07-28 17:44:54 -03:00
Max Rice
7d597a36d0
Add item meta to REST API orders response
...
Fixes #5423
2014-07-28 13:33:03 -04:00
Max Rice
28449cfab2
Add WC_Order_Item_Meta::get_formatted()
...
This commit adds a helper method for plugins (and core) to use for
getting formatted item meta in an array, rather than a flattened string.
Part of #5423
2014-07-28 13:32:38 -04:00
claudiosmweb
cb1ca6e341
replaced wp_get_post_terms() for get_the_terms() in wc_product_post_class(), closes #5905
2014-07-28 14:05:36 -03:00
Max Rice
8ff7202c5c
Remove XML response from v2 REST API
2014-07-28 12:16:34 -04:00
Max Rice
2ea771be1f
Fix SQL error in v1 customers response
2014-07-28 12:16:04 -04:00
Mike Jolley
601789bf15
Merge pull request #5903 from bryceadams/master
...
Admin Views HTML Headers, Stop Direct Access & Formatting
2014-07-28 17:11:57 +01:00
Mike Jolley
8a6831f33b
Hide tax columns for legacy orders
...
@claudiosmweb
2014-07-28 17:08:11 +01:00
Bryce
1ffa2dd867
Updated to employ WordPress coding standards
2014-07-28 22:16:35 +07:00
Bryce
16fad7469b
Admin Views HTML Headers, Stop Direct Access
...
Also a couple small formatting improvements
2014-07-28 21:50:11 +07:00
claudiosmweb
7c141fcd41
prevented some errors when the order has no taxes
2014-07-28 10:59:55 -03:00
claudiosmweb
fda7a5565c
removed extra td element in refunds
2014-07-28 10:40:08 -03:00
Mike Jolley
42ac0c0368
Fix refund table alignment
2014-07-28 11:45:16 +01:00
Mike Jolley
bf86072cce
Interface tweaks
...
#3164
2014-07-28 11:41:52 +01:00
Mike Jolley
cdc0efed75
Merge pull request #5843 from maxrice/feature-orders-endpoint-issue-4160
...
Create/Edit/Delete orders via the REST API
2014-07-28 09:18:49 +01:00
Mike Jolley
708861421a
Merge pull request #5839 from maxrice/api-versioning
...
Update REST API version to v2
2014-07-28 09:18:41 +01:00
Max Rice
698f6499f6
Add REST API create/edit order actions & filters
...
Part of #4160
2014-07-27 23:58:01 -04:00
Max Rice
5be324a543
Add edit order REST API method
...
Part of #4160
2014-07-27 23:36:32 -04:00
Max Rice
315787e3d6
Refactor create order method
...
* handle errors through WC_API_Exception
* abstract order item creation
Part of #4160
2014-07-27 23:35:50 -04:00
Max Rice
d919ed9d64
Tweak REST API order response
...
* se WC_Order::get_order_currency() for currency
* use new WC_Order::get_subtotal() for subtotal
* add order item ID and rate ID to tax lines
Part of #4160
2014-07-27 23:33:35 -04:00
Max Rice
f656d57282
Add WC_Order::get_order_subtotal()
...
Convenience method to return the order subtotal
Part of #4160
2014-07-27 23:31:26 -04:00
Max Rice
3cc9952fea
Include order item ID and rate ID in WC_Order::get_tax_totals()
...
Part of #4160
2014-07-27 23:31:02 -04:00
Max Rice
f4feefc100
Fix WC_Order::get_user()
2014-07-27 23:30:21 -04:00
Max Rice
e47ac33eb1
Add calculate_shipping() method to WC_Abstract_order
...
When the update_shipping() method is used, the order shipping amount is
not properly calculated unless the shipping costs are summed.
Part of #4160
2014-07-27 23:29:40 -04:00
Max Rice
1598d1b539
Add update methods to WC_Abstract_Order
...
These methods compliment the existing add_*() methods and provide a
consistent interface to add and update items for the order.
Part of #4160
2014-07-27 23:28:25 -04:00
Max Rice
cca54879fa
Fix misc docblocks
2014-07-27 23:23:59 -04:00
Max Rice
b192bd46f8
Add wc_update_order_item() function
2014-07-27 23:21:16 -04:00