web services - What is causing automatic status change after placing order through a webservice api in Prestashop? -


i have successfuly made new order through prestashop webservice api. causing me problem order's current_status somehow automatically changed 12 (payment remotely accepted) everytime order placed.

i can't figure out reason because set 10 (awaiting bankwire payment) , still set 10 in response after making post request. if check in back-office, in database or through api, order has status 12 now.

any idea causing change?

prestashop automatically adds order status "remote payment accepted" orders added via web service. alternatively, can add order status via web service after add order.

please consider following code:

$xml = $webservice->get(array('url' => ps_shop_path.'/api/order_histories?schema=blank'));  $xml->order_history->id_order = $id['order']; $xml->order_history->id_order_state = '3';  $opt = array('resource' => 'order_histories'); $opt['postxml'] = $xml->asxml(); $xml = $webservice->add($opt); 

this way change status processing in progress. need disable remote payment accepted validation , email feature.


Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -