Skip to content

This Magento 2 extension adds a notice telling visitors that your store uses cookies. It can be used as a part of integration your Magento with Rakuten.

Notifications You must be signed in to change notification settings

Mikielis/magento2-cookie-banner-rakuten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento 2 Cookie Notice

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.

Screenshots


Store:

magento-2-cookie-banner



magento-2-cookie-banner-2



magento-2-cookie-banner-3



magento-2-cookie-banner-4



Magento 2 admin:



magento-2-cookie-banner-5



Installation

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

About

This Magento 2 extension adds a notice telling visitors that your store uses cookies. It can be used as a part of integration your Magento with Rakuten.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published