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

Cookie Control [Support Thread]

Views: 54,574

Results 41 to 60 of 174
26 Feb 2013, 3:06 PM
#41
tsrplatelayer avatar

tsrplatelayer

Zen Follower

Join Date:
Oct 2010
Location:
Shropshire
Posts:
177
Plugin Contributions:
0

Cookie Control [Support Thread]

thanks for taking a look.
When you looked I had the 'as supplied' jscript file loaded, i.e. the <a> tag has no 'href' specified - the mouse over does not change to hand - and it works.
I have now changed the jscript file to my modified script.
Mouse over changes to hand and the <a> tag has an href specified - click and it goes to correct page - i.e. displays the same pae it was on, but cookie on status does not change.

I wonder - and I dont know how to check:

As supplied the<a> had no 'href' specified. The jscript carries out the shanges to the display - jscript so this is local to user.

When the <a> tag is specified clicking does as above and the jscript updates the display but then obeys the command to go to the specified 'href' - which reloads the current page. However as there are no changes to the 'served' page the cached version is re-displayed - hiding the fact that the jscript has done its job.

26 Feb 2013, 3:16 PM
#42
tsrplatelayer avatar

tsrplatelayer

Zen Follower

Join Date:
Oct 2010
Location:
Shropshire
Posts:
177
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Ah! - that is exactly what is happening
when I click to enable/disable cookies I can see the red/green bar start to change to the opposite setting, but then this change does not complete on the screen

26 Feb 2013, 3:38 PM
#43
tsrplatelayer avatar

tsrplatelayer

Zen Follower

Join Date:
Oct 2010
Location:
Shropshire
Posts:
177
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

I have an idea - just to sum the generated/served <a> looks like this:
CIVIC : ```php
<a id="cctoggle" href="#" style="background-position-x: 0;">

the mouseover works correctly, but when 'clicked' Zen displays the wrong page, because there are no 'parameters' in the href url.
Cookie enable/disable display and functionality works.
ZEN Plugin : ```php
<a id="cctoggle" style="background-position-x: 0;">

the mouseover doesn't work, ZEN displays correct page
Cookie enable/disable display and functionality works.
MyMod : ```php
]<a id="cctoggle" href="http://www.freight-stop-shop.co.uk/tickets/index.php?main_page=index&cPath=7" style="background-position-x: 0;">

the mouseover work, ZEN displays correct page
Cookie enable/disable display and functionality faulty.

I am going to try
```php
]<a id="cctoggle" href="#?main_page=index&cPath=7" style="background-position-x: 0;">

No - dran it - that doesnt work either - and thats how I have left thge site at this time

26 Feb 2013, 4:17 PM
#44
tsrplatelayer avatar

tsrplatelayer

Zen Follower

Join Date:
Oct 2010
Location:
Shropshire
Posts:
177
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

i think I've got it - I edited the jscript file to generate

<a id="cctoggle" href="javascript:expand()" style="background-position-x: 0;">

that seems to work - please take a look at
http://www.freight-stop-shop.co.uk/tickets/index.php?main_page=index&cPath=8
and see.

  1. Mouseover on the toggle works
  2. ZEN displays correct page when 'click' on Cookies are on/Cookies are Off toggle
  3. Cookie status red/Green bar displays correctly
26 Feb 2013, 4:31 PM
#45
tsrplatelayer avatar

tsrplatelayer

Zen Follower

Join Date:
Oct 2010
Location:
Shropshire
Posts:
177
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

I suspect that href has to be specified for mouseover to work, however cookie control does not actually require anything so I tried modifying the jscript to generate

<a id="cctoggle" href="javascript:donothing()" style="background-position-x: 0;">  

and added

function donothing() {return}

to the code.
That seems to work also.

4 Mar 2013, 12:15 PM
#46
stomm avatar

stomm

New Zenner

Join Date:
Mar 2009
Posts:
12
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

I had a strange issue with the analytics functionality with this mod, and I wondered if anyone could shed any light on it?

Basically I added the analytics account details to the mod, and I confirmed it was the right details. Yet on GA's side it kept saying 'Tracking not installed' - in desperation I tried adding the code by hand and removed the cookie mod and still the same issue. So I went back to using the cookie control mod, re-added the analytics account information and left it running overnight. Before I left the PC running I confirmed with GA that yes, 'Tracking not installed.'

I've come back to it this morning and all of my visits (right from the beginning) have been logged with GA. Yet still it's saying that the tracking isn't installed. Does anyone have any idea where I'm going wrong?

Thanks in advance,

22 Mar 2013, 2:51 PM
#47
victorzone avatar

victorzone

New Zenner

Join Date:
Mar 2013
Posts:
1
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Hi,

Can I ask how to change the icon image file. I have changed the green style to a pink one using the PSD template attached, but cannot find where to upload.

Thank you very much.

Victor

28 Mar 2013, 5:30 PM
#48
beco1979 avatar

beco1979

New Zenner

Join Date:
Mar 2009
Posts:
31
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Did a quick serch on the thread and didn't see any answers. Has anyone found that their Lightbox doesn't work if the cookie control is enabled?

29 Mar 2013, 7:03 AM
#49
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

beco1979:

Did a quick serch on the thread and didn't see any answers. Has anyone found that their Lightbox doesn't work if the cookie control is enabled?

You probably have multiple instances of jquery running at the same time. If that is the case remove one of them and Lightbox should work again

19 Apr 2013, 9:57 AM
#50
kevin_a avatar

kevin_a

Zen Follower

Join Date:
Mar 2007
Location:
Worcester UK
Posts:
135
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

I have installed all the Cookie Control files, and the admin configuration menu control appears.
However, when I edit the tpl_main_page.php file to include the following as prescribed:

<!--BOF cookie control script--> <?php if (COOKIE_CONTROL_STATUS == 'true'){?> <?php require($template->get_template_dir('tpl_cookie_control.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_cookie_control.php');?> <?php } ?> <!--EOF cookie control script-->

The easy slider display is broken on the index page.

http://www.romseybaitandtackle.co.uk/index.php?main_page=

I can only find one copy of jscript_jquery-1.5.min.js running on the site.

Any pointers would be very welcome thanks

Kevin

9 Jun 2013, 8:06 PM
#51
bf4ed avatar

bf4ed

New Zenner

Join Date:
Dec 2011
Posts:
7
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Hi, i have uploaded all cc files, and the admin configuration menu control DOS NOT appears.
I folowed the instructions but the 8. step does not work.

8. Once the files are uploaded, click ANY link in your store's admin, and the auto-installer will be triggered. If you have followed the install instructions, you will see the installation confirmation message.

Zencart version is 1.3.9h
I dont use english language.
The site is https://www.amalda.si

9 Jun 2013, 8:29 PM
#52
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

did you copy the language files from the english folder to your specific language?

10 Jun 2013, 2:03 PM
#53
bf4ed avatar

bf4ed

New Zenner

Join Date:
Dec 2011
Posts:
7
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Yes, copied all english files to my language folder.

Can i trigger the auto-installer manually?

14 Jun 2013, 8:39 PM
#54
brave1314 avatar

brave1314

New Zenner

Join Date:
Nov 2011
Posts:
9
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

kevin_a:

I have installed all the Cookie Control files, and the admin configuration menu control appears.
However, when I edit the tpl_main_page.php file to include the following as prescribed:

<!--BOF cookie control script--> <?php if (COOKIE_CONTROL_STATUS == 'true'){?> <?php require($template->get_template_dir('tpl_cookie_control.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_cookie_control.php');?> <?php } ?> <!--EOF cookie control script-->

The easy slider display is broken on the index page.

http://www.romseybaitandtackle.co.uk/index.php?main_page=

I can only find one copy of jscript_jquery-1.5.min.js running on the site.

Any pointers would be very welcome thanks

Kevin

Hi Kevin,

I have looked at your site and think your issue is the same as mine I can't get both slider and cookie control to work at the same time!

http://www.lightevolution.co.uk

About to give up!

David

14 Jun 2013, 9:39 PM
#55
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

brave1314:

Hi Kevin,

I have looked at your site and think your issue is the same as mine I can't get both slider and cookie control to work at the same time!

http://www.lightevolution.co.uk

About to give up!

David

Try removing jscript_jquery-1.5.min.js , because cookie cintrol is already loading jquery,

And you have a bigger problem , because you have two <html> declarations on your page

<html itemscope="itemscope" itemtype="http://schema.org/WebPage">
 <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
15 Jun 2013, 11:11 AM
#56
brave1314 avatar

brave1314

New Zenner

Join Date:
Nov 2011
Posts:
9
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

You are quite right about the HTML never noticed that thanks! :blush:

Removing the jscript_jquery-1.5.min.js makes no difference apart from breaking the slider.

Removing http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js from cookieControl-5.1.min.php and adding jscript_jquery-1.5.min.js back into the jscript folder allows the slider to work but no cookie control. :no:

15 Jun 2013, 12:15 PM
#57
brave1314 avatar

brave1314

New Zenner

Join Date:
Nov 2011
Posts:
9
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

There is a fault in the code in this file tpl_cookie_control.php in version 1.4

Line 29
countries:'<?php echo COOKIE_CONTROL_COUNTRIES;?>' // Or supply a list ['United Kingdom', 'Greece']

Add [ ] and remove the ' '

Should be

countries:[<?php echo COOKIE_CONTROL_COUNTRIES;?>] // Or supply a list ['United Kingdom', 'Greece']

When adding countries in the admin screen ensure you add them with quotes 'United Kingdom', 'Greece'.

15 Jun 2013, 12:26 PM
#58
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

Thank for the update.
I am not sure if I will release a new updated version soon.

15 Jun 2013, 12:44 PM
#59
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Cookie Control [Support Thread]

brave1314:

You are quite right about the HTML never noticed that thanks! :blush:

Removing the jscript_jquery-1.5.min.js makes no difference apart from breaking the slider.

Removing http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js from cookieControl-5.1.min.php and adding jscript_jquery-1.5.min.js back into the jscript folder allows the slider to work but no cookie control. :no:

Dump Easy Slider and instal ZX slideshow = Problem solved.

18 Jun 2013, 5:43 PM
#60
aljosa avatar

aljosa

New Zenner

Join Date:
Nov 2007
Posts:
30
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Hi, my name is Aljosa and because I cant find information how to install or put http://www.zen-cart.com/downloads.php?do=file&id=1476 cookie control on my web shop. I hope that someon will help me and give me info how to put cookie control on my web shop.

Oh yes, sorry on my english I am from Slovenia ;-)

All the best Aljosa