and it also has to be edited on line: 711
$value = $discount_amount + $discount_amount_tax;
$gift->deduct_amount_from_gift_card( $value );
in:
yith-woocommerce-gift-cards/lib/class.yith-woocommerce-gift-cards.php
line 584
I changed this: $amount = $order_item_data["line_total"];
with this: $amount = $order_item_data["line_total"] + $order_item_data["line_tax"];
and now it works for me
so I added another filter (for shipping tax):
add_filter(‘woocommerce_get_shipping_tax’, array($this, ‘raw_woocommerce_price’), 9999);
which change shipping tax on shop page, but still dont know how to change this value in DB