domorodecmezilidmi Posted February 19, 2015 Share Posted February 19, 2015 Hi, I have simply question. How can I delay bank wire email sending out of PS? It goes away automatically but customer always receive this email first and then confirmation of order. But I need it otherwise. Thank you Link to comment Share on other sites More sharing options...
xpumpa Posted July 2, 2016 Share Posted July 2, 2016 My solution: changing classes/PaymenModule.php found and select this: $new_history = new OrderHistory(); $new_history->id_order = (int)$order->id; $new_history->changeIdOrderState((int)$id_order_state, $order, true); $new_history->addWithemail(true, $extra_vars); and move after that: if (Validate::isEmail($this->context->customer->email)) { Mail::Send( (int)$order->id_lang, 'order_conf', Mail::l('Order confirmation', (int)$order->id_lang), $data, $this->context->customer->email, $this->context->customer->firstname.' '.$this->context->customer->lastname, null, null, $file_attachement, null, _PS_MAIL_DIR_, false, (int)$order->id_shop ); } Link to comment Share on other sites More sharing options...
Recommended Posts