Great question — answering as the UphillTech team:
1) Get the shipping Class Label name (from a product): The shipping class is registered as a term, so you can get the product shipping Class label easily using: $shipping_class_id = $product->get_shipping_class_id(); $shipping_class_term = get_term($shipping_class_id, 'product_shipping_class'); if( ! is_wp_error($shipping_class_term) && is_a($shipping_class_term, 'WP_Term') ) { $shipping_class_name = $shipping_class_term->name; } 2) Shipping methods: As shipping methods are based on customer shipping location , If you have multiple shipping zones, you can't really get for a product a specific shipping method as you would like. Also the shipping cost is calculated from cart packages in...
Full answer by LoicTheAztec: https://stackoverflow.stackexchange.com/a/62360084 (CC BY-SA 4.0).
Need it done for your business? UphillTech.