Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2007
    Location
    Belfast, N.Ireland
    Posts
    96
    Plugin Contributions
    0

    Default EU Cookie Law – How I used CookieGuard to comply with my Site

    There has been a few different threads on this subject, and I just wanted to show you the method that I used to compy with the EU cookie law on my zen cart site.

    [Note: To my understanding, ZenCart itself only uses 'essential' cookies and you do not need to give your visitors an option to allow or block these. But, if like me you use other services that use cookies, then you need to ask your users permission]

    I used the free script provided by: www.CookieGuard.eu
    (I am not in any way associated with these people, I just found this site when I was looking for a solution to the EN Cookie Law for my site)

    I added basic details of the site cookies on my Terms of Use document. I then wrote an information page specifically on cookies. I didn't need to do this as far as I know, but I wanted to to try and explain to my customers why the 'scary warning box' about cookies.

    (1) Figure out what cookies you have on your site. If you are not sure, then you can det details of how to check the cookies on your site at the bottom of the page at www.CookieGuard.eu

    (2) Go to www.CookieGuard.eu and generate a script for your site. Use the drop down box to pick the cookies that apply to you. For instance, what I did was choose:
    i) Choose PHP Session, and marked it as essential
    ii) Choose Google Analytics
    iii) Choose Custom and fill in some details about Google advertising
    iv) Choose custom and filled in some details about ShareThis



    (3) You can add your email address if you want, tick the box to accept the terms, then click on the button to generate the script.

    (4) Copy the script source down into your text/php editor.

    (5) Download the 2 Javascript files they tell you about with the generated code.



    For a ZenCart installation, you need to make a couple of simple changes to these, and add them to your ZenCart files.

    (1) Rename the 2 Javascript files, by add jscript_ to the start of each name. So now you will have:
    i) jscript_jqueryCookieGuard.1.0.min.js
    ii) jscript_jquery.min.js

    Now upload these 2 files to /includes/templates/MY_CUSTOM_TEMPLATE/jscript

    (2) Look at the code that you generated from the cookie guard website, you need to delete the first 2 lines – the ones that indicate the path of the 2 javascript files. You code will now start like this:
    Code:
    <script>
    $(document).ready(function(){
    $.cookieguard();
    (3) Copy the remainder of the script to the following file, and upload it to your server.
    \includes\templates\MY_CUSTOM_TEMPLATE\common\html_header.php

    That's it!

    I did a bit of customisation to mine to add a link to the “Cookie Information” page I wrote. I did this just to try and lessen the 'horror' of a warning poping up on my site.

    I edited the file jscript_jqueryCookieGuard.1.0.min.js By adding the following code to it
    Code:
    <br/>In compliance with EU Legislation (<a href="/http-cookies-information">Read More</a>)
    directly after the text
    Code:
    You may choose to block non-essential and unknown cookies.

    You can see it in operation on my site (Pet Master Pet Food Website), and the cookies information page it links to.

    I hope this helps a few people.

    Paul

  2. #2
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: EU Cookie Law – How I used CookieGuard to comply with my Site

    You can get rid of this if you like, the law was changed to implied consent 48hrs before the deadline.

    http://www.web2andmore.net/2012/05/2...-at-11th-hour/

 

 

Similar Threads

  1. v151 Age verification with cookie in header
    By castlepyro in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 28 Aug 2015, 05:55 PM
  2. weirdness with cookie maybe
    By DarkAngel in forum General Questions
    Replies: 2
    Last Post: 19 Oct 2010, 04:12 PM
  3. Problem with Carryover of Cookie with custom code
    By Ampboy in forum General Questions
    Replies: 0
    Last Post: 6 Sep 2010, 10:25 PM
  4. How to de activate installed shipping module when priced with attributes used?
    By oavs in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 1 Oct 2009, 05:55 AM
  5. Duplicate Site - How do I change the default cookie name?
    By xtracool in forum General Questions
    Replies: 0
    Last Post: 1 Aug 2009, 10:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR