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.
Consent
The plugin adds the cookie as a separate entry to the cookie settings of your shop:

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

- Allow cookie and switch is the consent for this cookie only. All other cookie settings stay as they are.
- Cookie preferences opens the Shopware settings.
- If the visitor deselects the entry in the cookie settings again, the cookie is deleted.
Settings
Allow cookie automatically as technical cookie? (Possibly not GDPR-compliant! See help text)
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
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
- 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.
| Name | Type | Purpose |
|---|---|---|
tax_switch | cookie, configurable lifetime | chosen mode |
tax_switch_event | session cookie, deleted right away | reports the change after a link with ?tax= to the tracking event |
taxswitch_popup | localStorage | only with the option hide popup after first opening |
taxswitch_reopen_cart | sessionStorage, deleted after the reload | opens the off-canvas cart again after switching |