raison supports this item


This author's response time can be up to 10 business days.

138 comments found.


On mobile the prices do not change when hitting the toggle button. The text changes from incl. to excl. and the otherway around but the prices stay the same. Would you take a look at this please? Kind regards, Daniel

Can you post the site url so I can see.


visits Purchased


I want to use this plugin on a site with Polylang. Is it possible to translate the button in to the 3 languages that I use?


visits Purchased

Yes, but how do i manage the different translations? It seems that I can only use one language.

You have to use string translation – the same as with any other plugin. Not sure how Polylang manages this. Best to chat to them.

If you look in the root of the plugin I have added a file which gives an example of how to do translations manually. Hope that helps.


I have a problem whith this function. On the shop page the toggle works correct and shows the right prices but when you go to the single product page the price is incorrect. It looks like it shows the prive minis 2 times the taxe ratio.

Kind regards, Daniel

I cant replicate the issue on that link…

Why not? You can toggle the button right? and see that nothing happens? Is this a supportdesk or what?

Hi Maltha, Yes I’m happy to support you. I can see two things happening. The price sometimes doesn’t change. This indicates that the ex/incl tax rates are not set. Also I see on the product page that the price is not changing at all. This is because your theme is not outputting the price as per WooCommerce documentation. You can see there are some places the price is outputted correctly, such as the related products widget. Ask your theme developer to use the same method that is used there. For reference I’m looking at this page: https://partyverhuren.nl/product/multiplay-dolfijn/

Why doesnt the tax toggle on the cart page? It does toggle in the mini cart.

The cart_price_html is your function that doesnt add incl excl tax at all, but the else-statement is overwritten with another function. But good that you have fixed it! Looking forward for the new version. It keeps me from upgrading to 3.x as it is now.

Any news about your any updates for your plugin? I still cannot update my site to WC 3.x because of the two bugs we talked alot about now.

First the one that prints the same price twice because some other plugin leaves the same price in the sales price field. I’ve seen more people now here in the forum with the same problem. Not all your fault that this happenes. But you dont check the “is on sale”-field .. if that is true, then you should use the sale price field. That will solve that bug.

And the other bug that is still there is the one that the toggle function doesnt apply to the cart page as you say WC has changed something in 3.x.

Would be nice if you could fix this and send out a patch.

Im running 1.2.4 version in a test environment with the two bugs still there.

Hi there, just had a look at the cart on https://demo.avitel.se/varukorg/ and it seems to be working as I expect. When in cart the product prices do not toggle, but the totals underneath do to include tax.

If the price is printed twice because of another plugin, can you let me know which one. Or perhaps a link to the page. Hope I can help get this sorted.

The plugin isnt fully fixed to work with WC 3.x yet. It uses deprecated functions. I get a lot of warnings in my log file.

The WC_Product::get_price_including_tax function is deprecated since version 3.0. Replace with wc_get_price_including_tax.

This plugin works fine with WC 3.x – there were 2 functions using the recently depreciated but not removed function. These only display notices for debugging. I have now pushed an update which uses the replacement functions and this works fine. Thanks for letting me know.


extor Purchased

Hi, how do I change the colors and the hover on the button? Is it also possible that i can have 2 different texts? For example, B2C Shop and B2B Shop?


Hi Extor, Could you let me know how I can get it working for German regs? What’s the problem? I have a few german stores using the plugin already. Thanks for the help.


extor Purchased

Hi, of course, but i will not post it here in the comments.

Ok, feel free to send via my site raison.co

Hi, great plugin.

Just a few issues i regarding placement and look of tax toggle button.

I’m trying to use the shortcode [wootax] to place in text area of my header. However when placed, the button takes the full width of the container it is placed in. I’ve also placed it in the top menu and it pushes all the other elements out of view completey.

Can you advise on how I can adjust the button to be smaller. I’ve tried typical shortcode parameters but they don’t work.

You can see the button in its current form here: https://glana.wpstagecoach.com/

How can I then turn off the floating tax toggle widget at the side of each page?

Have sorted this issue myself. Have since left newer comment with fatal error issue

Hello – Ok, will ignore this and look at other item.

I have earlier messaged you about customizing size of tax toggle button. I have since figured it out using custom css but I now have a serious issue:

Fatal error: Cannot redeclare wctax_text_strings() (previously declared in /var/www/glana/staging-site/wp-content/plugins/woocommerce-tax/translate_example.php:10) in /var/www/glana/staging-site/wp-content/themes/basel/functions.php on line 197.

This error occured after I added the following code to change text strings: <?php

/** * Change text strings * * Add this code to your functions.php and then remove the // from the add_filter below to enable * * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext */ function wctax_text_strings( $translated_text, $text, $domain ) { switch ( $translated_text ) { case ‘Excl.’ : $translated_text = __( ‘Excluding’, ‘wc-tax’ ); break; case ‘From’ : $translated_text = __( ‘Fromboli’, ‘wc-tax’ ); break; case ‘Incl.’ : $translated_text = __( ‘Including’, ‘wc-tax’ ); break; }

return $translated_text;

//add_filter( ‘gettext’, ‘wctax_text_strings’, 20, 3 );

I added this as a code snippet, initally and it has caused above fatal error. I have disabled plugin folder through FTP and did not fix error. I removed and re-installed tax toggle, no use either.

Can you please provide help as soon as possible!

Looks like you have added this function to your theme folder (/basel/functions.php on line 197) Have a look there.

I’ve renamed it, did not change issue. I’ve removed the function completely from my function.php file and the error still occurs. I’ve even removed the tax toggle plug in along with the translate_example.php which the error states was were the function was declared initially. The error seems almost hardcoded into the sight at this stage. Any other solutions?

Very strange. You must have added this to a part of the theme or (I hope not) to the core files. Does it happen when you change theme? If not, then it is in your theme. I’m afraid only you will know where that is. If you look at the logs or the error output that will tell you where the issue is. Good luck and this isn’t really a problem with our plugin but some code in the wrong place..

We set up the plugin, and almost everything seems to work good. We got it setup with the checkout and cart as well.

The problem is just, that when toggling between “private” and “business”, we are able to stress it. It is a “little problem”, because those people are not able to buy it for the price, that it shows wrong. The “mystical” part, is that we are able to “stress” it, so it shows a price, where the VAT is substracted twice – which makes it a pretty good deal for the customers. As said, they are not able to make it through checkout with this price, but in our country, we have some strict “marketing” laws, which makes it “not okay” to show a price and then afterwards not selling the product for the price, which is on the product.

How can we fix this?

Hello. Not sure what is meant between private and business – can you provide me a URL? Thanks

Ehm that is our to factors to switch between Including or excluding VAT URL: billigkoste.dk

Interesting. It looks like you have a cart and checkout page that uses a different setup to the recommended and standard WooCommerce cart and checkout. The plugin should have no effect on the checkout page because the tax rules are set by the WooCommerce plugin and implemented in the checkout. For example, if you have set a product as being no tax, then this is calculated and displayed in the checkout. All the plugin will do is to toggle in the shop to let the user compare the difference.

What is the behavior of this plugin if we’re using a cache plugin, like W3 Total Cache or WP Super cache? I’m guessing we must disable all server side caching if we want to let visitors choose to see the price with or without caching.

If a plugin caches a full page (including the prices HTML) how can we be sure that the toggle will be able to change the values WITHOUT disabling the full page cache? Have you tried it with any cache plugin?

Both prices are outputted onto the page. The toggle uses Javascript to hide/show the two prices. We are not cacheing the page with ex-tax or incl-tax so the cache will not affect the page. Hope that clarification helps.

OK, if you’re using Javascript and both prices are on the page HTML, I can now understand how a cache plugin wouldn’t affect your plugin. Thanks!

If I schedule a sale, two prices are shown: £110.96 Excl. VAT £110.96 Excl. VAT – the first instance of the price is crossed out. Is there anyway to fix this?

Hello – Can you provide a link to the page. Thanks :)

It seems you have some test code still in the current version of the plugin…If you have the GeoIP Detection plugin installed and active then your plugin echoes out a whole load of user geo information just after the body tag!! I have tracked this down to your includes/geo.php file and commented out the offending code. Can you please release an update with this fix in place asap?


Which Geo plugin are you using? I haven’t updated the geo functionality for a long time and will remove it.

Hi guys, I was wondering if it is possible to add the Toggler as a submenu item to a menu?

Sure, but you will need a bit of programming skills. If you inspect the existing toggler take a look at the id and class structure and then mimic that on your menu. Shouldn’t take a freelancer developer too long. Thanks!


extor Purchased

Hello, i tried to change the colores of the button at wcvat.css but no change is shown. can you provide me please the file, where i can made modifications like color, design etc.? thx

It’s always best to make changes in your own theme. You can target the toggler by using this css element: #wcvat-toggle.on or #wcvat-toggle.

A quick hack to make sure your styles work is to add !important after them. eg

wcvat-toggle.on {

color: red!important; }

Hello, I’ve added to my site and all seems like it is working – however for some reason the plugin seems to break my blog section and product downloads section in that blog posts and the download menus just disappear – any ideas? My site is vpsindustrialheating.co.uk

Hi, i’m on paternity leave at the moment but will take a look at this mid-Jan – sorry for the delay and thanks for your patience.


woody60 Purchased

Have been VERY satisfied with this plugin for a number of years. However for a number of reasons I have had to reinstall the whole site (NoBirdsHere.com). Now whenever I activate the plugin it breaks the page and only the product header and image appear. Any suggestions please?

Hi, i’m on paternity leave at the moment but will take a look at this mid-Jan – sorry for the delay and thanks for your patience.


I need a toggle just like this but -

we have wholesale customers and retail customers. Retail customers will be a part of a single role or not logged in at all Wholesale customers will be in their own roles. - e.g. 100 users from “ACME Inc.” wholesale company will be apart of a role called “ACME Inc.”

I already have plugins for variable pricing based on these roles.

I also already have the ability to set TAX on or off for guests, retail customers and or wholesale customers – separately.

now I need the ability to show or hide the toggle in a role or multiple roles I define.

This must work one of two plugins I am testing my wholesale site against: 1) https://wholesalesuiteplugin.com/bundle/ 2)https://ignitewoo.com/woocommerce-extensions-plugins-themes/woocommerce-wholesale-pro-suite/

Hi, i’m on paternity leave at the moment but will take a look at this mid-Jan – sorry for the delay and thanks for your patience.

Hello, I’m using Stack theme with the Variant page builder. As default I get both inc and ex VAT prices showing one after another on each product in the product listings, when I click ‘include’ the button turns red and both prices disappear? Words perfect when you get into each product. Any Ideas?

Hi, i’m on paternity leave at the moment but will take a look at this mid-Jan – sorry for the delay and thanks for your patience.