Commit Graph

2272 Commits

Author SHA1 Message Date
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
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
Max Rice c9342d6344 Add WC_API_Exception class
Part of #4160
2014-07-27 23:20:48 -04:00
Mike Jolley ab36ec12d5 Merge pull request #5822 from helgatheviking/fix/add-to-cart
add_to_cart() return $cart_item_key
2014-07-22 18:32:55 +01:00
Kathy Darling 7e0121a0d9 update docblock for add_to_cart() method 2014-07-22 12:25:12 -04:00
Mike Jolley 2155b30065 Merge pull request #5872 from Ninos/master
Add filter: wc_get_template
2014-07-22 10:48:12 +01:00
Mike Jolley 0f7f3ee66a Merge pull request #5851 from BFTrick/abstract-settings-typos
Fixing Typos in Abstract Settings Class
2014-07-22 10:37:24 +01:00
Ninos Ego 7b24853afc Add filter: wc_get_template
Allow 3rd party plugin filter template file from their plugin
2014-07-22 03:05:25 +02:00
msdesign21 14f5524ffd Please 'copy and paste' report
Updated description when you 'Get System Report' to specify customers should 'copy and paste' information.
2014-07-18 14:55:14 -06:00
Patrick Rauland e735fe45e0 fixing typos in abstract settings class 2014-07-15 16:41:28 -06:00
Max Rice 95aab694e4 API: implement order creation
part of #4160
2014-07-12 21:44:49 -04:00
Max Rice 4661cd3acf set a proper code for wp_error 2014-07-12 21:43:27 -04:00
Max Rice 13e2495390 API: implement order deletion
part of #4160
2014-07-12 18:09:21 -04:00
Max Rice 8c3df8f65f update get_woocommerce_api_url() to handle multiple versions 2014-07-12 17:51:29 -04:00
Max Rice a4cb198cb9 implement separate handlers for v1/v2 REST API requests 2014-07-12 17:51:08 -04:00
Max Rice 54c019dd62 re-add v1 API classes 2014-07-12 17:49:43 -04:00
Mike Jolley 822d477f72 wc_price filters suggested in #5664
Closes #5664
2014-07-11 16:13:03 +01:00
Mike Jolley 0ed0a41a04 Merge pull request #5833 from CFXd/move-tfoot-after-tbody-multiple-occurences
Move TFOOT to after TBODY element throughout templates and classes
2014-07-11 15:44:33 +01:00
Mike Jolley 9e6caec3a2 set cookies on shutdown in case of redirect. 2014-07-11 15:40:18 +01:00
Michael Silber 32bd50c379 Move TFOOT to after TBODY element throughout templates and classes 2014-07-10 21:50:51 -04:00
claudiosmweb 664c20a2ed fixed order status change when save 2014-07-10 17:41:53 -03:00
Kathy Darling 5a88e77959 add_to_cart() return $cart_item_key 2014-07-09 16:33:40 -04:00
Claudio Sanches 9701cfe2a7 Revert "order_type taxonomy and register_order_type() function" 2014-07-08 14:10:37 -03:00
Mike Jolley cc5b722a22 Merge pull request #5804 from claudiosmweb/feature-register-order-type
order_type taxonomy and register_order_type() function
2014-07-08 15:49:28 +01:00
claudiosmweb 73a273caf8 removed order_type hidden input in order actions meta box 2014-07-08 11:46:39 -03:00
Mike Jolley 2e59b1c9ce Merge pull request #5793 from maxrice/fix-disappearing-checkout-notices
Only print checkout notices when not reloading the checkout
2014-07-08 15:35:49 +01:00
Mike Jolley 58d17216c1 Merge pull request #5791 from EmilEriksen/master
pass  to get_subtotal_to_display(). Fixes #5790
2014-07-08 15:34:28 +01:00
Mike Jolley 2826da47f6 Merge pull request #5801 from coenjacobs/check-right-order-status
Correct order status for checking downloads
2014-07-08 15:28:55 +01:00
Coen Jacobs f427ebaf7c Updated Turkish Lira symbol 2014-07-08 14:34:42 +02:00
claudiosmweb 16953e96f8 save the order type when create a order with wc_create_order() 2014-07-07 17:23:43 -03:00
claudiosmweb 90110f300f added order_type when save the order data 2014-07-07 17:11:40 -03:00
claudiosmweb 72aae0e69d created order_type taxonomy and register_order_type() function 2014-07-07 16:19:51 -03:00
Coen Jacobs 93bd5a04df Correct order status for checking downloads 2014-07-07 13:30:07 +02:00
Max Rice 10046cb8a1 Only print checkout notices when not reloading the checkout
Any notices that are added during checkout are immediately lost when
the checkout is forced to reload. This commit fixes that by only
printing the notices if the checkout is not being reloaded, otherwise
they’re printed on the page reload and properly displayed to the user.
2014-07-04 17:22:58 -04:00
EmilEriksen 2f3793e49b pass to get_subtotal_to_display(). Fixes #5790 2014-07-04 20:29:17 +02:00