Woocommerce dynamic option "formatted tax currency" shows wrong price

Hey there,

I think I found a bug with the woocommerce dynamic Price option.
In my understand, please correct me if I’m wrong, “formatted currency” should print the price (depending on my woocommerce settings, either with or without tax), and formatted Tax Currency should print the price including the tax?

I have the following settings in Woocommerce:
Add prices with tax: No
Show prices with tax: yes
Show prices on cart and checkout with tax: yes

I want to add all prices without taxes because all pricing calculations are done without tax…but as it is B2C I want to show the prices to the customer including tax.

In my understanding those settings should do exactly what I want them to do… but the price get’s always printed without Tax.

If I use the following function on the single template to print the prices they get printed with the tax included:

<?php
if ( function_exists( 'wc_get_price_including_tax' ) ) {
    global $product;
    $price_incl_tax = wc_get_price_including_tax( $product );
    echo wc_price( $price_incl_tax );
}
?>

Cheers
Wolfgang

Hey @Louis,

just one follow up on this one. It seems that the cart subtotal and cart total work as expected…

Everything gets printed as expected here
in my case:
formatted currency : € 104,17
formatted Tax Currency : € 125,00
(20% Vat)

Hopefully that helps in finding the bug! :wink:

Cheers
Wolfgang

Hello @Wolfgang,

Thanks for the report.
I can confirm there is an issue with the tax currency option, this will be fixed in the next update.

Apologies for the inconvenience.

Cheers,

1 Like

You‘re awesome! Thanks a lot Louis!!!

1 Like

Hi @Wolfgang,

Once again, thank you for bringing this to our attention!

This should now be fixed with 1.3.4.7:

Kindly let me know if this is the case on your end.

Thank you in advance.

Hi @Araminta,

yep - i can confirm, that this is solved on my end! Thanks a lot for the quick fix!!! :heart:

Cheers
Wolfgang