Set tax value to 0 after new order
Question
I want to set tax value to zero after the new order created.
Now calculation correct for everything but in the backend tax still show value,
Here my code
add_action('woocommerce_new_order', 'calculate_tax_price_after_order');
function calculate_tax_price_after_order($order_id){
$order = new WC_Order($order_id);
$value= '0';
$order->set_total_tax($value);
}
After create order tax still show value.
How I change that’s value in backend.
0
3 months
0 Answers
6 views
0
Leave an answer
You must login or register to add a new answer .