Home Devert | Switch between gross/net in frontend (DevertTaxSwitch) Documentation Shopware Store ↗ Deutsch

Positions & design

You enable each of the six positions separately and choose an appearance and a label style for each.

Appearances

Every position offers four appearances:

Dropdown appearance with open menu
Dropdown (like the language switch)
Segmented control with two buttons
Segmented control
Toggle between two labels
Switch (toggle)
Text link “switch to net”
Text link

The text link has fixed texts (“Prices incl. VAT · switch to net”), so the label style makes no visible difference for it. In the cart it only shows the link, because the tax note is already next to it.

Labels

Configuration card “Labels”

Label style (default for all positions)

Default: Private customer: gross / Commercial customer: net Configuration card: Labels

Choices: Gross / Net incl. / excl. VAT Private / Business Private customer: gross / Commercial customer: net

Applies to all positions where the label style is “Same as the default label style”. You change the texts themselves with snippets.

Labels Gross and Net
Gross / Net
Labels incl. and excl. VAT
incl. / excl. VAT
Labels Private and Business
Private / Business
Labels Private customer gross and Commercial customer net
Private customer: gross / Commercial customer: net

Top bar

Segmented control “Gross | Net” in the top bar next to the language selection

Shopware only shows the top bar if the sales channel has more than one language or currency. Otherwise the switch is missing there too.

Configuration card “Position: top bar”

Show in top bar?

Default: Off Configuration card: Position: top bar

Shows the switch at the top next to language and currency.

Appearance

Default: Dropdown (like the language switch) Configuration card: Position: top bar

One of the four appearances.

Label style

Default: Same as the default label style Configuration card: Position: top bar

Own labels for the top bar only. Short texts work best in this narrow bar.

Configuration card “Position: header”

Show in Header?

Default: On Configuration card: Position: header

Shows the switch next to account and cart.

Appearance

Default: Dropdown (like the language switch) Configuration card: Position: header

One of the four appearances. Segmented control, toggle and text link need space: they appear from a window width of 1200 px. Below that the header automatically shows a compact dropdown, so the search field does not get squeezed.

Label style

Default: Same as the default label style Configuration card: Position: header

Own labels for the header only.

Show the header switch on very small screens?

Default: Off Configuration card: Position: header

Below 576 px the header switch is hidden, because it is available in the off-canvas menu. With this option it stays visible. Choose short labels then.

Smartphone header with dropdown “Gross” next to search, account and cart

Off-canvas menu

Open menu on a smartphone with switch “Gross | Net” at the top
Configuration card “Position: off-canvas menu”

Show in the off-canvas menu?

Default: On Configuration card: Position: off-canvas menu

Shows the switch at the top of the mobile menu.

Appearance

Default: Dropdown (like the language switch) Configuration card: Position: off-canvas menu

One of the four appearances.

Label style

Default: Same as the default label style Configuration card: Position: off-canvas menu

Own labels for the menu only.

Product page

Segmented control below the price on the product page
Configuration card “Position: product page”

Show on the product page? (Under the price)

Default: Off Configuration card: Position: product page

Shows the switch below the price, where the question “with or without tax?” comes up.

Appearance

Default: Segmented control Configuration card: Position: product page

One of the four appearances.

Label style

Default: Same as the default label style Configuration card: Position: product page

Own labels for the product page only.

Switch in the footer above the note about the prices
Configuration card “Position: footer”

Show in footer?

Default: Off Configuration card: Position: footer

Shows the switch next to the note about the prices.

Appearance

Default: Segmented control Configuration card: Position: footer

One of the four appearances.

Label style

Default: Same as the default label style Configuration card: Position: footer

Own labels for the footer only.

Shopping cart

Off-canvas cart with link “switch to net” below the tax note
Off-canvas cart
Summary of the cart page with link “switch to net”
Cart page

When the visitor switches in the off-canvas cart, the page reloads and the cart opens again:

Add a product to the cart and switch to net there
Configuration card “Position: shopping cart”

Show in the cart? (Off-canvas cart and cart page)

Default: Off Configuration card: Position: shopping cart

Applies to both the off-canvas cart and the cart page.

Appearance

Default: Text link Configuration card: Position: shopping cart

One of the four appearances. The text link is the most discreet one.

Label style

Default: Same as the default label style Configuration card: Position: shopping cart

Own labels for the cart only.

Your own position

You can add the switch anywhere in your theme, see Include the switch yourself.