Display Shipping Class for Product Variation (1 post)

  1. bobwebb
    Posted 2 years ago #

    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.

    Any ideas?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic