Tax Switch for WooCommerce
Tax Switch for WooCommerce enhances your WooCommerce store by allowing users to toggle between displaying prices including or excluding VAT. This plugin adds a customizable switch component and provides a flexible way to display both price versions. 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 VAT 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: 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” Set up tax rates Go to: WooCommerce > Settings > Tax > Standard Rates Add your regional tax rates 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.) Individual product configuration Edit products at: Products > [Product] Under Product Data > Tax, set status to “Taxable” Plugin settings Configure these plugin-specific settings: 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: Use the Gutenberg block “Tax Switch for WooCommerce” in your page or post editor. 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 VAT. 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 VAT” 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 VAT” 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 VAT” 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. tax" switch-label-excl="Excl. tax" switch-aria-label="Switch between prices including and excluding VAT"] 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 VAT” 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 VAT” is selected. Default: Uses the text set in the plugin settings or “Excl. VAT” if not set. label-text-color: Sets the “excluding VAT” text color. label-text-color-checked: Sets the “including VAT” 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: JavaScript API Tax Switch provides a small frontend 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 VAT. if ( window.wdevsTaxSwitch && ! window.wdevsTaxSwitch.hasSavedChoice() ) { window.wdevsTaxSwitch.setDisplay( 'incl', { respectExistingChoice: true, } ); } API methods: * hasSavedChoice(): returns whether the visitor already has a saved switch choice. * getDisplay(): returns the current display, either 'incl' or 'excl'. * setDisplay( display, options ): changes the display to 'incl' or 'excl'. * toggle( options ): toggles between inclusive and exclusive VAT 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 VAT 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. * displayIncludingVat: boolean – whether prices now display including VAT. 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: Save your options first in: WooCommerce -> Settings -> Tax Switch 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 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.
Top keywords
- woocommerce35×2.79%
- switch33×2.63%
- tax32×2.55%
- display20×1.60%
- vat19×1.52%
- settings17×1.36%
- set16×1.28%
- text15×1.20%
- tax switch13×1.04%
- sets12×0.96%
- options11×0.88%
- product11×0.88%
EU VAT Assistant for WooCommerce
Important The EU VAT Assistant reached its end of life on the 30th of June 2022 (see the announcement from January 2022). The plugin is still functional and it can be used, but it’s no longer maintained or supported. We’re keeping it available for a while longer as a courtesy to existing users who have developers who can take care of its maintenance and troubleshooting. For more information about the plugin retirement and the recomemnded alternative, please refer to the sticky post in the support forum: EU VAT Assistant – End of life and recommended alternative. This is a full version of the premium EU VAT Assistant plugin We are proud to say that this is the most powerful free EU VAT solution on the market. It was designed with you, the merchant, in mind, and it will make it easier to deal with the new, complex EU VAT regulations. this plugin was developed by Aelia Team – The WooCommerce internationalisation experts. The EU VAT Assistant for WooCommerce is designed to help achieving compliance with the new European VAT regulations, coming into effect on the 1st of January 2015. Starting from that date, digital goods sold to consumers in the European Union are liable to EU VAT, no matter where the seller is located. The VAT rate to apply to each sale is the one charged in the country of consumption, i.e. where the customer resides. These new rules apply to worldwide sellers, whether resident in the European Union or not, who sell their products to EU customers. For more information: EU: 2015 Place of Supply Changes – Mini One-Stop-Shop. How this plugin will help you The EU VAT Assistant plugin extends the standard WooCommerce sale process and calculates the VAT due under the new regime. The information gathered by the plugin can then be used to prepare VAT reports, which will help filing the necessary VAT/MOSS returns. Tracks and records customers’ location. The EU VAT Assistant plugin also records details about each sale, to prove that the correct VAT rate was applied. This is done to comply with the new rules, which require that at least two pieces of non contradictory evidence must be gathered, for each sale, as a proof of customer’s location. The evidence is saved automatically against each new order, from the moment the EU VAT compliance plugin is activated. Collects evidence required by the new regulations. All the data used to determine the VAT regime to apply is recorded in real-time, stored with the order and made available as needed. Accepts and validates EU VAT numbers, adjusting VAT accordingly. Validation of European VAT numbers is performed via the official VIES service, provided by the European Commission. This feature is equivalent to the one provided by the EU VAT Number plugin. Supports a dedicated VAT currency, which is used to generate the reports. You can sell in any currency you like, the EU VAT Assistant plugin will take care of converting the VAT amounts to the currency you will use to file your returns. Can automatically populates the VAT rates for all EU countries. With a single click, you enter the VAT rates for all 28 EU countries. No more tedious manual typing! Includes advanced Reports EU VAT report by Country. This report will show you all the VAT collected under the VAT MOSS regime, as well as the VAT collected for your domestic VAT return. VIES report. This report shows all the supplies provided to B2B customers. INTRASTAT report. This report shows all the sales made to the EU. Sales by Country (in development). Supports ECB exchange rates in VAT MOSS reports. VAT MOSS Reports can use either the exchange rate saved with each order, or the European Central Bank rate required to produce the official VAT MOSS returns (ref. official documentation). This feature will allow you to use the most appropriate rate when producing your domestic VAT return and the VAT MOSS return. Supports mixed products/services scenarios. The new EU VAT MOSS regime applies to the sale of digital products and services that do not require significal manual intervention. Sale of services that are provided with human intervention, such as support, consultancy, design, are still subject to VAT at source. In this case, VAT has to be paid to the revenue in merchant’s country. WooCommerce allows to specify to which country a tax applies, but not to which country it should be paid once collected. The EU VAT Assistant can help, by allowing merchants to specify the “payable to” country for each VAT. Such information is then displayed in the VAT reports. Allows to force B2B or B2C sales. You can decide if you wish to force customers to a valid EU VAT number at checkout, thus accepting only B2B transactions, or prevent them from doing it, thus accepting only B2C transactions. Can prevent sales to specific countries. You can exclude some countries from the list of allowed ones, thus preventing customers from those countries from placing an order. It’s fully compatible with our internationalisation solutions, such the WooCommerce Currency Switcher, for multi-currency support, Prices by Country, Tax Display by Country and Prices by Role (coming soon). Automatically updates the exchange rates that are be used to produce the VAT reports in the selected VAT currency. The plugin can fetch exchange rates from the following providers: European Central Bank HM Revenue and Customs service Bitpay Irish Revenue (experimental) Danish National Bank (sponsored by Asbjoern Andersen). Fully supports refunds. Refunds were introduced in WooCommerce 2.2, and support for it was added to our plugin right from the start. Integrates with PDF Invoices and Packing Slips plugin, to automatically generate EU VAT-compliant invoices. Requirements WordPress 4.0 or newer. PHP 7.1 or newer. WooCommerce 3.5 or newer. Aelia Foundation Classes framework 2.1.0.201112 or newer. Disclaimer This product has been designed to help you fulfil the requirements of the following new EU VAT regulations: Identify customers’ location. Collect at least two non-contradictory pieces of evidence about the determined location. Apply the correct VAT rate. Ensure that VAT numbers used for B2B transactions are valid before applying VAT exemption. Collect all the data required to prepare VAT returns. We cannot, however, give any legal guarantee that the features provided by this product will be sufficient for you to be fully compliant. By using this product, you declare that you understand and agree that we cannot take any responsibility for errors, omissions or any non-compliance arising from the use of this plugin, alone or together with other products, plugins, themes, extensions or services. It will be your responsibility to check the data produced by this product and file accurate VAT returns on time with your Revenue authority. For more information, please refer to our terms and conditions of sale and support.