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

The order address is not saved. #243

Open JavohirYakubov opened 6 years ago

JavohirYakubov commented 6 years ago

I save the order, but the order addresses (Other Information) are not saved. Please help! My php code: ///////////////////////////////////////////////////////////// $orderData = array(
"order" => array( "billing_address" => array( array( "first_name" => "test", "last_name" => "test", "company" => "test", "address_1" => "test", "address_2" => "test", "city" => "test", "state" => "test", "postcode" => "", "country" => "", "email" => "", "phone" => "+998" ) ), "shipping_address" => array( array( "first_name" => "+998901648595", "last_name" => "test", "company" => "", "address_1" => "test", "address_2" => "test", "city" => "", "state" => "", "postcode" => "", "country" => "" ) ), //"customer_id" => 1, "line_items" => $order['order'] ) ); $res_order=array(); $res_order=$client->orders->create($orderData); /////////////////////////////////////////