title: Woocommerce: Display shipping class in variable products
body: <p>I would like to display the shipping class on the single product page, after choosing a product from variable products. For example: I have a Bike in 3 different colors (red, blue and green):</p>
  
  <ul>
  <li>Bike red has the shipping class "Free delivery"</li>
  <li>Bike blue has the shipping class "Extra delivery"</li>
  <li>Bike green has the shipping class "Normal Delivery"</li>
  </ul>
  
  <p>Now if I choose a variation (for example the red one) I would like to display "Shipping class: Free delivery"</p>
  
  <p>I achieve that for single products, but not for variations: </p>
  
  <pre><code>Shipping Class: &lt;?php echo $product-&gt;get_shipping_class(); ?&gt;
  </code></pre>
  
  <p>I added the same code to variable.php, but it is not working. It shows "Shipping class:" but not the class name, if I choose a product.</p>
  
  <p>I am thankful for any idea.</p>