How do I update product shipping using PHP in WooCommerce?
Based on the code found here you could do calculations on the cart object with WC()->cart->get_cart by doing whatever math you need to do for each product, in your case the custom glass. Get the contents of the cart, calculate your dimensions, and then remove the shipping methods based on your results. Just add a … Read more