Commit Graph

6040 Commits

Author SHA1 Message Date
Patrick Rauland 3ba5aa3369 removing extra slashes when order meta is saved in admin 2013-11-06 10:30:36 -06:00
James Koster 2ce069ea2e payment heading 2013-11-06 13:56:59 +00:00
Mike Jolley 95b91dad5e Merge pull request #4060 from AndriyGusak/master
Ukrainian language
2013-11-06 01:52:37 -08:00
Max Rice 6c3eb169db Define and use WC_API::VERSION constant for endpoint versioning 2013-11-06 01:56:38 -05:00
Max Rice 0a6b268024 Update core WC_API class to use new WC_API_Server class 2013-11-06 01:56:11 -05:00
Max Rice c3fa52b0b5 Update API classes to use new WC_API_Server class 2013-11-06 01:54:19 -05:00
Max Rice ed6de29bfc Add new WC_API_Server class
Based on WP_JSON_Server, this class add response handling based on
endpoint suffixes (.json or .xml) or the ACCEPT header. It also removes
some unneeded functionality and renames filters so as to not conflict
with users who may have WP-API installed already. Finally, instead of
no authentication required by default, authentication is always
required unless specifically disabled via filters.
2013-11-06 01:53:07 -05:00
Max Rice 8637da63c0 Add REST API XML request/response handler stub 2013-11-06 01:49:51 -05:00
Max Rice 165d0e65ea Add REST API JSON request/response handler 2013-11-06 01:49:37 -05:00
Max Rice 58c57eb6f1 Add REST API request/response interface 2013-11-06 01:49:08 -05:00
Max Rice 1625930482 Remove WP-API library 2013-11-06 01:24:06 -05:00
Max Rice 30300bb2a0 Add get_woocommerce_api_url() method 2013-11-06 01:23:19 -05:00
Brent Shepherd 3e08e29f9e Use new notice API for "Add a Pay Method" notice
Part of #3396
2013-11-05 16:17:51 -08:00
Brent Shepherd fe969d0903 Use wc_add_notice() when updating shipping costs
Fixes #4034
2013-11-05 16:17:51 -08:00
Brent Shepherd 9de928baf5 Add new notices API for blue info message
Part of #4034
2013-11-05 16:11:50 -08:00
Brent Shepherd 4a7f207eff Use new ID for add pay method form
Part of #3396
2013-11-05 15:36:00 -08:00
Andriy Gusak 6f8a4aa938 Ukrainian language 2013-11-05 23:38:36 +02:00
Brent Shepherd b69066405b Move /add-payment-method/ endpoint to /my-account/
Part of #3396
2013-11-05 13:02:13 -08:00
thenbrent 09e182f358 Allow gateways to specify redirect URL
Part of #3396
2013-11-04 20:54:18 -08:00
Mike Jolley c530e8bfcd Schema: ProductID can now be SKU, added URL 2013-11-04 12:53:49 +00:00
Coen Jacobs b9b9f3a49e Fixed docs for enabled params (string, not bool), closes #4052 2013-11-04 11:29:20 +01:00
Coen Jacobs c58621f3f8 Fixed docblock return type, closes #4057 2013-11-04 11:20:45 +01:00
Mike Jolley 43b302e9dc Merge pull request #4047 from thenbrent/form_pay_fix
Fix markup on form-pay.php
2013-11-04 02:00:14 -08:00
Mike Jolley e3a8b7dfdc Merge pull request #4045 from scottbasgaard/master
Class name consistency for woocommerce_attributes > product_attributes. ...
2013-11-04 01:59:58 -08:00
Max Rice e219585974 Add initial versions of REST API resource classes 2013-11-04 01:36:31 -05:00
Max Rice 27163ceec0 REST API base class tweaks 2013-11-04 01:36:16 -05:00
Max Rice 25407c284e Trash posts by default instead of permanently deleting 2013-11-04 01:34:53 -05:00
Max Rice 2bb83bb1d8 Make WC_Comments::exclude_order_comments static
The WC_Comments class is an orphaned global so there's no way for other
code to access it in order to remove the `comment_clauses` filter. This
changes the add_filter and associated method to static so other code
can properly remove the filter for querying order notes
2013-11-04 01:34:21 -05:00
Max Rice 7caffcd8f2 Add REST API base class 2013-11-03 20:06:36 -05:00
Max Rice 45fa450760 Add REST API authentication class 2013-11-03 20:06:28 -05:00
thenbrent e63021a2ca Fix "non-static method called statically" notice 2013-11-03 16:54:07 -08:00
thenbrent d9639947da Filter gateways for add_payment_method form
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent a1ca487e73 Add a notice that payment method has been added
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent 1e0cf3087e Redirect to My Account page after adding method
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent 0e4cd125c5 Call add_payment_method_action()
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent e80f71d73c Improve form-add-payment-method.php error & button
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent 4f825eb36e Only display add_payment_method() when logged in
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent ca01d7b1a5 Fix up markup on form-add-payment-method.php
So that checkout.js correctly displays payment method's fields.
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent ac548d6610 Add form-add-payment-method.php 2013-11-03 16:53:30 -08:00
thenbrent 237b5778a3 Add add_payment_method_action() handler
Part of #3396
2013-11-03 16:53:24 -08:00
thenbrent 1bbe03d139 Add new /checkout/add-payment-method/ endpoint
Part of #3396
2013-11-03 16:53:14 -08:00
Max Rice 1d113b3e39 Add REST API endpoints/methods to WC API class 2013-11-03 19:29:45 -05:00
Max Rice 4cc1847a66 Remove unused WP_JSON_Posts class 2013-11-03 19:26:29 -05:00
Max Rice 4daaf22304 Add REST API settings stub 2013-11-03 18:55:34 -05:00
Max Rice a4a8b5e5c0 Add required global functions for WP_JSON_Server class 2013-11-03 18:54:56 -05:00
Max Rice 65f48e8456 Modify WP_JSON_Server to allow authentication 2013-11-03 18:53:35 -05:00
Kathy Darling a97e1a697d Add a custom trigger handler based on the value of select#field_to_edit 2013-11-03 18:50:24 +01:00
Max Rice a0ddef247d Fix strict standards warning 2013-11-02 18:12:50 -04:00
Max Rice f6ea020e8d Add WP JSON API Library 2013-11-02 01:16:45 -04:00
Coen Jacobs c31a48fa6c Merge pull request #4049 from thenbrent/fix_deprecated_class
Fix use of `__CLASS__` when not in class
2013-11-01 15:19:11 -07:00