Hi and thanks in advance for any guidance.
I'm using shipping classes and the following
Shipping Cost: <?php echo $product->get_shipping_class(); ?>
in my template meta.php to display the shipping cost on the product page which works fine but I'd like to display the same for a product variation which may not have the same class as the parent.
I'm looking at add-to-cart-variation.js which appears to control the pricing etc. but I'm a bit stumped on taking this forward to get it to update the shipping class.