original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Calculates and sets order dimensions
docstring_tokens: Calculates and sets order dimensions