Cookies script Silktide

Hi,



Can anyone tell me where to place the code to show the cookie consent?

The following code is below.


```php






```

It should be in an index file but can't find the right one. I'm strugling for hours but maybe someone can help me.

I'm using cs cart V 3.04

Here is an addon which will help with EU Cookie compliance, you just need to edit the var/skins_repository/basic/customer/addons/cookies/hooks/index/scripts.pre.tpl file with a link to your privacy policy



John

Cookies.zip

John, think you are missing some path components in the path you provided.

I'm interested, but is it complete or ready to install? Like tbirnseth says?

Just edited the post with the correct link and added instructions to the addon. You can see it working on my website alpha-spas.co.uk/shop



John

Ok, Will try to install. Will let you know if it works.

Installed it. But where can I translate the text?

[quote name='JDP2012' timestamp='1357218440' post='152104']

Installed it. But where can I translate the text?

[/quote]



Which text do you need to translate?



John

Privacy Policy

This site uses cookies to store

information on your computer.



Read more

Happy to accept?



Also, when not agreed. To another website

[quote name='JDP2012' timestamp='1357219380' post='152107']

Privacy Policy

This site uses cookies to store

information on your computer.



Read more

Happy to accept?



Also, when not agreed. To another website

[/quote]



Look in the skins//customer/addons/cookies/js/support.js file



John

I allready changed it but it does not appear on the website. See here what I've changed:



l10n: {
agree: "Ja",
agreeCaption: "Ja, Ik ga hiermee akkoord",
disagree: "Nee",
disagreeCaption: "Nee dank u.",
queryBody: "Deze website maakt gebruik van cookies.",
queryTail: "Wilt u deze accepteren?",
queryTitle: "Privacy Policy",
readMore: "Lees verder"

--------------------------------------------
var disagree_button = document.createElement("div");
disagree_button.className = "hi-cookie-btn disagree";
disagree_button.title = HI.optInCookies.l10n.disagreeCaption;
disagree_button.appendChild(
document.createTextNode(HI.optInCookies.l10n.disagree));
disagree_button.onclick = function() {
location.href = "http://www.babiesnl.com";




But the language is still English instead of Dutch.

[quote name='JDP2012' timestamp='1357219911' post='152109']

I allready changed it but it does not appear on the website. See here what I've changed:



l10n: {
agree: "Ja",
agreeCaption: "Ja, Ik ga hiermee akkoord",
disagree: "Nee",
disagreeCaption: "Nee dank u.",
queryBody: "Deze website maakt gebruik van cookies.",
queryTail: "Wilt u deze accepteren?",
queryTitle: "Privacy Policy",
readMore: "Lees verder"

--------------------------------------------
var disagree_button = document.createElement("div");
disagree_button.className = "hi-cookie-btn disagree";
disagree_button.title = HI.optInCookies.l10n.disagreeCaption;
disagree_button.appendChild(
document.createTextNode(HI.optInCookies.l10n.disagree));
disagree_button.onclick = function() {
location.href = "http://www.babiesnl.com";




But the language is still English instead of Dutch.

[/quote]



You will need to clear your website cookies and CS-Cart cache.



John

I've tried but still appear in english.

Check the website: www.babiesnl.com

The text is definitely in that file, have you tried manually clearing the cs-cart cache? Other than that all I can suggest is check to see if the changes to the text have been saved in the support.js file



John

How do I manually clear the cache?



I checked the file. It's stored correctly.

Very strange.

I normally use ftp to delete the CS-Cart cache located at var/cache



John

You can delete all the files or only the spec. folders?

I've deleted some files but checked. Still english. Don't understand.

[quote name='JDP2012' timestamp='1357222732' post='152116']

I've deleted some files but checked. Still english. Don't understand.

[/quote]



just sent you a pm



John

Hi, Ive sorted it out.



You have to translate the file first (support.js) than upload it with ftp. Than click on install in admin/addons section. Than it will install including the new translation in your own language.



It worked for me perfectly.



Thank you John for your GREAT addon!

:grin:



It’s now working on www.babiesnl.com.