WooCommerce Tax Toggle


About the WooCommerce Tax Toggle

This extension allows you to easily toggle between the taxed price and the untaxed price. The toggle is automatically added as a floating button on the left hand side of the site.

This extension allows the customer to select whether they want to view your WooCommerce products price including tax or excluding tax. The option chosen is saved so when the customer moves from page to page the prices are shown as per their selection.

The Toggle can also be added as Widget in a sidebar so you can control where it appears.

Cart and checkout behaviour are different from the rest of the site for a better user experience. In the Cart the tax toggle shows/hides the VAT and Total Order in the order summary. It does not toggle the individual items as this could be confusing for the customer.

In the Checkout the toggle is hidden because the Tax is displayed as per the checkout rules. EG. by what location is selected in the address.

The Tax Toggle uses the base country tax settings as per the Tax settings section. Please ensure that you have set your tax rates for the plugin to work.

Instructions for Install

Download the file
The best way to install is via the Plugins > Add New Plugins section in the WordPress Backend. You can also manually install as per the docs here (http://codex.wordpress.org/Managing_Plugins).
Once the plugin is installed please activate.
After activating the Tax Toggle will automatically work.


The extension requires WooCommerce and WordPress to be installed. You will also need to have your tax rates set.

Using the Widget

The Tax toggle is automatically added to the side of the page. It floats on the page side. You can disable this in the settings (outlined below).

You can also add the Tax toggle using a widget. Widgets can be added by going to Appearances > Widgets. you will find the tax toggle listed here as Tax Toggle. Drag this onto a sidebar and it will appear where you want it.

Shortcode and PHP Output

Use this for PHP insertion: <?php woo_tax_output(); ?>

Use this for Shortcode insertion: [wootax]


The settings which can be found in WooCommerce > Settings > Tax
Here you will find an option at the bottom to hide the VAT toggle. You might want to use this if you are using the Widget.


I’m not seeing any changes – Please double check your tax settings and your product settings to check you have the taxed and unataxed amounts correctly setup. By default WooCommerce does not include a tax rate amount. This needs to be setup in WooCommerce > Settings > Tax

Change Log

Version 1.2.9 (30 AUG 19)

Fixed a Gutenberg/Block editor issue with Shortcodes
Fixed a Widget issue with latest update

Version 1.2.8 (17 JUL 19)

Adjusted to future depreciation of how class methods handled

Version 1.2.7 (14 AUG)

FA JS Remove

Version 1.2.6 (02 AUG 2018)

Removed FA styles

Version 1.2.5 (26 JUN 2018)

– Added new settings field for incl and excl custom text

Version 1.2.4 (1 NOV)

– Adjust cart tax display to fix itemised only showing
– Adjust get_price function to replace depreciated WC functions

Version 1.2.3 (17 JULY)

– Debug Fix

Version 1.2.2 (17 JULY)

– Cookie Fix

Version 1.2.1 (17 JULY)

– PHP Loader Added
– Shortcode Added

Version 1.2.0 (JUN 5th 2017)

– Big rewrite of file structure
– Compatibility with WC 3.0 hook changes / discontinued hooks
– Rebuilt the variable product from: function

Version 1.1.4 (APR 11th 2017)

– Bug – Fixed when simple product but no tax

Version 1.1.3 (APR 11th 2017)

Future compatibility with new product calling methods
Fix notices on wp_debug_display

Version 1.1.2 (APR 5th 2017)

– Change the cookie method to work with WC 3.0
– Cleaned some JS

Version 1.1.1 (Jan 20th 2017)

– Add Example Translation file (/translate_example.php)
– Add more translations
– Support variable decimal point positions
– Support Currency Positions
– Support various separator types

Version 1.1.0 (Jan 4th 2017)

– Made all strings translatable
– Tidied code
– Add span class to quantity to increase compatibility with dropdown carts on certain themes using JS to count QTY
– fix https issue on some sites

Version 1.0.15 (8 Nov 2016)

Fix right to left currency symbol on variable product

Version 1.0.14 (19 May 2016)

Adds Currency Symbol to mini-cart / Fix

Version 1.0.13 (18 May 2016)

Fix to work with latest mini-cart

Version 1.0.12 (9 May 2016)

– Update for new WP – Fixes Variation non-sale being £0

Version 1.0.11 (31 January 2015)

– Regular / Sale Fix
– Sale on variation update
– Widget text as per settings

Version 1.0.10 (22 December 2015)

– Rounds numbers as per the WC settings
– Doesn’t display the toggle for non-tax items
– Shows both regular and sale price (with line-through)
– fix notice for $wootext

Version 1.0.9 (17 September 2015)

– Displays correctly for custom decimal points set in Settings

Version 1.0.8 (14 September 2015)

– Updated Currency Position for right sided currencies

Version 1.0.7

– Customise the Toggle Button text in the settings. Default will be Includes + TAXTEXT
– Set’s default setting of tax included or excluded based on WooCommerce settings

Version 1.0.6

Fixed currency bug with sidebar cart.

Version 1.0.5

Compatible with WP 4, WC 2.2 and fix jQuery VAT addition on non-UK sites

Version 1.0.4

Added From: to prepend to Grouped and Variable products so it indicates a range

Version 1.0.3

Added ability to edit the VAT text in WooCommerce > Settings

Version 1.0.2

– Fixed no appearance on some themes
– Geographic beta work started

Version 1.0.1

Small change to rename as Tax Toggle and not VAT Toggle

Buy This Item

Be the first to comment

Leave a Reply

Your email address will not be published.


Privacy Policy

BootstrapDeive.com is committed to safeguarding your privacy. Contact us if you have any questions or problems regarding the use of your Personal Data and we will gladly assist you.

By using this site or/and our services, you consent to the Processing of your Personal Data as described in this Privacy Policy.

Table of Contents

  1. Definitions used in this Policy
  2. Data protection principles we follow
  3. What rights do you have regarding your Personal Data
  4. What Personal Data we gather about you
  5. How we use your Personal Data
  6. Who else has access to your Personal Data
  7. How we secure your data
  8. Information about cookies
  9. Contact information


Personal Data – any information relating to an identified or identifiable natural person.
Processing – any operation or set of operations which is performed on Personal Data or on sets of Personal Data.
Data subject – a natural person whose Personal Data is being Processed.
Child – a natural person under 16 years of age.
We/us (either capitalized or not)

Data Protection Principles

We promise to follow the following data protection principles:

  • Processing is lawful, fair, transparent. Our Processing activities have lawful grounds. We always consider your rights before Processing Personal Data. We will provide you information regarding Processing upon request.
  • Processing is limited to its purpose. Our Processing activities fit the purpose for which Personal Data was gathered.
  • Processing is done with minimal data. We only gather and Process the minimal amount of Personal Data required for any purpose.
  • Processing is limited to a time period. We will not store your personal data for longer than needed.
  • We will do our best to ensure the accuracy of the data.
  • We will do our best to ensure the integrity and confidentiality of data.

Data Subject’s rights

The Data Subject has the following rights:

  1. Right to information – meaning you have to right to know whether your Personal Data is being processed; what data is gathered, from where it is obtained and why and by whom it is processed.
  2. Right to access – meaning you have the right to access the data collected from/about you. This includes your right to request and obtain a copy of your Personal Data gathered.
  3. Right to rectification – meaning you have the right to request rectification or erasure of your Personal Data that is inaccurate or incomplete.
  4. Right to erasure – meaning in certain circumstances you can request for your Personal Data to be erased from our records.
  5. Right to restrict processing – meaning where certain conditions apply, you have the right to restrict the Processing of your Personal Data.
  6. Right to object to processing – meaning in certain cases you have the right to object to Processing of your Personal Data, for example in the case of direct marketing.
  7. Right to object to automated Processing – meaning you have the right to object to automated Processing, including profiling; and not to be subject to a decision based solely on automated Processing. This right you can exercise whenever there is an outcome of the profiling that produces legal effects concerning or significantly affecting you.
  8. Right to data portability – you have the right to obtain your Personal Data in a machine-readable format or if it is feasible, as a direct transfer from one Processor to another.
  9. Right to lodge a complaint – in the event that we refuse your request under the Rights of Access, we will provide you with a reason as to why. If you are not satisfied with the way your request has been handled please contact us.
  10. Right for the help of supervisory authority – meaning you have the right for the help of a supervisory authority and the right for other legal remedies such as claiming damages.
  11. Right to withdraw consent – you have the right withdraw any given consent for Processing of your Personal Data.

Data we gather

Information you have provided us with
This might be your e-mail address, name, billing address, home address, etc – mainly information that is necessary for delivering you a product/service or to enhance your customer experience with us. We save the information you provide us with in order for you to comment or perform other activities on the website. This information includes, for example, your name and e-mail address.

Information automatically collected about you
This includes information that is automatically stored by cookies and other session tools. For example, your shopping cart information, your IP address, your shopping history (if there is any) etc. This information is used to improve the customer experience. When you use our services or look at the contents of our website, your activities may be logged.

Information from our partners
We gather information from our trusted partners with confirmation that they have legal grounds to share that information with us. This is either information you have provided them directly with or that they have gathered about you on other legal grounds. See the list of our partners here.

Publicly available information
We might gather information about you that is publicly available.

How we use your Personal Data

We use your Personal Data in order to:

  • provide our service to you. This includes for example registering your account; providing you with other products and services that you have requested; providing you with promotional items at your request and communicating with you in relation to those products and services; communicating and interacting with you, and notifying you of changes to any services.
  • enhance your customer experience;
  • fulfill an obligation under law or contract;

We use your Personal Data on legitimate grounds and/or with your Consent.

On the grounds of entering into a contract or fulfilling contractual obligations, we Process your Personal Data for the following purposes:

  • to identify you;
  • to provide you a service or to send/offer you a product;
  • to communicate either for sales or invoicing;

On the ground of legitimate interest, we Process your Personal Data for the following purposes:

  • to send you personalized offers* (from us and/or our carefully selected partners);
  • to administer and analyze our client base (purchasing behavior and history) in order to improve the quality, variety, and availability of products/ services offered/provided;
  • to conduct questionnaires concerning client satisfaction;

As long as you have not informed us otherwise, we consider offering you products/services that are similar or the same to your purchasing history/browsing behavior to be our legitimate interest.

With your consent we Process your Personal Data for the following purposes:

  • to send you newsletters and campaign offers (from us and/or our carefully selected partners);
  • for other purposes we have asked your consent for;

We Process your Personal Data in order to fulfill obligation rising from law and/or use your Personal Data for options provided by law. We reserve the right to anonymize Personal Data gathered and to use any such data. We will use data outside the scope of this Policy only when it is anonymized. We save your billing information and other information gathered about you for as long as needed for accounting purposes or other obligations deriving from law, but not longer than 1 year.

We might process your Personal Data for additional purposes that are not mentioned here but are compatible with the original purpose for which the data was gathered. To do this, we will ensure that:

  • the link between purposes, context, and nature of Personal Data is suitable for further Processing;
  • the further Processing would not harm your interests and
  • there would be appropriate safeguard for Processing.

We will inform you of any further Processing and purposes.

Who else can access your Personal Data

We do not share your Personal Data with strangers. Personal Data about you is in some cases provided to our trusted partners in order to either make providing the service to you possible or to enhance your customer experience. We share your data with:

Our processing partners:

  • facebook.com
  • google.com
  • bing.com
  • twitter.com
  • pinterest.com

Our business partners:

  • facebook.com
  • google.com
  • bing.com
  • twitter.com
  • pinterest.com

Connected third parties:

  • facebook.com
  • google.com
  • bing.com
  • twitter.com
  • pinterest.com

We only work with Processing partners who are able to ensure an adequate level of protection to your Personal Data. We disclose your Personal Data to third parties or public officials when we are legally obliged to do so. We might disclose your Personal Data to third parties if you have consented to it or if there are other legal grounds for it.

How we secure your data

We do our best to keep your Personal Data safe. We use safe protocols for communication and transferring data (such as HTTPS). We use anonymizing and pseudonymizing where suitable. We monitor our systems for possible vulnerabilities and attacks.

Even though we try our best we can not guarantee the security of information. However, we promise to notify the suitable authorities of data breaches. We will also notify you if there is a threat to your rights or interests. We will do everything we reasonably can to prevent security breaches and to assist authorities should any breaches occur.

If you have an account with us, note that you have to keep your username and password secret.


We do not intend to collect or knowingly collect information from children. We do not target children with our services.

Cookies and other technologies we use

We use cookies and/or similar technologies to analyze customer behavior, administer the website, track users’ movements, and to collect information about users. This is done in order to personalize and enhance your experience with us.

A cookie is a tiny text file stored on your computer. Cookies store information that is used to help make sites work. Only we can access the cookies created by our website. You can control your cookies at the browser level. Choosing to disable cookies may hinder your use of certain functions.

We use cookies for the following purposes:

  • Necessary cookies – These cookies are required for you to be able to use some important features on our website, such as logging in. These cookies don’t collect any personal information.
  • Functionality cookies – These cookies provide functionality that makes using our service more convenient and makes providing more personalized features possible. For example, they might remember your name and e-mail in comment forms so you don’t have to re-enter this information next time when commenting.
  • Analytics cookies – These cookies are used to track the use and performance of our website and services
  • Advertising cookies – These cookies are used to deliver advertisements that are relevant to you and to your interests. In addition, they are used to limit the number of times you see an advertisement. They are usually placed on the website by advertising networks with the website operator’s permission. These cookies remember that you have visited a website and this information is shared with other organizations such as advertisers. Often targeting or advertising cookies will be linked to site functionality provided by the other organization.

You can remove cookies stored in your computer via your browser settings. Alternatively, you can control some 3rd party cookies by using a privacy enhancement platform such as optout.aboutads.info or youronlinechoices.com. For more information about cookies, visit allaboutcookies.org.

We use Google Analytics to measure traffic on our website. Google has its own Privacy Policy which you can review here. If you’d like to opt-out of tracking by Google Analytics, visit the Google Analytics opt-out page.

Read more about cookies on our Cookie Policy

Contact Information

mail: [email protected]

Changes to this Privacy Policy

We reserve the right to make a change to this Privacy Policy.

You can configure your Internet browser, by changing its options, to stop accepting cookies completely or to prompt you before accepting a cookie from the website you visit. If you do not accept cookies, however, you may not be able to use all portions of the BootstrapDeive.com website or all functionality of the Services.

Please note that disabling these technologies may interfere with the performance and features of the Services.

You may also disable cookies on the BootstrapDeive.com Sites by modifying your settings here:

Privacy Preferences

Visitor comments may be checked through an automated spam detection service.

Last Update: May 25, 2018