Forums / All Other Contributions/Addons / Cookie Control [Support Thread]

Cookie Control [Support Thread]

Results 1 to 20 of 174
27 Aug 2012, 11:50
#1
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Posts:
2,862
Plugin Contributions:
5

Cookie Control [Support Thread]

I made an easy to install Module based on the scripts Civic provided.
These script are edited to be multilingual and the settings can be changed through the admin panel

The module can be downloaded at https://www.zen-cart.com/downloads.php?do=file&id=1476


Because recent legislation requires websites to obtain explicit consent before leaving behind or reading files (mostly cookies) on your user's computers, you need to make the use of cookies on your website very obvious to users. Cookie Control does just that, presenting users with clear information on whether cookies are present, linking to your privacy policy (where you should have specific information about what cookies are in use), and advising users on how to adjust browser settings and what cookies mean for them.
above text by Civic
02 Sep 2012, 16:20
#2
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Posts:
562
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Nice work :thumbsup: now if I can just a small edit to your english file for us english speakers.
// Cookie control
define ('COOKIE_CONTROL_INTROTEXT', 'We use cookies to recognize you on your next visit. Furthermore, we use Google Analytics.');
define ('COOKIE_CONTROL_FULLTEXT', 'Cookies enable us to collect information about the use of our services and to improve and adapt to the needs of our visitors. Our cookies provide information related to personal identification. They are also used to process your order correctly.By using our site you agree to our.');
define ('COOKIE_CONTROL_READ_MORE', 'read More');
define ('COOKIE_CONTROL_READ_LESS', 'read Less');
define ('COOKIE_CONTROL_COOKIES_ON', 'Cookies are on');
define ('COOKIE_CONTROL_COOKIES_OFF', 'Cookies are off');
define ('COOKIE_CONTROL_ONE_COOKIE', 'One cookie will be set to store your preference');
define ('COOKIE_CONTROL_CHECK', 'Do not ask me again');
define ('COOKIE_CONTROL_CHECK_EXPLAIN', 'Ticking this sets a cookie to hide this popup if you then hit close. This will not store any personal information');
Hope you don't mind me doing this but it might help some people
08 Sep 2012, 17:14
#3
kirstin_thompson avatar

kirstin_thompson

New Zenner

Join Date:
May 2012
Posts:
6
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Hi, I am fairly new to all this but was wondering if I'd done something wrong during installation...

No matter how many times I visit a page on my site, it always pops up with the cookie control box. I always leave it with the cookies on setting showing in green, have tried clicking to close the box and other times have left it to disappear on it's own. Nothing seems to make any difference?
I have a horrible feeling it's something glaringly obvious but I just can't get my head around it.

Ps. Its the new version 1.1 I have installed on zen cart 1.5, have various add-ons (FEC, SNAF,reward points) but non of these files were changed during installation.

Any help is appreciated !

Thanks,

Kirstin
09 Sep 2012, 14:43
#4
kirstin_thompson avatar

kirstin_thompson

New Zenner

Join Date:
May 2012
Posts:
6
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

It seems to happen on all browsers have tried ie 8, the current google chrome and the current firefox, even the android browser on my htc phone does it. Occasionally it navigates me to a page saying that cookies aren't allowed on my browser even though I have it set to allow all cookies.
09 Sep 2012, 22:55
#6
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

It could the ip adress in your temporary domain that is causing the problem. Please set the subdomain setting to false and see what happens. I found this solution on the support forum from civic
10 Sep 2012, 18:22
#7
kirstin_thompson avatar

kirstin_thompson

New Zenner

Join Date:
May 2012
Posts:
6
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Thank you! that did the trick nicely :) and can I add, thank you for all your quick responses too!

Kirstin
10 Sep 2012, 18:40
#8
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

:clap: Glad to help, and to see people like the module. Once you have your final domain without the ip adres you can try the subdomain again, it should work.

This afternooon I also posted the 1.2 version of the module including some minor fixes.
Cookie Control v1.2 Change-log
  • Now this REALLY works under SSL as well (the non ssl statement has been removed from jscript_cookieControl-5.1.min.php)
  • Removed extra <p></p> from tpl_cookie_control.php
  • Removed href=# from jscript_cookieControl-5.1.min.php , to stop the script from returning to the homepage when the permission link is clicked
  • Removed Optional file folder with jscript_jquery-1.7.2.min.js. the script loads jQuery by default from Google if not already present on your server.
  • Repaired the auto installer
  • Updated Readme
12 Sep 2012, 10:24
#9
honda_crunch avatar

honda_crunch

New Zenner

Join Date:
Jul 2011
Posts:
22
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

eentje:

New version (1.1) submitted with SSL support, English defines added, less core files to be altered, general off/on switch in admin and extended read me.


Firstly, great mod. I had been using the copy and paste version direct from CookieControl website as until today I hadn't found one that was ready-to-go on the zen cart site.

I'm using the the latest v1.2 version which claims to be able to handle SSL. I appeared to have problems with our sites SSL. I have our mod set to explicit giving the user the choice to avoid cookies until they allow them. In this mode, SSL works ok in both IE9 and firefox. Once the user has allowed cookies, there becomes SSL issues in both browsers; not good news for the customer who's about to log-in.

Then I thought, I had this problem before! The google analytics script found in includes/templates/YOUR_TEMPLATE/templates/tpl_cookie_control.php contains the a URL that did not start with https:. So I changed it from http: as below:

function ccAddAnalytics() {
jQuery.getScript("https://www.google-analytics.com/ga.js", function() {
var GATracker = _gat._createTracker('<?php echo COOKIE_CONTROL_GOOGLE_ANALYTICS ; ?>');
GATracker._trackPageview();
});
}

It worked with my old installation so didn't see why it couldn't work with this mod. And it did, cookies are now being stored on my browser. I'm not a php programmer but love to tinker so I'm unsure if this the correct way to sort out this issue, it just happened to work for me.
12 Sep 2012, 11:01
#10
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

The whole Google function is actually meant a bit as an example, since a lot of people already have analytics added to their site and need to change that. For my own site i rewrote the code so it works together with the simple Google analytics module.
But I am glad you found your solution that works for you.
19 Sep 2012, 15:45
#11
webbies avatar

webbies

New Zenner

Join Date:
Feb 2010
Posts:
15
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Hi, I installed this module (1.2) on 2 different zencart shop (both 1.39h) but I have the same problem by both shops.

shop 1: does NOT have Google analytics so in the backend , the set protected cookies is empty
shop 2: does have Google analytics so in thet backend, the set protected cookies has:analytics


shop 1: frontend I get the cookiecontrol popup, and the product lists has images, but the product info page has no image
shop 2: frontend I get no cookiecontrol and the product info page has a image

when I get to the backend of shop 2 and empty: analytics in the field protected cookies then the result on the frontend is no main image but the cookie control is working

I tried a several hours but no result What went wrong?
21 Sep 2012, 10:25
#12
eentje avatar

eentje

Zen Follower

Join Date:
Jan 2009
Posts:
144
Plugin Contributions:
4

Re: Cookie Control [Support Thread]

Webbies:

Hi, I installed this module (1.2) on 2 different zencart shop (both 1.39h) but I have the same problem by both shops.

shop 1: does NOT have Google analytics so in the backend , the set protected cookies is empty
shop 2: does have Google analytics so in thet backend, the set protected cookies has:analytics


shop 1: frontend I get the cookiecontrol popup, and the product lists has images, but the product info page has no image
shop 2: frontend I get no cookiecontrol and the product info page has a image

when I get to the backend of shop 2 and empty: analytics in the field protected cookies then the result on the frontend is no main image but the cookie control is working

I tried a several hours but no result What went wrong?


Nothing went wrong.
You probably use zen lightbox with mootools in stead of the zen lightbox with jquery.
24 Sep 2012, 15:44
#13
webbies avatar

webbies

New Zenner

Join Date:
Feb 2010
Posts:
15
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

eentje:

Nothing went wrong.
You probably use zen lightbox with mootools in stead of the zen lightbox with jquery.


Yes that's exactly the problem!!! The sites used fual litebox and I changed this in Zen lightbox and it's working fine now. Many thanks.
16 Oct 2012, 22:42
#14
sathu avatar

sathu

New Zenner

Join Date:
Oct 2012
Posts:
5
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Thanks Design75 for creating the plugin. I have installed v 1.2 on my zencart v1.5. All working fine EXCEPT that the slider features on index page of the template is now not working. I saw this issue in the other support thread but no solution yet. Does this plug in works with/support easy sliders feature that is used in estornow template? Any guides or hint or pointer of what might hv gone wrong.
Many thanks
16 Oct 2012, 23:17
#15
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

Okay,
I thought to solve this just before going to sleep, and not wait till tomorrow.
I made a test shop with Zen Cart 1.5.0, estornow template, and cookie control 1.2

The slider and cc fail to work. the problem is the jquery already being loaded.
Solution:
edit includes/templates/YOUR_TEMPLATE/jscript/jscript_cookieControl-5.1.min.php
find and remove the following
http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js


it is not the best solution, but it works
17 Oct 2012, 08:51
#16
sathu avatar

sathu

New Zenner

Join Date:
Oct 2012
Posts:
5
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

You are a star. Thank you so much - it works a trick.

Should I watch out for anything as an implication of removing the specified code? I can then test that area more thoroughly. I don't know much of programming but base on what I found it is a library (that is as much as I know!) and if it is already loaded then in theory (my theory :blink:) then it should be ok. Then again, I know nothing of coding so...pls advise if there is any point I should be checking/watch out/keep an eye on :-) Thanks.
17 Oct 2012, 09:30
#17
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

Indeed it prevents cookie control from trying to load the jquery file again, by removing the address where to find it. Simple Crude and Effective
30 Oct 2012, 17:37
#18
dustmagic avatar

dustmagic

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

I can't seem to get this to work. No pop-up is displayed although I can see the code near the closing body tag and up in the head. I have the head code listed twice in the source for some reason directly one below the other which will probably have something to do with the problem but I'm unsure as to why it's been inserted twice.

All files have been uploaded twice as a precaution, all configured via the site admin.

BTW does the script in the head need to be so large?
30 Oct 2012, 17:43
#19
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

without a link to your site it is hard to guess what went wrong.

the script is as it was shipped by Civic. You could split it up into three file (script, css and html(php)), but that is up to your own creativity
30 Oct 2012, 19:46
#20
dustmagic avatar

dustmagic

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

>without a link to your site it is hard to guess what went wrong.

www.natural-alternative-products.co.uk

>the script is as it was shipped by Civic. You could split it up into three file (script, css and html(php)), but that is up to your own creativity

I'd rather try and get this working than start coding. :)