
The simplest
strategy to toggle tax in WooCommerce!
Tax Toggle for WooCommerce extension plugin means that you can simply toggle between the taxed worth and the untaxed worth (i.e. present costs with and with out tax in WooCommerce).
Tax Toggle for WooCommerce permits the client to pick whether or not they need to view your WooCommerce merchandise worth together with tax or excluding tax. The choice chosen is saved to the customers gadget so when the client strikes from web page to web page the costs are proven as per their choice.
The toggle is robotically added as a floating button on the left hand facet of the positioning, however the toggle button will also be added as a Widget in a sidebar or it may be added wherever (together with in Gutenberg blocks or your theme) with shortcode [wootax].
For a greater consumer expertise, the WooCommerce Cart and Checkout behaviour are totally different from different pages. On the Cart web page, the tax toggle exhibits/hides the tax and complete order within the order abstract. It doesn’t toggle the person gadgets as this could possibly be complicated for the client.
On the Checkout the toggle is hidden as a result of the tax is displayed as per the checkout guidelines. e.g. by what location is chosen within the handle.
The Tax Toggle makes use of the bottom nation tax settings as per the WooCommerce tax settings part.
Examined and totally working with WordPress 6.8+ and WooCommerce 10+ and dealing on over 10,000 WooCommerce web sites.
The plugin works and has been examined with the most recent model of WordPress and WooCommerce. It really works with the Traditional Editor or Gutenberg Block Editor and works with WooCommerce Gutenberg Blocks. It has been examined with over 50 totally different themes, together with the favored Storefront Theme for WooCommerce. It really works with web page builders like Elementor, Oxygen, Beaver, and Bricks. Put in it and it’s not working? No drawback, open a help ticket with us and we’ll get it working.
Key options roundup:
- Easy – set up and let your clients toggle on/off tax values!
- Shows by default as floating toggle button
- Toggle button might be inserted wherever with shortcode, PHP code or utilizing Widget
- Textual content might be modified as wanted – Tax, VAT, BTW, MOMS, GST – name tax no matter you need
- No refresh – Doesn’t refresh the web page. Makes use of PHP and JavaScript to toggle the tax with out refreshing the web page for the consumer.
- Set a default to robotically activate the toggle for brand new guests
- Simple to fashion with CSS as you need to fit your theme
- Works with WooCommerce Product variations; works with Sale/Discounted gadgets
- Suitable with Gutenberg, WooCommerce Blocks, Storefront and plenty of common WordPress themes and plugins
- Very fast and light-weight code – doesn’t have an effect on efficiency of your web site
Directions for Set up
Obtain the plugin zip file.
Go to WordPress Admin > Plugins > Add New Plugin > Add Plugin, and add the plugin zip file.
There are different methods to put in the plugin, please see the WordPress documentation right here (http://codex.wordpress.org/Managing_Plugins).
As soon as, put in, Activate the plugin. Tax Toggle will robotically show on the positioning.
For the plugin to work correctly, it’s essential add some tax info to your WooCommerce settings:
1) Tax Charges and Calculations should be switched on
WP Admin > WooCommerce > Settings > Basic “Allow tax charges and
calculations”
2) Tax Charge should be set
WP Admin > WooCommerce > Settings > Tax > Commonplace Charges + Insert
Row together with your Tax information
3) Particular person Product should be marked as Taxable
WP Admin > Merchandise > Product > Product Knowledge > Tax Standing > Product
ought to be “Taxable”
4) Set your default buyer location (that is how the tax is
labored out if consumer just isn’t logged in)
WP Admin > WooCommerce > Settings > Basic > Default buyer
location ought to be “Store base handle” and your store base handle ought to
be
crammed in
5) Optionally available: Calculate tax primarily based on “Store Base Deal with” (Except you
make all of your clients register with their handle earlier than searching
or your tax system just isn’t primarily based in your retailer location)
WP Admin > WooCommerce > Settings > Tax > Calculate tax primarily based on
“Store Base Deal with”
Necessities
The plugin requires WooCommerce and WordPress to be put in.
Additionally, you will must have your tax charges set in WooCommerce settings.
The plugin is appropriate with Traditional Editor, Gutenberg/Block Editor, and Elementor and different web page builders utilizing WooCommerce product show.
Utilizing in Gutenberg Block Editor
Simply insert Tax Toggle in to your Gutenberg/Block theme by utilizing the Yax Toggle Block or the Shortcode Block after which utilizing shortcode [wootax]
to insert the Toggle button in to your theme.
Utilizing the Shortcode
You need to use the shortcode [wootax]
to insert the Toggle button wherever you need in your theme.
Utilizing the Widget
The Tax Toggle widgets might be added by going to Appearances > Widgets. You’ll discover the tax toggle listed right here as Tax Toggle. Drag this in to a Widget space and it’ll seem the place you need it.
Utilizing PHP
If you wish to embody the widget in your theme, use this for PHP insertion: <?php echo woo_tax_output(); ?>
or <?php echo do_shortcode('[wootax]'); ?>
Tax Toggle Plugin Settings
Settings for the plugin are added to WP Admin > WooCommerce > Settings > Tax > Tax Choices
Out there settings are:
- Floating Tax Toggle – Controls the visibility of the floating tax
toggle. - Tax Button Textual content – Controls the language for the button textual content.
- Tax Textual content – Controls the language for the title of the tax.
- Default Toggle Standing – Controls whether or not the toggle is activated on
first load for visitor. - Limit Tax Toggle to Store pages – Cover the toggle on pages the place you
don’t have any store gadgets. - Theme Override – Experimental. In case your theme exhibits double pricing in
some locations, this will assist repair it. As soon as activated, examine the browser
console for suggestions.
FAQ
Q: The Tax Toggle just isn’t working?
A: Please double examine your tax settings and your product settings to examine you’ve got the taxed and unataxed quantities accurately setup. By default WooCommerce doesn’t embody a tax price quantity. This must be setup in WooCommerce > Settings > Tax
Q: Can I translate the textual content?
A: The plugin is about up for the strings to be translated by common packages reminiscent of WPML and Polylang. If you wish to translate the strings for only one language, here is a code snippet to add to your themes functions.php file.
Q: Does this work with my theme? The plugin doesn’t show accurately with my X theme
A: Each theme is totally different, but when the theme is correctly coded utilizing WooCommerce coding requirements then this plugin ought to work. If the plugin doesn’t work out of the field, we offer a Theme Override setting to assist make it appropriate with themes that do issues in a wierd method, and we are able to present help with every other themes utilizing both PHP in your theme/little one theme or JavaScript.
Q: I want extra assist with Tax Toggle
A: There’s a knowledgebase of common issues for Tax Toggle at our website, there are various comments and answers from customers right here on CodeCanyon, and you’ll open additionally a private support ticket with me for direct assist. I need Tax Toggle to give you the results you want, so please open a help ticket with me earlier than declaring the plugins “doesn’t work” because the plugin is in use on 10,000+ web sites, on web sites promoting hundreds of merchandise per day. It really works! However relying on the standard of your theme or the pluings you’ve got, it generally wants assist.
Q: Are you actively engaged on Tax Toggle?
A: Sure. I’m a WordPress developer and develop in WordPress on a regular basis. I’ve set out a roadmap for Tax Toggle and if you wish to give any suggestions to me, I can generally implement suggestions inside a number of hours.
Change Log
Model 1.4.0 (2025-10-01)
- Full plugin rewrite
- iOS-style toggle included
- New Block Editor block for Tax Toggle (for Full Website Modifying)
- Built-in updater and licensing system
- Examined as much as WordPress 6.8.3
- Examined as much as WooCommerce 10.2
Model 1.3.8 (2024-04-16)
- Examined as much as WordPress 6.5.2
- Examined as much as WooCommerce 8.8
- Characteristic: Show “From” Earlier than Variable Worth is now an choice.
- Characteristic: New choice to show the strikethrough authentic worth vary for variable merchandise on sale.
- Bug repair: Replace variable merchandise dealing with when additionally on sale.
- Bug repair: Replace merchandise when no tax or no tax standing is about.
Model 1.3.7 (2023-11-23)
- Examined as much as WordPress 6.4.1
- Examined as much as WooCommerce 8.3
- Helps Excessive-Efficiency order storage (HPOS) / Customized Order Tables
Model 1.3.6 (2022-01-21)
- Examined as much as WordPress 5.9
- Examined as much as WooCommerce 6.2.0
- Bug repair: Shortcode now outputs toggle the place it’s positioned in your
web page - Bug repair: Cease “From” displaying on variable product with an identical little one
costs - Bug repair: Cease sale worth displaying when sale is scheduled however not
lively
Model 1.3.5 (2021-11-17)
- Examined as much as WordPress 5.8.2
- Renamed some features for consistency
- Eliminated defunct geoip features
- Eliminated title textual content on tax incl/excl textual content
- Added POT file to totally translate plugin if required
Model 1.3.4 (2021-10-19)
- Up to date markup to replicate adjustments in WooCommerce default
- New class .wootax-suffix to focus on the inc/exc tax textual content
- Improved detection and show of no tax merchandise
- Examined with WordPress 5.8.1 and WooCommerce 5.8
Model 1.3.3 (2021-07-18)
- Added new choice to solely present floating toggle on store pages
- Repair PHP error associated to mini cart
- Examined with WordPress 5.8 and WooCommerce 5.5
Model 1.3.2 (2021-05-18)
- Repair minicart all the time displaying together with worth
- Minor documentation updates
- Replace changelog yr for 2021 updates
Model 1.3.1 (2021-05-13)
- Allowed for Zero Rated gadgets to not show incl/excl tax textual content.
- Minor documentation updates
- Major readme is now HTML file
Model 1.3 (2021-05-13)
- Numerous bug fixes
- PHP updates
- jQuery 3.0+ updates
- Suitable with Storefront Theme
- Suitable with WooCommerce Gutenberg Blocks
- Dropped reliance on FontAwesome for lively toggle, now utilizing SVG
- Added small animation on toggle change
- Experimental choice to make extra appropriate with some themes
- Added default standing choice
- Improved documentation
- Added admin notices if WooCommerce or Tax not enabled
Model 1.2.9 (2020-01-01)
- Gutenberg compatibility enhancements
Model 1.2.4 (2017-11-01)
- Alter cart tax show to repair itemised solely displaying
- Alter get_price operate to exchange depreciated WC features
Model 1.2.3 (2017-07-17)
- Debug repair
Model 1.2.2 (2017-07-17)
- Cookie repair
Model 1.2.1 (2017-07-17)
- PHP Loader added
- Shortcode added
Model 1.2.0 (2017-06-05)
- Rewrite of file construction
- Compatibility with WC 3.0 hook adjustments / discontinued hooks
- Rebuilt the variable product from: operate
Model 1.1.4 (2017-04-11)
- Bug fastened when easy product however no tax
Model 1.1.3 (2017-04-11)
- Future compatibility with new product calling strategies
- https://github.com/woocommerce/woocommerce/wiki/CRUD-Objects-in-3.0
- https://docs.woocommerce.com/wc-apidocs/class-WC_Product.html
- Repair notices on wp_debug_display
Model 1.1.2 (2017-04-05)
- Change the cookie methodology to work with WC 3.0
- Cleaned some JS
Model 1.1.1 (2017-01-20)
- Add translation instance code operate
- Add extra translations
- Assist variable decimal level positions
- Assist Foreign money Positions
- Assist varied separator varieties
Model 1.1.0 (2017-01-04)
- Made all strings translatable
- Tidied code
- Add span class to amount to extend compatibility with dropdown carts
on sure themes utilizing JS to rely QTY - repair https situation on some websites
Model 1.0.15 (2016-11-08)
- Repair proper to left forex image on variable product
Model 1.0.14 (2016-05-19)
- Provides Foreign money Image to mini-cart / Repair
Model 1.0.13 (2016-05-18)
- Repair to work with newest mini-cart
Model 1.0.12 (2016-05-09)
- Replace for brand new WP – Fixes Variation non-sale being £0
Model 1.0.11 (2016-01-31)
- Common / Sale Repair
- Sale on variation replace
- Widget textual content as per settings
Model 1.0.10 (2015-12-22)
- Rounds numbers as per the WC settings
- Doesn’t show the toggle for non-tax gadgets
- Exhibits each common and sale worth (with line-through)
- repair discover for $wootext
Model 1.0.9 (2015-09-17)
- Shows accurately for customized decimal factors set in Settings
Model 1.0.8 (2015-09-14)
- Up to date Foreign money Place for proper sided currencies
Model 1.0.7
- Customise the Toggle Button textual content within the settings. Default will probably be
Contains + TAXTEXT - Set’s default setting of tax included or excluded primarily based on WooCommerce
settings
Model 1.0.6
- Fastened forex bug with sidebar cart.
Model 1.0.5
- Suitable with WP 4, WC 2.2 and repair jQuery VAT addition on non-UK websites
Model 1.0.4
- Added From: to prepend to Grouped and Variable merchandise so it signifies
a spread
Model 1.0.3
- Added capacity to edit the VAT textual content in WooCommerce > Settings
Model 1.0.2
- Fastened no look on some themes
- Geographic beta work began
Model 1.0.1
- Small change to rename as Tax Toggle and never VAT Toggle