Page 1 of 9 123 ... LastLast
Results 1 to 10 of 84
  1. #1
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,915
    Plugin Contributions
    3

    Default cookie consent script

    We have managed to embed the COOKIE CONSENT system developed by http://www.wolf-software.com, into this "DEMO" site: http://carpclobber.com

    Several minor edits, but not too difficult. Though we are TESTING this for any unseen glitches.
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    1,030
    Plugin Contributions
    24

    Default Re: New European Law restricting cookies

    Looks good.
    Have you tested it with other languages (that have accents)? I often find they get mangled.
    Steve
    "Totally Zenned" my a*se!

  3. #3
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,915
    Plugin Contributions
    3

    Default Re: New European Law restricting cookies

    The whole thing is run by a JS file, into which you write appropriate text strings, so I don't see a problem with other languages.

    Just load the LIB folder into the root of the server, then add the header code into your template's html_header.php... and away you go.

    The header script calls in jquery from google, so if you are running mods calling in jquery (either from Google or elsewhere), then be sure to place the header script into html_header AFTER jquery is called, and to delete the embedded reference to jquery in the bit of script.

    One part I am NOT sure on, is:

    How do I read the cookie ??

    In order to be able to delivery consent that uses non essential cookies you need to be able to check if consent has been given!

    if ((isset($_COOKIE['wsjconsent_consent'])) && ($_COOKIE['wsjconsent_consent'] == true)) {
    //We are allowed to present the feature that requires cookies
    // Your code for feature here
    } else {
    //We are not allowed to present the feature that requires cookies
    // Tell the user that they are getting a less-than-perfect experience?
    }
    SEE: http://jconsent.dev.wolf-software.com/
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

  4. #4
    Join Date
    Jan 2006
    Posts
    1,557
    Plugin Contributions
    0

    Default Re: New European Law restricting cookies

    My initial reaction was that it looked like a security warning and might scare people off. But presumably people in the EU will become used to these.

    But what about the US, where most of our orders originate? Don't need that scaring people off just yet. Anyway to have it set for EU visitors only? Just a wish.

    sph
    www.prommart.com

  5. #5
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,915
    Plugin Contributions
    3

    Default Re: New European Law restricting cookies

    This code has a GeoLocation element. It will display ONLY to visitors in the EU. The GeoLocation can be toggled to "true/false", and apparently does not work behind SSL (yet). Wolf is asking for contributions to help fund a SSL-ready version.

    But as core ZC is not SSL on the index page, it should not be a problem.
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

  6. #6
    Join Date
    May 2009
    Posts
    731
    Plugin Contributions
    0

    Default problems installing cookie consent

    Hi,

    here http://www.zen-cart.com/showthread.p...icting-cookies
    schoolboy posted the system by http://www.wolf-software.com, detailed over here http://jconsent.dev.wolf-software.com/

    I tried the two following

    # 1:

    I put the lib folder in the root, and added this
    Code:
    <link href="/lib/jconsent/jconsent-default.css" rel="stylesheet" type="text/css" />
    	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    	<script src="/lib/jconsent/jconsent-1.0.1.js"></script>
    
    	<script type="text/javascript">
    		$(document).ready( function () {
    			$.ws.jconsent({
    				displaySettingsSelector: '.displayCookieSettings'
    			});
    		});
    	</script>
    to templates/MY_TEMPLATE/common/html_header.php right at the end just before </head>

    # 2:
    I renamed the following files jconsent-1.0.3.js and jconsent-1.0.3.min.js into
    jscript_t_jconsent-1.0.3.js and jscript_t_jconsent-1.0.3.min.js
    and put them in templates/MY_TEMPLATE/jscript folder
    renamed the jconsent-default.css into style_jconsent-default.css and put it in the templates/MY_TEMPLATE/css folder

    In case #1 the slider I have in the header doesn't display, and in case #2 the slider does display, but in both cases the consent script won't display.

    What am I doing wrong?

    I have a slider in the header using jquery, and the files are in the templates/MY_TEMPLATE/jscript folder.
    Site is amberprecious dot com

    Thank you

  7. #7
    Join Date
    May 2009
    Posts
    731
    Plugin Contributions
    0

    Default Re: cookie consent jscript

    Shall I open a new thread?

  8. #8
    Join Date
    Jul 2007
    Posts
    45
    Plugin Contributions
    0

    Default Installed Jconsent but What About Reading the Cookies?

    Hello

    I've searched the forum to see if this has been answered and I can't find it anywhere.

    I've installed Jconsent, a plugin from jconsent.dev.wolf-software.com/ in the hopes it will provide a solution to the EU cookie law issue. I use Google Analytics, AddThis, a little icon to Twitter and YouTube videos onsite and am presuming all or most of these use non-essential cookies?

    The bit I'm confused about it how to read the cookie, the quotes below are taken from the webpage in the link provided.

    In order to be able to delivery consent that uses non essential cookies you need to be able to check if consent has been given!

    PHP
    if ((isset($_COOKIE['wsjconsent_consent'])) && ($_COOKIE['wsjconsent_consent'] == true)) {
    //We are allowed to present the feature that requires cookies
    // Your code for feature here
    } else {
    //We are not allowed to present the feature that requires cookies
    // Tell the user that they are getting a less-than-perfect experience?
    }
    I'm at a loss as to where to put this, would it go with the code where, for example
    the AddThis code is and is there an example of the code to put in available?

    I think this is a question that will crop up from time time in the future which is
    why I started a new thread.

    I don't mind paying a reasonable price for the solution, just let me know if that's how it will be
    before Europe starts having to cart wheelbarrows full of cash about just to buy a loaf of bread ;)

  9. #9
    Join Date
    Jan 2004
    Posts
    58,249
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Installed Jconsent but What About Reading the Cookies?

    "reading the cookies" is hardly the correct term.
    *You* don't actually "read" the cookies at all.

    Instead, you simply would not push to the user any code that sets or uses cookies to perform the functions you would normally ask it to do.

    So, your "AddThis" or GA code would go in the section you quoted as
    // Your code for feature here
    ie: all the echoing of <script> crap goes in that section. If what you're putting there isn't PHP code then you'll need to end and restart the PHP interpretation with appropriate ?> and <?php statements.

    And if you wish to add a message saying "less than optimal experience" in the other section, you can do that too.

    Thus it would become:
    PHP Code:
    <?php
    if ((isset($_COOKIE['wsjconsent_consent'])) && ($_COOKIE['wsjconsent_consent'] == true)) {
               
    //We are allowed to present the feature that requires cookies
                // Your code for feature here
    ?>
    <script junk for addThis crap and Google Analytics crap here>
    <?php
    } else {
               
    //We are not allowed to present the feature that requires cookies
               // Tell the user that they are getting a less-than-perfect experience?
    ?>
    <your custom html or javascript code to display said message here>
    <?php
    }
    ?>
    The site from which you got the code you quoted has some examples for doing those sorts of things.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    May 2009
    Posts
    731
    Plugin Contributions
    0

    Default problems installing cookie consent

    Hi,

    I had opened a thread which was merged in the following thread, sorry to repost, but it seems the post is not of interest in the thread.

    here http://www.zen-cart.com/showthread.p...icting-cookies
    schoolboy posted the system by http://www.wolf-software.com, detailed over here http://jconsent.dev.wolf-software.com/

    I tried the two following

    # 1:

    I put the lib folder in the root, and added this
    Code:
    <link href="/lib/jconsent/jconsent-default.css" rel="stylesheet" type="text/css" />
    	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    	<script src="/lib/jconsent/jconsent-1.0.1.js"></script>
    
    	<script type="text/javascript">
    		$(document).ready( function () {
    			$.ws.jconsent({
    				displaySettingsSelector: '.displayCookieSettings'
    			});
    		});
    	</script>
    to templates/MY_TEMPLATE/common/html_header.php right at the end just before </head>

    # 2:
    I renamed the following files jconsent-1.0.3.js and jconsent-1.0.3.min.js into
    jscript_t_jconsent-1.0.3.js and jscript_t_jconsent-1.0.3.min.js
    and put them in templates/MY_TEMPLATE/jscript folder
    renamed the jconsent-default.css into style_jconsent-default.css and put it in the templates/MY_TEMPLATE/css folder

    In case #1 the slider I have in the header doesn't display, and in case #2 the slider does display, but in both cases the consent script won't display.

    What am I doing wrong?

    I have a slider in the header using jquery, and the files are in the templates/MY_TEMPLATE/jscript folder.
    Site is amberprecious dot com

    Thank you

 

 
Page 1 of 9 123 ... LastLast

Similar Threads

  1. Premature end of script headers: php-script
    By doubletiger in forum General Questions
    Replies: 8
    Last Post: 2 Jul 2006, 09:53 PM

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
  •