wc-api-custom-meta icon indicating copy to clipboard operation
wc-api-custom-meta copied to clipboard

is it possible to use this for orders instead of product?

Open rustanacexd opened this issue 10 years ago • 4 comments

rustanacexd avatar Nov 19 '15 04:11 rustanacexd

Could you give some examples? I'm not sure what you are asking.

judgej avatar Nov 19 '15 09:11 judgej

Oh, you mean being able to add and view custom fields on orders as well as products? I should think it could be extended easily enough to support that. It might be worth looking closer at the latest WC API, as that seems to be changing and advancing on each release. Also the next version of WC will have its own [very similar] API. I have not looked into that API, but it may be able to provide access to custom fields on any post type, avoiding the need to extend the WC API.

It would be nice if both APIs could use the same end-point and authentication methods.

judgej avatar Nov 19 '15 09:11 judgej

thanks for the response. do you have any idea how to make a custom endpoint for woocommerce? or atleast point me in the right direction. thank you again, basically I have a custom logic for an endpoint for woocommerce orders.

rustanacexd avatar Nov 23 '15 04:11 rustanacexd

Use the new v2 REST API (WC 3.x) instead of this plugin. It now does everything this plugin does out of the box. The README gives some examples of how you would manage the metadata fields. It also covers orders, customers, reviews and a host of other WC data.

judgej avatar Aug 02 '17 15:08 judgej