This Magento 2 extension adds a notice telling visitors that your store uses cookies.
Tbe banner can be displayed in two different positions.
It contains a short sentence, three buttons - read more, accept cookies and close button (x).
It is possible to display store logo above the sentence.
The banner is customizable, below are listed available settings.
Functional settings:
-
enable/disable banner
-
cookie lifetime in seconds
-
Close button
- enable/disable button
- possible click results: hide banner and accept cookies / just hide the banner
-
Read more button
- enable/disable button
- possible click results: open linked page / display content of static block below the buttons (loaded in real-time with enabled loader)
Design settings:
- banner position - top or bottom area of each page
- logo - if enabled, it will be displayed above the sentence
- customisations to read more and accept cookies buttons
- select font color (separately for hover state)
- select background color (separately for hover state)
- border width and color
Content:
- editable sentence
- editable text of “read more” and “accept cookies" buttons
Rakuten integration
I have installed this extension as a part of the integration with Rakuten (rakuten.com) - see Rakuten's documentation part where window.__rmcp = [1,2,3,4,5] is required. However, the extension can be installed in any case.
Store:
Magento 2 admin:
Pull in the extension through Composer:
composer require "mikielis/magento2-module-cookie-banner-rakuten:*"
OR
download zipped extension and add its files to [magento root directory]/app/code/Mikielis/Cookie directory and follow listed steps from official guide: https://devdocs.magento.com/guides/v2.3/comp-mgr/install-extensions.html