Klaro Cookie Consent: Storefront
Cookie settings link of Klaro Cookie Consent for Shopware 6.7 - automatic footer link and a freely placeable link through the category navigation.
Klaro Cookie Consent: Storefront
This documentation always describes the latest published version.
Cookie settings link
To let users change their consent decision at any time, the storefront needs a way to reopen the Klaro dialog. There are two combinable ways to do that.
Automatic footer link
Default behavior
The plugin automatically adds a "Cookie Settings" link to the footer service menu whenever Klaro is active for the sales channel. Clicking it reopens the consent dialog. No configuration is required. The label comes from the snippet mmd-klaro.cookieSettings.
Disabling it
The setting Automatically add Cookie Settings link to footer service menu (default: on) hides the automatic link. This is useful when you place your own link elsewhere (see below) to avoid a duplicate entry.
Placing your own link anywhere
A cookie settings link can also be placed freely in your own navigation: in a footer category, the main navigation, a "Legal" column or a text element of a Shopping Experience. No template override is required.
graph LR
A["Create category with external link"] --> B["URL ends in #mmd-klaro-cookie-settings"]
B --> C["Click in the storefront"]
C --> D{"Does the href end in the anchor?"}
D -->|"Yes"| E["Navigation prevented, Klaro dialog opens"]
D -->|"No"| F["Normal navigation"]
Steps:
- Under Catalogues > Categories, create a category of type Link > External Link.
- Set the target URL to any URL ending in
#mmd-klaro-cookie-settings, e.g.https://your-shop.tld/#mmd-klaro-cookie-settings. - Place the category anywhere in your navigation (footer, main menu, a text element in a Shopping Experience, etc.).
The link only works in sales channels where Klaro is active. If Klaro is inactive, the link simply navigates to the given URL without opening the dialog.
Handy for repurposing an old link left over from Shopware's native cookie consent (URL ending in
/cookie/offcanvas) instead of deleting it.
Shopware cookie banner
When Klaro is active for a sales channel, the plugin suppresses Shopware's native cookie notice in that sales channel. The template blocks the plugin overrides for this are listed on the Technical page.