WooCommerce – update order item price and recalculate totals
Probably you already found a better way to do this since this question is quite old, but so far I could only make it work by getting the price difference manually and then using the method set_total from the order object: $order = new \WC_Order(2051); $diff = 0; foreach ($order->get_items(‘shipping’) as $key => $item) { … Read more