protected function validateOrderCheckout()
    {
        if ($this->same_payment_address) {
            $this->unsetSubmitted('address.payment');
        }

        $this->setSubmitted('update', array());
        $this->setSubmitted('store_id', $this->store_id);
        $this->setSubmitted('user_id', $this->order_user_id);
        $this->setSubmitted('creator', $this->admin_user_id);

        if ($this->admin) {
            $this->setSubmitted('status', $this->order->getStatusInitial());
        }

        return $this->validateComponent('order');
    }
protected function validateOrderCheckout()
    {
        if ($this->same_payment_address) {
            $this->unsetSubmitted('address.payment');
        }

        $this->setSubmitted('update', array());
        $this->setSubmitted('store_id', $this->store_id);
        $this->setSubmitted('user_id', $this->order_user_id);
        $this->setSubmitted('creator', $this->admin_user_id);

        if ($this->admin) {
            $this->setSubmitted('status', $this->order->getStatusInitial());
        }

        return $this->validateComponent('order');
    }
protected function validateOrderCheckout ( ) { if ( $ this -> same_payment_address ) { $ this -> unsetSubmitted ( 'address.payment' ) ; } $ this -> setSubmitted ( 'update' , array ( ) ) ; $ this -> setSubmitted ( 'store_id' , $ this -> store_id ) ; $ this -> setSubmitted ( 'user_id' , $ this -> order_user_id ) ; $ this -> setSubmitted ( 'creator' , $ this -> admin_user_id ) ; if ( $ this -> admin ) { $ this -> setSubmitted ( 'status' , $ this -> order -> getStatusInitial ( ) ) ; } return $ this -> validateComponent ( 'order' ) ; }
Validates an array of submitted data before creating an order
@return array
Validates an array of submitted data before creating an order