Knowledge BaseSecurity Measures & Privacy Policy

Security Measures & Privacy Policy

Sana Commerce 9.1
Your connector

Cookie Bar

European laws require that web site owners inform their users about the use of cookies. Without any development you can add a cookie bar to your web store which makes it simple and clear to the web store visitors that cookies are in use.


Add a cookie bar to your web store

      Applies to: Sana Commerce 9.1.0 - 9.1.3

Copy the code from the "cookiebar" txt file and paste it to the following location in Sana Admin: Setup > Page elements & messages > HTML injections > Body end.

      Applies to: Sana Commerce 9.1.4

Step 1: In Sana Admin click: Setup > Page elements & messages > HTML injections.

Add the following code to the Head field:

<style>
#cookie-bar{background:#111;height:auto;line-height:24px;color:#eee;text-align:center;padding:3px 0}
#cookie-bar.fixed{position:fixed;top:0;left:0;width:100%}
#cookie-bar.fixed.bottom{bottom:0;top:auto}
#cookie-bar p{margin:0;padding:0}
#cookie-bar a{color:#fff;display:inline-block;border-radius:3px;text-decoration:none;padding:0 6px;margin-left:8px}
#cookie-bar .cb-enable{background:#070}
#cookie-bar .cb-enable:hover{background:#090}
#cookie-bar .cb-disable{background:#900}
#cookie-bar .cb-disable:hover{background:#b00}
#cookie-bar .cb-policy{background:#03b}
#cookie-bar .cb-policy:hover{background:#05d}
</style>

Step 2: In Sana Admin click: Tools > File manager. Download the "cookieBar.js" JavaScript file and upload it to the root of My Content.

Step 3: Open HTML injections in Sana Admin. Add the following line of code to the Body end field:

<script defer src="/content/files/cookieBar.js"></script>

A cookie bar will be added to the top of the web store from which web store visitors can agree with the use of cookies ('I agree') and read the detailed information about it on the 'Privacy policy' page ('More information').

If you open the "cookiebar.txt" / "cookieBar.js" file, you will see the configuration section at the beginning. There you can change the text of the message shown on the cookie bar and the text of the buttons.

Knowledge BaseSecurity Measures & Privacy Policy