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

Cookie & links

The choice of the visitor is stored in the cookie tax_switch (0 = net, 1 = gross). Without this cookie the setting of the customer group applies.

The plugin adds the cookie as a separate entry to the cookie settings of your shop:

Shopware cookie settings with the entry “Gross/Net Switch”

If a visitor has not given consent yet and clicks the switch, a hint appears:

Hint “Cookie required” with the button “Allow cookie and switch to net”

Settings

Allow cookie automatically as technical cookie? (Possibly not GDPR-compliant! See help text)

Default: Off Configuration card: General

The cookie is then listed with the technically required cookies. Visitors switch directly without a hint. The cookie is only written when someone makes a choice (or on login or via a link).

Whether the cookie may count as technically required in your shop is a legal question. The option may not comply with the GDPR. Use it at your own risk.

Cookie lifetime in days

Default: 30 Configuration card: General

How long the choice stays in the browser. 0 or an empty field means 30 days.

Links with a tax mode

With ?tax=net or ?tax=gross you link directly to a mode, for example in a newsletter to business customers:

https://your-shop.com/category/?tax=net

Allow URL parameter ?tax=net / ?tax=gross

Default: On Configuration card: General

  • With consent (cookie exists or technical cookie): the cookie is set and the visitor is redirected to the same address without the parameter.
  • Without consent: no cookie is set. If the requested mode differs from the current one, the cookie hint opens.
  • Pages with the parameter are not cached and get X-Robots-Tag: noindex, nofollow.
  • Other values are ignored. If the switch is not active for the visitor, the parameter does nothing.

What is stored in the browser

This overview helps with your privacy policy.

NameTypePurpose
tax_switchcookie, configurable lifetimechosen mode
tax_switch_eventsession cookie, deleted right awayreports the change after a link with ?tax= to the tracking event
taxswitch_popuplocalStorageonly with the option hide popup after first opening
taxswitch_reopen_cartsessionStorage, deleted after the reloadopens the off-canvas cart again after switching