Jump to content

Creating order history doesn't send e-mail


Recommended Posts

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

  • 1 month later...
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 by kennedimalheiros (see edit history)
Link to comment
Share on other sites

hello

please use english language

 

 

Respect the forum language
PrestaShop 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

×
×
  • Create New...