Jump to content

Help with changing order status and sending status mail


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...