public function getCompleteMessage(array $order)
    {
        $vars = array(
            '@num' => $order['order_id'],
            '@status' => $this->getStatusName($order['status'])
        );

        if (is_numeric($order['user_id'])) {
            $message = $this->translation->text('Thank you for your order! Order ID: @num, status: @status', $vars);
        } else {
            $message = $this->translation->text('Thank you for your order! Order ID: @num, status: @status', $vars);
        }

        $this->hook->attach('order.complete.message', $message, $order, $this);
        return $message;
    }
public function getCompleteMessage(array $order)
    {
        $vars = array(
            '@num' => $order['order_id'],
            '@status' => $this->getStatusName($order['status'])
        );

        if (is_numeric($order['user_id'])) {
            $message = $this->translation->text('Thank you for your order! Order ID: @num, status: @status', $vars);
        } else {
            $message = $this->translation->text('Thank you for your order! Order ID: @num, status: @status', $vars);
        }

        $this->hook->attach('order.complete.message', $message, $order, $this);
        return $message;
    }
public function getCompleteMessage ( array $ order ) { $ vars = array ( '@num' => $ order [ 'order_id' ] , '@status' => $ this -> getStatusName ( $ order [ 'status' ] ) ) ; if ( is_numeric ( $ order [ 'user_id' ] ) ) { $ message = $ this -> translation -> text ( 'Thank you for your order! Order ID: @num, status: @status' , $ vars ) ; } else { $ message = $ this -> translation -> text ( 'Thank you for your order! Order ID: @num, status: @status' , $ vars ) ; } $ this -> hook -> attach ( 'order.complete.message' , $ message , $ order , $ this ) ; return $ message ; }
Returns the checkout complete message
@param array $order
@return string
Returns the checkout complete message