Lifetime prices rise on 19 October →
Phox Elements
WOOCOMMERCE Inc and ex VAT prices for Breakdance

Let shoppers switch prices between inc and ex VAT

VAT Toggle adds a small switch that shows your WooCommerce prices with or without VAT. Trade buyers see ex VAT prices and consumers see inc VAT prices, from the same shop. Their choice is remembered as they browse.

Instant switch, no reload Works with page caching Remembers the visitor's choice
Live demo

Click inc VAT or ex VAT on any switch

The three switches below share one setting, so every price and every switch on the page changes together. Our demo shop has WooCommerce tax turned off, so these sample prices use the same inc and ex price markup the element adds to your WooCommerce prices, at 20% VAT.

Trade price list

Default pill style, with a prefix

Prices
Canagan Chicken Dog Food
Canagan Chicken Dog FoodDog Food
£17.99£14.99
Adult Wet Cat Food
Adult Wet Cat FoodCat Food
£13.99£11.66
Cat Pouches
Cat PouchesCat Food
£14.50 £12.99£12.08 £10.83
Naturo Dog Food
Naturo Dog FoodDog Food
From £10.00From £8.33
Wagg Active Goodness Dog Food
Wagg Active Goodness Dog FoodDog Food
£9.50£7.92
Harringtons Lamb Dog Food
Harringtons Lamb Dog FoodDog Food
£5.99£4.99
Goldfish Food Flakes
Goldfish Food FlakesFish Food
£2.99£2.49

Product card

Rounded buttons on a dark panel

Show prices
Canagan Chicken Dog Food
Canagan Chicken Dog Food£17.99£14.99Dog Food

Site header

No prefix, soft buttons, next to the basket

2 x Canagan Chicken Dog Food£35.98£29.98
1 x Cat Pouches£12.99£10.83
Basket total£48.97£40.81
How it works

Three steps to dual pricing

Set up WooCommerce tax once, then add the switch where shoppers will see it.

1

Set up tax

Turn on taxes in WooCommerce and add your VAT rates, so each product has an inc and an ex VAT price.

2

Add the switch

Drop VAT Toggle into your header or shop template. Set the labels and which mode first-time visitors see.

3

Publish

Once the switch has loaded on your live site, every WooCommerce price can be shown inc or ex VAT.

Features

Built for real shops

Fast switching that works with caching, carts and every price on the site.

Instant switching

On shop and product pages both prices are already in the page, so switching is instant with no reload.

Page cache safe

Cached pages are the same for every visitor. The visitor's choice is applied in the browser, before the page paints, so there is no flash of the wrong price.

Cart and checkout

Cart, checkout and account pages show totals in the chosen mode. These pages reload when the switch changes.

Every WooCommerce price

Any element that gets its price from WooCommerce is covered, including Phox product grids and Breakdance's WooCommerce elements.

Sale and variable prices

Sale prices keep their strikethrough and variable products keep their From or price range in both modes.

Remembers the choice

The visitor's choice is saved in a cookie for a year, so it follows them round the site.

Switches stay in sync

Put a switch in the header and another on the product page. They always show the same mode.

Optional price note

Add a small inc VAT or ex VAT note after every price, with its own colour and size.

Hides when tax is off

If WooCommerce tax is turned off, the switch hides itself on the live site rather than showing a switch that does nothing.

Use cases

Where it works best

Any shop that sells to both businesses and consumers.

01

Trade suppliers

Show trade customers the ex VAT prices they expect.

02

Builders merchants

Let tradespeople and homeowners shop the same catalogue.

03

Office and catering supplies

Serve business buyers without a separate trade site.

04

Wholesale and retail

Run one shop for both audiences.

05

Equipment and hire

Quote ex VAT for companies and inc VAT for the public.

06

B2B product catalogues

Default to ex VAT while still letting consumers check the full price.

Settings reference

Every control, explained

This is the full list of settings in the Breakdance editor, with their default values.

ControlWhat it doesDefault
Content
Prefix TextText before the buttons. Leave it empty to hide it.Prices
Including LabelText on the inc VAT button.inc VAT
Excluding LabelText on the ex VAT button.ex VAT
Default ModeWhat first-time visitors see: including or excluding VAT.Including VAT
Show inc/ex Note After PricesAdd a small note after every price.Off
Hide When Tax DisabledHide the switch on the live site if WooCommerce tax is off.On
Design
LayoutAlignment (left, centre or right) and gap.Left, 8px
PrefixColour and typography.—
Price NoteColour and font size of the note after prices.0.75em
Button typographyColour and typography for the button text.—
Button paddingPadding Y and padding X.4px / 12px
Button shapeBorder radius, border width and border colour.999px, 1px, #d1d5db
Button coloursBackground and text colour.Transparent
Active coloursBackground and text colour of the selected button.#111111 / white
Hover coloursBackground and text colour on hover.—
SpacingMargin top and margin bottom.—
Tips & FAQ

Good to know

Do I need WooCommerce tax set up?

Yes. The switch shows prices with and without tax, so taxes must be turned on in WooCommerce with your VAT rates added. If tax is off, the switch hides itself by default.

Does it change what customers pay?

No. It only changes how prices are displayed. Tax is still calculated by WooCommerce at checkout as normal.

Does it work with page caching?

Yes. Shop pages carry both prices and the visitor's choice is applied in the browser, so cached pages stay correct for everyone.

Where should I put it?

The header is a good spot, so shoppers can switch from any page. You can add more than one switch and they stay in sync.

Why is nothing happening after I add it?

The feature switches on the first time the element loads on your live site. Visit a page with the switch once after publishing, and make sure WooCommerce tax is turned on.

Add VAT Toggle to your next page

VAT Toggle is included with Phox Elements, along with 150+ other premium elements for Breakdance.