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.



Reply With Quote
