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.
enter image description here

How I change that’s value in backend.

0
Baim Whello 3 months 0 Answers 6 views 0

Leave an answer