Overview
A switch that lets business customers see prices excluding VAT and consumers including VAT, in the shop, the cart and the checkout.
- B2B and B2C prices
- One switch for the whole store
- Remembered on every visit
Best for: Stores selling to companies and consumers
Installation
- Download vatly-vat-toggle.zip from My account › My plugins or from your order email. Do not unzip it.
- In WordPress, go to Plugins › Add New Plugin › Upload Plugin, choose the zip and click Install Now, then Activate.
Requires WordPress 6.0+, PHP 7.4+, WooCommerce 7.0+. Works with any theme, block themes and page builders.
Features
- Incl. VAT / Excl. VAT switch
- Shop, product pages, cart and checkout
- Choice remembered on every visit
- Label after each price
- Floating switch or shortcode [vatly]
- Your labels and color
- Works with page caching (WP Super Cache)
Shortcodes
Paste a shortcode in any page, post, widget or page builder text block.
[vatly][vatly_preview]
Options of each shortcode are described in the Features above and in the plugin settings page.
For developers
Customize the plugin from your theme’s functions.php or a small plugin, without editing its files (your changes survive updates).
Filters
vatly_activevatly_sanitize
add_filter( 'vatly_active', function ( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Actions
vatly_admin_after_formvatly_admin_before_formvatly_admin_form_endwpsc_add_cookie
Updates
Updates are free. When a new version is out, it appears in Dashboard › Updates of your WordPress site and you can install it in one click, or turn on automatic updates in Plugins. This works for the zip downloaded from your Woo-Plugins account; older copies can be replaced by downloading the latest version from My plugins. See the changelog.
Frequently asked questions
Does it change the taxes charged?
No, it only changes how prices are displayed; taxes follow your WooCommerce settings.
Do I need taxes enabled?
Yes, enable taxes and add your rates in WooCommerce.
Still stuck?
Write to us with your WordPress and WooCommerce versions and what you tried: we answer by email.