Ready to get started?Download WordPress


WooCommerce - excelling eCommerce
Display Shipping Class for Product Variation (1 post)

  1. bobwebb
    Posted 7 months 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?



You must log in to post.

About this Plugin

About this Topic