public function sendCancelNotification()
    {
        $email = Email::create()
            ->setSubject(_t(
                'SilverShop\ShopEmail.CancelSubject',
                'Order #{OrderNo} cancelled by member',
                '',
                ['OrderNo' => $this->order->Reference]
            ))
            ->setFrom(Email::config()->admin_email)
            ->setTo(Email::config()->admin_email)
            ->setBody($this->order->renderWith(Order::class));

        if ($this->debugMode) {
            return $this->debug($email);
        } else {
            return $email->send();
        }
    }
public function sendCancelNotification()
    {
        $email = Email::create()
            ->setSubject(_t(
                'SilverShop\ShopEmail.CancelSubject',
                'Order #{OrderNo} cancelled by member',
                '',
                ['OrderNo' => $this->order->Reference]
            ))
            ->setFrom(Email::config()->admin_email)
            ->setTo(Email::config()->admin_email)
            ->setBody($this->order->renderWith(Order::class));

        if ($this->debugMode) {
            return $this->debug($email);
        } else {
            return $email->send();
        }
    }
public function sendCancelNotification ( ) { $ email = Email :: create ( ) -> setSubject ( _t ( 'SilverShop\ShopEmail.CancelSubject' , 'Order #{OrderNo} cancelled by member' , '' , [ 'OrderNo' => $ this -> order -> Reference ] ) ) -> setFrom ( Email :: config ( ) -> admin_email ) -> setTo ( Email :: config ( ) -> admin_email ) -> setBody ( $ this -> order -> renderWith ( Order :: class ) ) ; if ( $ this -> debugMode ) { return $ this -> debug ( $ email ) ; } else { return $ email -> send ( ) ; } }
Sends an email to the admin that an order has been cancelled
Sends an email to the admin that an order has been cancelled