Jump to content
vekia

[FREE MODULE] European Union Cookie Law Block responsive 1.7 1.6 1.5 1.4

Recommended Posts

module has got only one "save" button and this button saves each box with contents

Yes, I see, but trying to save it for the second one does not effect.

 

If I change the first one and then click save it shows the same text in the second one. Trying to edit the second one does nothing.

Edited by tcovoc (see edit history)

Share this post


Link to post
Share on other sites

finally with help of tcovoc member i found a problem.

problem is not with module itself.

problem is with prestashop 1.6.0.14 where save process doesnt work well in some environments.

 

from what i see prestashop 1.6.1 contains fix for this problem.

take a look: https://github.com/PrestaShop/PrestaShop/blob/1.6/classes/Configuration.php line 370~

it contains code:
 

if ($html)
		{
			foreach ($values as &$value)
				$value = Tools::purifyHTML($value);
			unset($value);
		}

and prestashop 1.6.0.14 contains bad code:
 

		if ($html)
			foreach ($values as &$value)
				$value = Tools::purifyHTML($value);


This causing your problems! and it causes also problems with other, even native PS modules that uses ps_configuration database to save LANGUAGE variable values

  • Like 1

Share this post


Link to post
Share on other sites

from what i see prestashop 1.6.1 contains fix for this problem.

take a look: https://github.com/PrestaShop/PrestaShop/blob/1.6/classes/Configuration.php line 370~

it contains code:

 

if ($html)
		{
			foreach ($values as &$value)
				$value = Tools::purifyHTML($value);
			unset($value);
		}

I'm not sure this code is right too.

 

Shouldn't it be like this?

if ($html)
        {
            foreach ($values as &$value)
            {
                unset($value);
                $value = Tools::purifyHTML($value);
             }
        }

?

Share this post


Link to post
Share on other sites

no, you have to unset() $value after other code that uses this variable

  • Like 1

Share this post


Link to post
Share on other sites
if ($html)
		{
			foreach ($values as &$value)
				$value = Tools::purifyHTML($value);
			unset($value);
		}

and prestashop 1.6.0.14 contains bad code:

 

		if ($html)
			foreach ($values as &$value)
				$value = Tools::purifyHTML($value);

 

 

Fantastic Vekia! This solved my problem flawless :)

Share this post


Link to post
Share on other sites

Fantastic Vekia! This solved my problem flawless :)

 

sadly speaking - its a global prestashop 1.6.0.14 issue

it affects each module that use ps_configuration table to store language translations

this means that a lof of native addons are affected!

 

in 1.6.1 problem is fixed!

Share this post


Link to post
Share on other sites

Hi. 

 

Were you trying to transplant this module on your own?
Maybe it's not compatible with your PrestaShop version.

Share this post


Link to post
Share on other sites

 

Hi. 

 

Were you trying to transplant this module on your own?
Maybe it's not compatible with your PrestaShop version.

 

Hi

my Prestashop version it's 1.6.0.14

Thanks

Share this post


Link to post
Share on other sites

Does your theme have similar hooks? Was it your first installation? As I've mention you may try to transplant module on your own and check the result.

http://doc.prestashop.com/display/PS16/Front+office+Positions#FrontofficePositions-Attachingamoduletoahook:Transplanting

 

Does your theme have similar hooks? Was it your first installation? As I've mention you may try to transplant module on your own and check the result.

http://doc.prestashop.com/display/PS16/Front+office+Positions#FrontofficePositions-Attachingamoduletoahook:Transplanting

Hi

it's not my first installation.

The module is correctly hooked to DisplayFooter. But it doesn't show.

Share this post


Link to post
Share on other sites

your shop is under maintenance mode

i don't see theme that you use.

Share this post


Link to post
Share on other sites

So strange, I use ps 1.6 with a default theme that I customized, I installed your module, it seems to be functioning but when I click save after pasted the text into italian section it disappear as I didn't write anything.. and if I try to see on a private windows with Chrome the whole page is white... :(

Share this post


Link to post
Share on other sites

So strange, I use ps 1.6 with a default theme that I customized, I installed your module, it seems to be functioning but when I click save after pasted the text into italian section it disappear as I didn't write anything.. and if I try to see on a private windows with Chrome the whole page is white... :(

several posts above i explained whats up in prestashop 1.6

it's a prestashop bug.

Share this post


Link to post
Share on other sites

you're welcome :-)
i've got hope that prestashop will release 1.6.1 asap, because there we can find many important fixes, also fix for this problem with language

Share this post


Link to post
Share on other sites

Fantastic Free module! Congratulations.

 

I would like to ask you if posible to add an  " X "  meaning a close button... or an  "Close" action

If you leave me instructions I can add it myself.

 

Thank you

Edited by dirdi (see edit history)

Share this post


Link to post
Share on other sites

hello

what about replacing default "close" with "x" ?

you want to add some image or just simple X as text?

Share this post


Link to post
Share on other sites

hi,  I think just a simple X letter text would be ok.

Thank you

Share this post


Link to post
Share on other sites

so if it will be enought just translate it under localization > translations

from first dropdown select "installed modules translations"

from second language you want to modify

and then click on "modify" button

 

search there for "uecookie" module and click on it to roll-out fields to translate / alter

then search there for "Close" and just change it to "X"

Share this post


Link to post
Share on other sites

OK, I am using the module in Spanish and is translated as Accept so I was thinking the original word is also Accept , not Closing.

I could translate it to Close or X , but I would prefer if possible to have bought Accept and a X...if is not too much trouble.

Thank you a lot

Share this post


Link to post
Share on other sites

hello

so i have one question

with [x] button you want to close popup in the same way as with [close] ?

i mean, if someone will hit [close] - notification will not appear anymore - the same with [x] if someone will hit it - notification will not appear anymore too

Share this post


Link to post
Share on other sites

hi, well it would be good to be only a temporary closing action as now some European countries demand to Accept the cookies other dont and this is a several EU countries store...

 

so, if possible the X action would be just a simple frame closing option and in the next visit will be prompt again to accept the Cookies.

 

I really appreciate your help!

Share this post


Link to post
Share on other sites

okay

so in this case it is necessary to add this tiny code:
 

        <span id="cookiesClose" class="closebutton"  onclick="
            {if $vareu->uecookie_position==2}
            {literal}
            $('#cookieNotice').animate(
            {bottom: '-200px'}, 
            2500, function(){
                $('#cookieNotice').hide();
            }); 
            ">
            {/literal}{l s='X' mod='uecookie'}
            {else}
            {literal}
            $('#cookieNotice').animate(
            {top: '-200px'}, 
            2500, function(){
                $('#cookieNotice').hide();
            }); 
            ">
            {/literal}{l s='X' mod='uecookie'}
            {/if}
        </span>

to top.tpl file located in module directory

 

this code will add [x] button and it will close popup only without "accepting" it

Share this post


Link to post
Share on other sites

salut, 

 

merci pour ce module.

 

j'ai juste un soucis.

 

Tu pourrais me dire comment changer la couleur du boutton?

 

merci

Share this post


Link to post
Share on other sites

Hi,

 

I'm facing a problem : when module is installed and enabled, the mouseover function og my menu doesn't work anymore (the menu items are there, but when having mouse on the tabs, no content showing). It does only on the index page when your module is installed and activated. When deleted, everything works fine. It may habe a conflict with the top.

 

Can you please check what could be done to fix it ?

 

I'm using SOO Menu on modeflash24.com (shop not enabled so you won't see anything)

 

Thanks !

Share this post


Link to post
Share on other sites

Works Perfecly!!! Thank you a lot and congratulation again for this great module.

Good luck

Share this post


Link to post
Share on other sites

Hi Vekia!

 

I've installed your module in a Prestashop 1.6.0.14 but it doesn't work. I've installed the module, I've configured it with the text in spanish, the background color, I've changed it to top and bottom, etc, but it doesn't show anything. That module appears on DisplayTop hook and DisplayFooter hook.

 

Any idea what's happening? Thanks in advance!

Share this post


Link to post
Share on other sites

Hi Vekia!

 

I've installed your module in a Prestashop 1.6.0.14 but it doesn't work. I've installed the module, I've configured it with the text in spanish, the background color, I've changed it to top and bottom, etc, but it doesn't show anything. That module appears on DisplayTop hook and DisplayFooter hook.

 

Any idea what's happening? Thanks in advance!

 

 

can you share url to your shop?

Share this post


Link to post
Share on other sites

Hi! Yes, here you are: http://www.mardisur.com/

 

your theme probably doesnt support "displayFooteR"

i saw this theme before 

please verify if it uses {$HOOK_FOOTER} variable (default hook in prestashop! a lot of modules uses it)

you can find it in footer.tpl file

Share this post


Link to post
Share on other sites

your theme probably doesnt support "displayFooteR"

i saw this theme before 

please verify if it uses {$HOOK_FOOTER} variable (default hook in prestashop! a lot of modules uses it)

you can find it in footer.tpl file

 

 
Hi! I opened the file footer.tpl and I searched for the variable {$HOOK_FOOTER}, and I didn't find it. So, this mean that I can't use your module in my theme, isn't it? 

Share this post


Link to post
Share on other sites

put this code at the very end of the file:

{$HOOK_FOOTER}

then go to modules > positions

 

search for dispalyFooter list of modules and unhook all modules instead of "ue cookie" from this list.

then everything will work well.

Share this post


Link to post
Share on other sites

Hi to all.

Thanks vekia for your work.

It s working on PS 1.6.0.14.

However, there is small bugs i found...maybe can help you to improve the module.

1) My shop is using 2 languages FR an EN. i write the FR text, then i write the EN text, i save . The english text is not stored  but i have french text in both FR and EN fields.I change the EN text in database directly and it works.

2) Everytime i push the button "save" , it put one more "\" in the text for escape the quote.

3) ON iphone 1st generation (model A1203), i can not click the "accept " bouton on front office.

Hope this help.

Best regards

Share this post


Link to post
Share on other sites

 

1) My shop is using 2 languages FR an EN. i write the FR text, then i write the EN text, i save . The english text is not stored  but i have french text in both FR and EN fields.I change the EN text in database directly and it works.

 

it's a prestashop 1.6.0.14 bug:

https://www.prestashop.com/forums/topic/200124-free-module-european-union-cookie-law-block-responsive/?p=2076917

Share this post


Link to post
Share on other sites

 

2) Everytime i push the button "save" , it put one more "\" in the text for escape the quote.

 

you've got the same problem with for example product description?

your host uses "magic quotes"? 

Share this post


Link to post
Share on other sites

Hi vekia.

For 1) i can guess that ! Because i meet  a "languages" problem concerning CSV import ....

For 2) I do not have any problem with product description or CMS pages with "\"...

this happens only on your module untill now...

but i will make some test and i will let you know if i am facing the same problem...

And for 3) ?

did you make try with some old user agent ?

Best regards.

SpaceMoO

Edited by spacemoo (see edit history)

Share this post


Link to post
Share on other sites

2) what about magic quotes? :-)
3) i don't have any old device like iphone1 :(

Share this post


Link to post
Share on other sites

Hi vekia.

2) yes you are right magic quotes is activated.

3) yes difficult to test without device..

BR

SpaceMoO

Share this post


Link to post
Share on other sites

hi all
First of all thank you for this module.
I want to add a link to the site's terms of use in the warning message.

It works when you're on the home page but if you click before on a CMS page for example, the link is bad and I have a 404 page.
The URL becomes: content/content/mypage.php
I tried to put the absolute link but the editor deletes it
My question: how to specify this in absolute link?

Thank you for your help

Share this post


Link to post
Share on other sites

instead of realtive path use full url with domain url

customer will be redirected to correct page then

Share this post


Link to post
Share on other sites

Hello Vekia, the module works with prestashop 1.6.1.0?

Thank you

 

hello

yes, module works with prestashop 1.6.1

in addition - it's trusted by addons marketplace so you can use it also in PrestaShop Cloud :-)

Share this post


Link to post
Share on other sites

Hey !! because I capture and description of European policy Google cookies and shows my meta-tag description??

Share this post


Link to post
Share on other sites

hello

im affraid that i don't understand well what you're trying to achieve

can you shed some more light on the problem, please?

Share this post


Link to post
Share on other sites

Hello Vekia,

thank you for your reply, but the module not working. how should I do?

Share this post


Link to post
Share on other sites

hello

im affraid that i don't understand well what you're trying to achieve

can you shed some more light on the problem, please?

English

When looking on Google google lighting and displays the contents of the keyword, the meta-description in time to catch the keeper of Prestashop, take meta-description as the European module Cookies do not understand the reason for catching and shows Google in my meta-description cookies

 

Spanish

Cuando buscan en google iluminacion y muestra Google el contenido de la palabra clave, la meta-description en vez de coger el meta del Prestashop, coge como meta-description el modulo Cookies European, no entiendo el motivo del por que coge y muestra Google en mi meta-description las COOKIES

Share this post


Link to post
Share on other sites

Latest Module version installed on PS 1.5.4. Cannot find anywhere the translation of "close". Not on default theme, not on customer theme. Not on front-office and also not on modules translations. Any hint ?

Share this post


Link to post
Share on other sites

Hello,

 

Thank you for this module.

I would like to know in which file exactly is it possible to change the size/height of the banner?

Thank you in advance for your answer

 

Share this post


Link to post
Share on other sites

useless module by now....

allways shows cookie message after a click on something.

Throws errors with seo and so on..

i recomend not install unless you want your store damaged...

Share this post


Link to post
Share on other sites

hello,

 

i have installed your module, i save in italian and english but it just consider italian text and save the same text also in english box. So i can't save the correct english version

Share this post


Link to post
Share on other sites

hello

instead of relative path in url try to use "full" url with http and domain name

Share this post


Link to post
Share on other sites

Yes, the one on first topic. I presume it is the latest one ? Version is 1.5.1.0.

Seems that there is no solution. I editted on core of the module now into German (as shop is only German)

Edited by selectshop.at (see edit history)

Share this post


Link to post
Share on other sites

Hi "vekia"

 

First of all thank you very much for providing this free module... although I'm reporting here a performance issue on the module, which has an easy fix :D

 

I'm running my Prestashop through "New Relic" and it is reporting that at page load of index.php is accessing dev.mypresta.eu which takes 588ms to complete! That is 22% of the total load time of index.php!!!!

 

I searched in the code and I found that in the constructor of class uecookie you call the method checkforupdates which in turns calls uecookieUpdate::verify which does:

 

$actual_version = @file_get_contents('http://dev.mypresta.eu/update/get.php?module=' .
$module . "&version=" . self::encrypt($version) . "&lic=$key&u=" . self::
encrypt(_PS_BASE_URL_ . __PS_BASE_URI__));
Checking for updates is OK for the backend when opening the configuration of the module, but NOT on front end index page load!!!
 
I suggest that you move the call to checkforupdates to the displayform method or any other that is called only on the backend. For now I have commented out the call in the constructor and I recommend anyone using the module to do the same (comment out "$this->checkforupdates();") if it is like my case you will save half a second on every home page load.
 
Cheers
Edited by jorge911 (see edit history)

Share this post


Link to post
Share on other sites

Hi Vekia,

i installed your module on my shop running PS 1.6.0.14, i checked hooks and it seems to be ok, anyway it isn't showing up on the frontend. 

I've used your module many times and it has always worked..

Thank you

 

I SOLVED IT, there was no {$HOOK_FOOTER} tag on footer.tpl.

Edited by lucaricci (see edit history)

Share this post


Link to post
Share on other sites

Hello Vekia, Thanks for your module and support.

I need a technical information.

in The cookie law (bleah) is written that no cookie has to be written in the user's browser until the user click on "OK" in the banner of the cookie law.

When Prestashop write his first cookie in the user browser?

Your module block Prestashop's cookie until the user click on OK?

 

Thanks

 

Erik

Share this post


Link to post
Share on other sites

Buon Giorno 

Ho un problema con questo modulo dei cookie :

Si installa benissimo ma appena scrivo nella parte inglese e lo salvo copia anche nella parte inglese la parte in italiano 

qualcuno sa aiutarmi grazie

Edited by salvo3409 (see edit history)

Share this post


Link to post
Share on other sites

lo he instalado en 1.6.1.1, lo configuro le doy a salvar y accedo al home pero no aparece la barra por ningún lado, he vaciado el cache pero sigue sin salir alguna idea?

Share this post


Link to post
Share on other sites

Hi, thank you so much for this module. It is very useful.

 

Can you please help me how can I change height of the block? Unfortunatelly it does not look nice in my template.

I read all pages in this forum and you suggest to edit global.css. Can you please explain me how exactly can I change height of this module?

 

Thank you very much

Share this post


Link to post
Share on other sites

Buon Giorno 

Ho un problema con questo modulo dei cookie :

Si installa benissimo ma appena scrivo nella parte inglese e lo salvo copia anche nella parte inglese la parte in italiano 

qualcuno sa aiutarmi grazie

 

Hello there,

 

I think this module is very useful and easy to use but I have the same problem as salvo3409.

I'm using it in a bilingual web site (eng / ita) and all the text I write in the english text editor appears in the italian one after saving the module.

I guess there's something wrong about it.

 

Anybody can help?

 

Thanks.

Share this post


Link to post
Share on other sites

Thx for this module,

installed it on our latest version 1.6.1.1.

only one thing seems not to work.

we can set the background color and it changes.

but the shadow (where the text is in it) seems not to work, whatever color you pick, it stays white).

 

any idea how to solve that?

 

Thx.

Share this post


Link to post
Share on other sites

Works perfectly on 1.6.1.1 !

 

Just want to tell you THANKS Vekia, continue, you are my Hero around there !

 

Share this post


Link to post
Share on other sites

new version is ready.

added feature to module to decide where you want to include the library of ue cookie module.

i added it because many non-default themes dont use default displayFooter hook to build footer section.

now you can use other section to include ue cookie library so it will work also with themes that doesnt use displayFooter hook.

  • Like 1

Share this post


Link to post
Share on other sites

I have a problem where the banner is stuck inside the footer section. I can move it up or down within the black area, but I am unable to make it stick to the top or bottom of the viewport. How can I resolve this?

 

I have tried playing with all the settings, with the CSS, as well as changing the position of the module into different blocks (eg. DisplayHeader). With the later not displaying the banner at all. This happens on 2 different purchased PrestaShop themes. I have not tried on the stock theme as we are not using it, though one of the themes is just a modified default theme as far as I can tell.

post-1105357-0-13491200-1447149975_thumb.jpg

Edited by bbbenji (see edit history)

Share this post


Link to post
Share on other sites

Hello Vekia,

I'm using last version of your module, but also if i accept it, when load a new page the cookie bar will reopens.

Have a look to the website in signature and try reloading the home.

Share this post


Link to post
Share on other sites

Hello Vekia

 

Thank you for the great module but i'm experiencing the same problem as DARKF3D3 where by the cookie statement reappears on every page that is visited. The website i'm working on is www.rocksweets.co.uk

Share this post


Link to post
Share on other sites

HI Vekia, i have installed your module on prestashop 1.6.0.11

Installation its ok. i have only a language (IT) but module don't work. i try many configuratione (footer, header, up down but in FO i don't se nothing.

Share this post


Link to post
Share on other sites

HI Vekia, i have installed your module on prestashop 1.6.0.11

Installation its ok. i have only a language (IT) but module don't work. i try many configuratione (footer, header, up down but in FO i don't se nothing.

Hello Vekia, I've tested your module on a 1.6.1.1 version and I don't see the cookie pop up.

I've tried to clear cache but I see nothing

 

Thank you for the support.

Share this post


Link to post
Share on other sites

I am creating a link in the banner to a cms page, but, after saving and testing the store, the link is incorrect. Any idea why?

I have the same problem.

I paste the link in this format "http://www.mystore.com/shop/index.php?id_cms=7&controller=cms&id_lang=7" but when i try to open clicking on the banner the link is "http://www.fuertelibros.com/index.php?id_cms=7&controller=cms&id_lang=7".

The folder "/shop" is not in the link.

Please help me!

Share this post


Link to post
Share on other sites

Hello Vekia,

 

I add your module in my webside preprod and the cookie bar is not visible ... 
I not understand, i install this module with your video tuto.

 

Help me please.

 

Thanks

 

Mélissa

Edited by MélissaA (see edit history)

Share this post


Link to post
Share on other sites

I have this installed on 1.6.1.1  and have used this module on many other versions.  It used to work so that all you had to do was navigate to another page to remove the message, not manually click 'OK' which is what seems to be happening now.  Why is this?  How can I make this less of an annoyamnce to my customers by making the message disappear automatically when the user moves on to another page?

Share this post


Link to post
Share on other sites