mrKrecik Posted March 19, 2014 Share Posted March 19, 2014 I'm trying to add order history (and change order_state with that) by using prestashop api: $xml = $this->api->get(array('url' => $url . '/api/order_histories?schema=blank')); $xml->order_history->id_order_state = 4; $xml->order_history->id_order = $order_id; unset( $xml->order_history->id ); unset( $xml->order_history->date_add ); $xml = $this->api->add(array( 'resource' => 'order_histories', 'postXml' => $xml->asXML() )); It works just fine (order_state is changed) but presta doesn't sending any notification to buyer. Link to comment Share on other sites More sharing options...
NemoPS Posted March 19, 2014 Share Posted March 19, 2014 Try $order_history->addWithemail() Link to comment Share on other sites More sharing options...
mrKrecik Posted March 19, 2014 Author Share Posted March 19, 2014 Hmmm... I'm not sure how to use it in API. I don't see addWithemail() function in API (webservices). Link to comment Share on other sites More sharing options...
mrKrecik Posted March 19, 2014 Author Share Posted March 19, 2014 OK, found it. URL should be: 'resource' => 'order_histories?sendemail=1' 1 Link to comment Share on other sites More sharing options...
NemoPS Posted March 21, 2014 Share Posted March 21, 2014 Aw, sorry my mistake, I didn't understand you were using the webservice Link to comment Share on other sites More sharing options...
kennedimalheiros Posted May 12, 2014 Share Posted May 12, 2014 (edited) Good morning, Help wanted subparagraph Implement Argument (sendemail = 1) example: Want to Change the state to Order Payment accepted in subparagraph My integrator module, EVEN THIS Will using the webservice. With this I send email hum par Informing the buyer que was Accepted Payment. I am using Java, THIS changing state often. More e-mail Location: is not sending. How implementao Argument sendemail = 1 when calling the webservice? Shirt I'm using an API. WAS CREATED checked the method How to call webservice element? [*] WS: add Order History (POST) email customer if sendemail = 1 parameter url, Thanks @ gerdus How to call this argument sendemail 1 = not webservide. Thank you. Edited May 12, 2014 by kennedimalheiros (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 12, 2014 Share Posted May 12, 2014 hello please use english language Respect the forum languagePrestaShop brings together communities from around the world; the forums are divided into different languages.Thank you for posting in the corresponding language to that forum. Link to comment Share on other sites More sharing options...
Recommended Posts