kloon / WooCommerce-REST-API-Client-Library

A PHP wrapper for the WooCommerce REST API
GNU General Public License v3.0
356 stars 175 forks source link

Update order status #215

Closed eriqsenyonga closed 7 years ago

eriqsenyonga commented 7 years ago

When trying to update order with $client->orders->update_status($order_id_to_update, $status);

it creates new order and updates status for both the original and the newly created order. Someone please help.

eriqsenyonga commented 7 years ago

Someone please help

kloon commented 7 years ago

It is possible that you might be running some code or a plugin that might be doing this when the update status endpoint is called. Perhaps also test with the official library and see if the same happens, if it does then its an issue on your site https://github.com/woocommerce/wc-api-php