WooCommerce coupon codes in order overview HPOS
You are correct that using WC()->session->set(‘jne_custom_shipping_cost’, $shipping_cost); only stores the shipping cost in the session without actually modifying the order data. To include the custom shipping cost into the actual order total when the order is placed, you need to use specific WooCommerce hooks : //Function 1 : Add the custom shipping cost to the … Read more