How to remove sales tax from renewal orders in Woocommerce? [closed]
Question
I would like to remove the tax from all the renewal orders for the subscriptions.
Basically, all the parent orders can have tax, but no tax in the renewal orders.
So far, I have tried this, but it’s not working.
function remove_tax_from_renewal_order($order, $subscription){
$order = new WC_Order( $order->id );
$order->set_total_tax('0');
return $order;
}
add_filter('wcs_new_order_created','remove_tax_from_renewal_order', 10, 2 );
Is there any other hook or any other method that I can try on renewal orders? Do you have any other advice?
0
2 months
0 Answers
10 views
0
Leave an answer
You must login or register to add a new answer .