protected function getSubmittedOrderCheckout()
    {
        $submitted = $this->getSubmitted();
        $submitted += $this->data_form['order'];
        $submitted['cart'] = $this->data_cart;

        $submitted['data']['user'] = array(
            'ip' => $this->server->remoteAddr(),
            'agent' => $this->server->userAgent()
        );

        if (empty($this->admin)) {
            return $submitted;
        }

        // Convert decimal prices from inputs in admin mode
        $submitted['total'] = $this->price->amount($submitted['total'], $submitted['currency']);

        if (empty($submitted['data']['components'])) {
            return $submitted;
        }

        $this->prepareSubmittedOrderComponentsCheckout($submitted);
        return $submitted;
    }
protected function getSubmittedOrderCheckout()
    {
        $submitted = $this->getSubmitted();
        $submitted += $this->data_form['order'];
        $submitted['cart'] = $this->data_cart;

        $submitted['data']['user'] = array(
            'ip' => $this->server->remoteAddr(),
            'agent' => $this->server->userAgent()
        );

        if (empty($this->admin)) {
            return $submitted;
        }

        // Convert decimal prices from inputs in admin mode
        $submitted['total'] = $this->price->amount($submitted['total'], $submitted['currency']);

        if (empty($submitted['data']['components'])) {
            return $submitted;
        }

        $this->prepareSubmittedOrderComponentsCheckout($submitted);
        return $submitted;
    }
protected function getSubmittedOrderCheckout ( ) { $ submitted = $ this -> getSubmitted ( ) ; $ submitted += $ this -> data_form [ 'order' ] ; $ submitted [ 'cart' ] = $ this -> data_cart ; $ submitted [ 'data' ] [ 'user' ] = array ( 'ip' => $ this -> server -> remoteAddr ( ) , 'agent' => $ this -> server -> userAgent ( ) ) ; if ( empty ( $ this -> admin ) ) { return $ submitted ; } // Convert decimal prices from inputs in admin mode $ submitted [ 'total' ] = $ this -> price -> amount ( $ submitted [ 'total' ] , $ submitted [ 'currency' ] ) ; if ( empty ( $ submitted [ 'data' ] [ 'components' ] ) ) { return $ submitted ; } $ this -> prepareSubmittedOrderComponentsCheckout ( $ submitted ) ; return $ submitted ; }
Returns an array of prepared submitted order data
@return array
Returns an array of prepared submitted order data