Export tax rate. – strange numbers

[ad_1]

hello

You can add this code to “Misc Settings” and tweak it

add_filter('woe_get_order_product_value_tax_rate', function ($value, $order, $item, $product,$item_meta) {
$value = round($value,1);
if($value == 18.9) $value = 19;
return $value;
}, 10, 5);

Thread Starter
haa005

(@haa005)

Thanks for the quick answer and the work-around. Any idea why the rates (in some cases) get returned differently compared to the WC settings?

Thread Starter
haa005

(@haa005)

It seems the tax rate is calculated and not read from the settings, that’s the reason for this uneven numbers.

Hello

WooCommerce doesn’t store tax rates for order items, so we have to calculate these numbers, based on tax amounts.

Thread Starter
haa005

(@haa005)

Ok, good to know, thanks a lot for your help!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer