🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Tax Switch for WooCommerce icon
Actively maintained Tested with WP 7.1 #6 in tax

Tax Switch for WooCommerce

Let customers toggle between inclusive and exclusive tax pricing in your WooCommerce store.

Active installs1K+1K+ tier
Downloads · 30d1.2K▼ -8.7% vs prev. 30d
Rating5/527 reviews
Health score87/100Excellent
All-time downloads25.2KSince Sep 2024
Support resolved1 / 1100% in last 2 months
RequiresWP 6.1PHP 8.0+
Downloads · 7d324▲ +17% week over week
Our verdict

Safe pick

Yes — Tax Switch for WooCommerce is a safe, well-maintained plugin to use in 2026. It runs on 1K+ sites, is rated 5/5 and was last updated 1 month ago, and scores 87/100 on our health check.

  • Loved by users — 5/5 from 27 reviews
  • Tested with the latest WordPress (7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

89178267Sep 3Oct 17Dec 1
Yesterday37
Daily average (1y)40
Peak day357Oct 21, 2026
Last 12 months14.4K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Tax Switch for WooCommerce stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
tax #4 2,815 Best tax plugins →
vat #24 1,107 Best vat plugins →
woocommerce >100 10,000 Best woocommerce plugins →

Version adoption

Share of active sites per release.

  • 1.886.3%
  • 1.613.7%

Rating breakdown

★★★★★★★★★★ 5 from 27 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Tax Switch for WooCommerce

From the official readme · v1.8.4

Description

Tax Switch for WooCommerce enhances your WooCommerce store by allowing users to toggle between displaying prices including or excluding tax. This plugin adds a customizable switch component and provides a flexible way to display both price versions.

See Tax Switch for WooCommerce in action: Try the live demo →

Key features

  • Display customizable switches where you want
  • Gutenberg block support
  • Shortcode for easy integration (including shortcode generator)
  • Flexible display options for prices with and without tax
  • Remembers the user’s preference for future visits
  • Choose between a toggle switch or buttons

For more information about this plugin, please visit the plugin page.

Requirements

  • WooCommerce plugin installed and activated
  • WooCommerce tax calculations enabled and configured

Configuration

Configure the plugin settings below for proper functionality.

WooCommerce settings

Ensure these WooCommerce settings are configured first:

  1. Configure tax calculations

    • Go to: WooCommerce > Settings > General
    • Verify your shop address is complete
    • Enable “Enable tax rates and calculations”
    • Set “Default customer location” to “Shop base address”
  2. Set up tax rates

    • Go to: WooCommerce > Settings > Tax > Standard Rates
    • Add your regional tax rates
  3. Recommended: tax calculation method

    • Go to: WooCommerce > Settings > Tax
    • Set “Calculate tax based on” to “Shop base address”
      (This provides instant tax calculation. Other methods require customers to enter their address first.)
  4. Individual product configuration

    • Edit products at: Products > [Product]
    • Under Product Data > Tax, set status to “Taxable”

Plugin settings

Configure these plugin-specific settings:

  1. Main settings
    • Go to: WooCommerce > Settings > Tax Switch
    • Set your preferred text values
    • Optional: Restrict display locations
    • Optional: Generate a shortcode via WooCommerce > Settings > Tax Switch > Shortcode

Usage

After installation and configuration, you can add the tax switch to your pages in two ways:

  1. Use the Gutenberg block “Tax Switch for WooCommerce” in your page or post editor.
  2. Use the shortcode [wdevs_tax_switch] anywhere in your content.

Shortcode Usage

Switch/buttons

Basic usage:
[wdevs_tax_switch]

Displays a switch to toggle displaying prices including or excluding tax.

The shortcode accepts several attributes to customize its appearance and behavior:

  • class-name: Adds custom CSS classes to the switch.
    • Default: is-style-default
    • Options: is-style-default, is-style-inline, is-style-flat-pill, or custom classes
  • switch-type: Determines the style of the toggle.
    • Default: switch
    • Options: switch, buttons
  • switch-color: Sets the color of the switch handle.
  • switch-color-checked: Sets the color of the switch when it’s in the “on” position.
  • switch-background-color: Sets the background color of the switch.
  • switch-text-color: Sets the text color of the switch labels.
  • switch-background-color-checked: Sets the background color of the switch when it’s in the “on” position.
  • switch-label-incl: Sets the text for the “including tax” label.
    • Default: Uses the text set in the plugin settings or “Incl. VAT” if not set.
  • switch-label-excl: Sets the text for the “excluding tax” label.
    • Default: Uses the text set in the plugin settings or “Excl. VAT” if not set.
  • switch-aria-label: Sets the aria label of the switch.
    • Default: Uses the text set in the plugin settings or “Switch between prices including and excluding tax” if not set.

Example with custom attributes:

[wdevs_tax_switch class-name="is-style-inline" switch-type="switch" switch-color="#ffffff" switch-color-checked="#000000" switch-background-color="#000000" switch-background-color-checked="#4CAF50" switch-text-color="#FF0000" switch-label-incl="Incl. VAT" switch-label-excl="Excl. VAT" switch-aria-label="Switch between prices including and excluding tax"]

Label

Basic usage:
[wdevs_tax_switch_label]

Displays text indicating the currently selected tax setting. The text updates automatically when the tax switch is toggled.

The shortcode accepts several attributes to customize its appearance and behavior:

  • class-name: Adds custom CSS classes to the label.
    • Default: is-style-default
    • Options: is-style-default or custom classes
  • label-text-incl: Sets the text to display when “including tax” is selected.
    • Default: Uses the text set in the plugin settings or “Incl. VAT” if not set.
  • label-text-excl: Sets the text to display when “excluding tax” is selected.
    • Default: Uses the text set in the plugin settings or “Excl. VAT” if not set.
  • label-text-color: Sets the “excluding tax” text color.
  • label-text-color-checked: Sets the “including tax” text color.

Example with custom attributes:

[wdevs_tax_switch_label class-name="tax-indicator" label-text-incl="Prices include tax" label-text-excl="Prices exclude tax" label-text-color="#FF0000" label-text-color-checked="#4CAF50"]

PHP implementation

You can use these shortcodes with PHP with the do_shortcode() function:

<?php echo do_shortcode('[wdevs_tax_switch]'); ?>
<?php echo do_shortcode('[wdevs_tax_switch_label]'); ?>

JavaScript API

Tax Switch provides a JavaScript API for custom integrations, such as buttons, preference popups, or other flows where visitors choose whether they want to see prices including or excluding tax.

if ( window.wdevsTaxSwitch && ! window.wdevsTaxSwitch.hasSavedChoice() ) {
    window.wdevsTaxSwitch.setDisplay( 'incl', {
        respectExistingChoice: true,
    } );
}

API methods:
* getDisplay(): returns the current display, either 'incl' or 'excl'.
* setDisplay( display, options ): changes the display to 'incl' or 'excl'.
* hasSavedChoice(): returns whether the visitor already has a saved switch choice.
* refresh(): reapplies the current display.
* toggle( options ): toggles between inclusive and exclusive tax display.

Options:
* respectExistingChoice: boolean – preserves an existing saved visitor choice.

Set respectExistingChoice to true when you only want to apply a default if the visitor has not already made a saved choice.

You can also request a display change by dispatching an event. This is useful when your integration is event-driven.

document.dispatchEvent(
    new CustomEvent( 'wdevs-tax-switch-context-changed', {
        detail: {
            display: 'incl',
            respectExistingChoice: true,
        },
    } )
);

Detail properties:
* display: 'incl' | 'excl' | 'toggle' – requested tax display.
* respectExistingChoice: boolean – preserves an existing saved visitor choice.

JavaScript events

The switch fires a JavaScript event when the tax display changes. You can listen for this event to execute custom code when a user switches between inclusive and exclusive tax display. This is useful for when you need to perform additional actions based on the tax display state.

document.addEventListener( 'wdevs-tax-switch-changed', function( event ) {
    console.log( event.detail );
} );

Detail properties:
* isSwitched: boolean – the raw switch state.
* displayIncludingTax: boolean – whether prices now display including tax.

If you are loading the switch dynamically (via AJAX), dispatch this event after rendering to initialize the component:

document.dispatchEvent( new CustomEvent( 'wdevs-tax-switch-appeared' ) );

WPML

To translate the option texts via WPML:

  1. Save your options first in: WooCommerce -> Settings -> Tax Switch
  2. Then translate the texts in: WPML -> String Translations and search for your option values in the domain ‘tax-switch-for-woocommerce’

Compatibility

This plugin integrates with WooCommerce’s standard filters and actions for price display and calculation. While most plugins and themes work out of the box, some third-party code use custom price building methods that require specific compatibility integrations.

The following themes have been tested and confirmed compatible:

  • GeneratePress
  • Blocksy
  • Thrive
  • Flatsome
  • Kapee
  • Entr
  • Woodmart
  • Hello Elementor

The following plugins have been tested and confirmed compatible:

  • WooCommerce Product Table Lite (+ PRO)
  • Tiered Pricing Table for WooCommerce (+ Premium)
  • Measurement Price Calculator for WooCommerce
  • Discount Rules for WooCommerce
  • YITH WooCommerce Product Add-Ons (+ & Extra Options Premium)
  • JetEngine Listing Grid (Elementor)
  • Product Add-Ons for WooCommerce
  • B2BKing – Ultimate WooCommerce Wholesale and B2B Solution (+ Premium)
  • Advanced Product Fields Pro/Extended for WooCommerce
  • WooCommerce Quantity Discounts, Rules & Swatches
  • FacetWP
  • Variation Swatches for WooCommerce (+ PRO)
  • Variation Price Display Range for WooCommerce (+ PRO)
  • WooCommerce Product Add-Ons Ultimate
  • Advanced Woo Search (+ PRO)
  • B2B Market
  • FiboFilters
  • Extra Product Options & Add-Ons for WooCommerce
  • FiboSearch – Ajax Search for WooCommerce (+ Pro)
  • YayMail – WooCommerce Email Customizer
  • PDF Invoices & Packing Slips for WooCommerce
  • WooCommerce Product Bundles
  • LiteSpeed Cache
  • Elementor Pro
  • YITH WooCommerce Role Based Prices
  • WooCommerce Dynamic Pricing and Discount Rules
  • Price Based on Country for WooCommerce
  • WP Grid Builder

If you encounter any compatibility issues with other plugins or themes, please let us know. Your feedback helps us improve the plugin and extend compatibility to more third-party solutions.

Incompatibility

After multiple attempts to create compatibility functions, reaching out to the plugin developers several times, and still finding no viable solution, the following plugins remain incompatible:

  • Unlimited Elements for Elementor (+ Pro): AJAX pagination and filtering issues
  • Barn2: WooCommerce Product Options

Additional Information

This plugin is fully open source. You can find the source code on GitHub

For more information and other WordPress plugins, visit Wijnberg Developments.

Installation

  1. Install the plugin through the WordPress plugins screen directly or Upload the plugin files to the /wp-content/plugins/tax-switch-for-woocommerce directory.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Configure your settings as described in the ‘Configuration’ section.

Changelog

1.8.4

  • Checked compatibility with WordPress 7.1.3 and WooCommerce 11.2.1 (code and syntax review)

1.8.3

  • Increased the minimum required PHP version to 8.0
  • Tested WordPress 7.1
  • Tested WooCommerce 11.0.1

1.8.2

  • Improved compatibility for Advanced Product Fields Extended for WooCommerce
  • Improved blueprint.json

1.8.1

  • Added blueprint.json for an interactive WordPress Playground demo
  • Fixed tax display in mini cart after WooCommerce refreshes cart fragments
  • Added compatibility for Advanced Product Fields Extended for WooCommerce

1.8.0

  • Added refresh() to the public JavaScript API for reapplying the current tax display
  • Standardized “VAT” terminology to “tax” across text, documentation and code
  • Tested WooCommerce 10.9.1

1.7.0

  • Improved product context detection for price calculations with custom tax classes
  • Improved React compatibility by reusing existing roots when dynamically rendering tax switches
  • Added a public JavaScript API that allows third-party scripts to read and change the tax display via window.wdevsTaxSwitch or the wdevs-tax-switch-context-changed event.

Full changelog on WordPress.org →

Screenshots

This GIF demonstrates the main functionality of the plugin.
This GIF demonstrates the main functionality of the plugin.

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Tax Switch for WooCommerce alternatives

All tax plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 WooCommerce Tax (formerly WooCommerce Shipping & Tax) WooCommerce Tax (formerly WooCommerce Shipping & Tax) We’re here to help with tax rates: collect accurate sales tax, automatically. by WooCommerce 500K+ ★★★★★★★★★★ 2.1 (108) 2 weeks ago 77
2 Stripe Tax – Sales tax automation for WooCommerce Stripe Tax – Sales tax automation for WooCommerce Stripe Tax for WooCommerce allows you to easily calculate and collect sales tax, VAT, and… by Stripe Tax 30K+ ★★★★★★★★★★ 2 (4) 6 days ago 61
3 EU/UK VAT Validation Manager for WooCommerce EU/UK VAT Validation Manager for WooCommerce Manage EU/ UK VAT in WooCommerce, validate VAT numbers real time with VIES, exempt or… by WPFactory 7K+ ★★★★★★★★★★ 4.8 (39) 1 week ago 77
4 NIF (Num. de Contribuinte Português) for WooCommerce NIF (Num. de Contribuinte Português) for WooCommerce This plugin adds the Portuguese NIF/NIPC as a new field to WooCommerce checkout and order… by Naked Cat Plugins 5K+ ★★★★★★★★★★ 5 (8) 2 weeks ago 88
5 TaxJar – Sales Tax Automation for WooCommerce TaxJar – Sales Tax Automation for WooCommerce Trusted by more than 20,000 businesses, TaxJar’s award-winning solution makes it easy to… by Sean Voss 5K+ ★★★★★★★★★★ 2.6 (28) 2 weeks ago 77
7 Sales Tax Reports For WooCommerce Sales Tax Reports For WooCommerce The Sales Tax Reports For WooCommerce Plugin by mystyleplatform 800+ ★★★★★★★★★★ 4.8 (10) 7 months ago 42
8 Tax Exemption for WooCommerce Tax Exemption for WooCommerce Tax Exemption plugin for WooCommerce. Allow customers to declare tax / VAT exemption… by Elliot Sowersby / RelyWP 700+ ★★★★★★★★★★ 4.5 (4) 6 days ago 76
9 TaxCloud for WooCommerce TaxCloud for WooCommerce Simplify sales tax calculations, reporting, and filing by connecting your WooCommerce store… by Taxcloud 500+ ★★★★★★★★★★ 4 (11) 2 weeks ago 73
10 WebPlanex: GST Invoice India WebPlanex: GST Invoice India Automated Tax Compliance & Streamlined Billing for WooCommerce. Generate GST-compliant… by WebPlanex 400+ ★★★★★★★★★★ 5 (39) 3 months ago 77
11 RD Order Modifier for WooCommerce RD Order Modifier for WooCommerce Allows editing order items pricing inclusive of tax or VAT and using unit cost instead of… by camper2020 300+ ★★★★★★★★★★ 5 (6) 2 months ago 77

FAQ

Tax Switch for WooCommerce: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Tax Switch for WooCommerce free?

Yes. Tax Switch for WooCommerce is free to download and use from the official WordPress.org plugin directory.

Is Tax Switch for WooCommerce safe to use in 2026?

Yes — Tax Switch for WooCommerce is a safe, well-maintained plugin to use in 2026. It runs on 1K+ sites, is rated 5/5 and was last updated 1 month ago, and scores 87/100 on our health check.

How many websites use Tax Switch for WooCommerce?

Tax Switch for WooCommerce is active on 1K+ WordPress websites and has been downloaded 25,201 times since it launched in September 2024. It was downloaded 1,224 times in the last 30 days.

Does Tax Switch for WooCommerce work with WordPress 7.1?

Yes. The developer has tested Tax Switch for WooCommerce up to WordPress 7.1.5, the latest release. It requires WordPress 6.1 or newer.

What PHP version does Tax Switch for WooCommerce need?

Tax Switch for WooCommerce requires PHP 8.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Tax Switch for WooCommerce last updated?

The latest version, 1.8.4, was released on October 20, 2026 (1 month ago).

Who makes Tax Switch for WooCommerce?

Tax Switch for WooCommerce is developed and maintained by wijnbergdevelopments.

What are the best alternatives to Tax Switch for WooCommerce?

The most popular alternatives to Tax Switch for WooCommerce are WooCommerce Tax (formerly W… (500K+ installs), Stripe Tax (30K+ installs) and EU/UK VAT Validation Manage… (7K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open