bspages Posted June 30, 2016 Share Posted June 30, 2016 Hello, I am using a payment plugin that is changing the order status using the following code: /** * Mark order as complete. * * @return bool */ public function complete() { if (!$this->order->hasInvoice()) { $transaction = $this->getTransaction(); // complete should be done when full amount is paid $this->order->addOrderPayment($this->getAmount(), null, $transaction->getTransactionId()); $this->order->setInvoice(true); } $status = Configuration::get('PS_OS_PAYMENT') ? Configuration::get('PS_OS_PAYMENT') : _PS_OS_PAYMENT_; return $this->updateState($status); Unfortunately the new order states email notification is not send. I already searched on google but can't find a solution that seems to work for me :x Would be great if you can help ) Greeting from Germany Link to comment Share on other sites More sharing options...
bspages Posted June 30, 2016 Author Share Posted June 30, 2016 I think this function in another file is used as well: public function setStatus($status) { $this->status = $status; } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now