protected function setFormDataCalculatedCheckout()
    {
        $result = $this->order->calculate($this->data_form);

        $this->data_form['total'] = $result['total'];
        $this->data_form['total_decimal'] = $result['total_decimal'];
        $this->data_form['total_formatted'] = $result['total_formatted'];
        $this->data_form['price_components'] = $this->prepareOrderComponentsCheckout($result);
    }
protected function setFormDataCalculatedCheckout()
    {
        $result = $this->order->calculate($this->data_form);

        $this->data_form['total'] = $result['total'];
        $this->data_form['total_decimal'] = $result['total_decimal'];
        $this->data_form['total_formatted'] = $result['total_formatted'];
        $this->data_form['price_components'] = $this->prepareOrderComponentsCheckout($result);
    }
protected function setFormDataCalculatedCheckout ( ) { $ result = $ this -> order -> calculate ( $ this -> data_form ) ; $ this -> data_form [ 'total' ] = $ result [ 'total' ] ; $ this -> data_form [ 'total_decimal' ] = $ result [ 'total_decimal' ] ; $ this -> data_form [ 'total_formatted' ] = $ result [ 'total_formatted' ] ; $ this -> data_form [ 'price_components' ] = $ this -> prepareOrderComponentsCheckout ( $ result ) ; }
Calculates order total and price components
Calculates order total and price components