title: Display the variations weight on a variable product page in Woocommerce?
body: <p>When the user clicks on a product variant of a dropdown of my products' variants, I would like to also have the weight of each variant. How would I do this? I have been trying to do it like this, but it is not working:</p>
  
  <pre><code>add_filter( 'woocommerce_get_price_html', 'wb_change_product_html' );
  function wb_change_product_html( $price ) {
      global $product;
      $weight = $product-&gt;get_weight();
      $price_html = '&lt;span class="amount"&gt;' . $price . $weight . '&lt;/span&gt;';
      return $price_html;
  }
  </code></pre>