protected function setFormDataDimensionsCheckout()
    {
        if (!empty($this->data_cart)) {

            $order = $this->data_form['order'];

            // Cart data passed by reference to convert product dimensions and measurement units
            $this->data_form['order']['volume'] = $this->order_dimension->getVolume($order, $this->data_cart);
            $this->data_form['order']['weight'] = $this->order_dimension->getWeight($order, $this->data_cart);
        }
    }
protected function setFormDataDimensionsCheckout()
    {
        if (!empty($this->data_cart)) {

            $order = $this->data_form['order'];

            // Cart data passed by reference to convert product dimensions and measurement units
            $this->data_form['order']['volume'] = $this->order_dimension->getVolume($order, $this->data_cart);
            $this->data_form['order']['weight'] = $this->order_dimension->getWeight($order, $this->data_cart);
        }
    }
protected function setFormDataDimensionsCheckout ( ) { if ( ! empty ( $ this -> data_cart ) ) { $ order = $ this -> data_form [ 'order' ] ; // Cart data passed by reference to convert product dimensions and measurement units $ this -> data_form [ 'order' ] [ 'volume' ] = $ this -> order_dimension -> getVolume ( $ order , $ this -> data_cart ) ; $ this -> data_form [ 'order' ] [ 'weight' ] = $ this -> order_dimension -> getWeight ( $ order , $ this -> data_cart ) ; } }
Calculates and sets order dimensions
Calculates and sets order dimensions