title: How to access Woocommerce Product Dimensions?
body: <p>I'm trying to create a new shipping method for woocommerce. So i created a plugin as suggested. I'm trying to get the product dimensions height, width, length, weight, and besides the destination city. For now i'm stack in the dimensions, that it's the product variations for what i've read. But I tried to do the following but they seem to be empty.</p>
  
  <p>So I have this in the calculate_shipping function:</p>
  
  <pre><code>foreach ( $woocommerce-&gt;cart-&gt;get_cart() as $item_id =&gt; $values ) {
  
              $_product = $values['data'];
              //debug: $firephp-&gt;log($_product, 'Iterators0');
  
              $_variation_id = $values['variation_id'];
              //debug: $firephp-&gt;log($_variation_id, 'Iterators1');
  
              $_variation = $values['variation'];
              //debug: $firephp-&gt;log($_variation, 'Iterators2');
  
              if ( $values['quantity'] &gt; 0 &amp;&amp; $_product-&gt;needs_shipping() ) {
                  //my calculation
                  $shipping_total += $this-&gt;fee * $values['quantity'];
              }
   }
  </code></pre>
  
  <p>Any help will be appreciated.</p>
  
  <p>Thanks,
  Gary</p>