I'm trying to change the value of the Total
field in the WooCommerce orders table:
I've got a function which checks some parameters. If these parameters are true, I need to set a custom value to the order like $50 instead of $60.
if ($is_valid == true) {
//Change order value = $new_value;
}