Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Cookies script Silktide Rate Topic   - - - - -

 
  • JDP2012
  • Advanced Member
  • Members
  • Join Date: 19-Jul 12
  • 95 posts

Posted 28 December 2012 - 03:17 PM #1

Hi,

Can anyone tell me where to place the code to show the cookie consent?
The following code is below.

<!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
<link rel="stylesheet" type="text/css" href="http://assets.cookieconsent.silktide.com/current/style.min.css"/>
<script type="text/javascript" src="http://assets.cookieconsent.silktide.com/current/plugin.min.js"></script>
<script type="text/javascript">
// <![CDATA[
cc.initialise({
cookies: {
  social: {},
  analytics: {},
  necessary: {}
},
settings: {
  style: "monochrome",
  hideprivacysettingstab: true
},
strings: {
  socialDefaultDescription: 'Facebook, Twitter en andere so,ciale websites moet weten wie ,je bent om goed te kunnen werk,en.',
  analyticsDefaultDescription: 'We meten anoniem uw gebruik va,n deze website om uw ervaring ,te verbeteren.',
  advertisingDefaultTitle: 'Adverteren',
  advertisingDefaultDescription: 'Advertenties worden automatisc,h  gekozen op basis van uw ged,rag in het verleden en interes,ses.',
  necessaryDefaultTitle: 'Strikt noodzakelijk',
  necessaryDefaultDescription: 'Sommige cookies op deze websit,e zijn strikt noodzakelijk en ,kunnen niet worden uitgeschake,ld.',
  closeWindow: 'Afsluiten',
  defaultTitle: 'Standaard cookie titel',
  defaultDescription: 'Standaard cookie omschrijving.',
  learnMore: 'Meer informatie',
  notificationTitle: 'Uw ervaring op deze site zal w,orden verbeterd door het toest,aan van cookies.',
  notificationTitleImplicit: 'Wij gebruiken cookies om ervoo,r te zorgen dat u de beste erv,aring heeft op onze website',
  customCookie: 'Deze website maakt gebruik van, een aangepaste type cookie di,e specifieke goedkeuring nodig, heeft.',
  seeDetails: 'zie details',
  seeDetailsImplicit: 'wijzig uw instellingen',
  hideDetails: 'verberg details',
  allowCookies: 'Cookies toestaan',
  allowCookiesImplicit: 'Sluiten',
  allowForAllSites: 'Toestaan voor alle websites',
  savePreference: 'Voorkeur opslaan',
  saveForAllSites: 'Opslaan voor alle websites',
  privacySettings: 'Privacy instellingen',
  privacySettingsDialogTitleA: 'Privacy instellingen',
  privacySettingsDialogTitleB: 'voor deze website',
  privacySettingsDialogSubtitle: 'Sommige functies van deze webs,ite heeft uw toestemming nodig, om te onthouden wie je bent.',
  changeForAllSitesLink: 'Verander de instellingen voor ,alle websites',
  preferenceUseGlobal: 'Gebruik algemene instellingen',
  preferenceConsent: 'ik ga hiermee akkoord',
  preferenceDecline: 'ik weiger',
  notUsingCookies: 'Deze website maakt geen gebrui,k van cookies.',
  allSitesSettingsDialogTitleA: 'Privacy instellingen',
  allSitesSettingsDialogTitleB: 'voor alle websites',
  allSitesSettingsDialogSubtitle: 'U kunt instemmen met deze cook,ies voor alle websites waar de,ze plugin gebruik van maakt.',
  backToSiteSettings: 'Terug naar website instellinge,n',
  preferenceAsk: 'Vraag me elke keer',
  preferenceAlways: 'Altijd toestaan',
  preferenceNever: 'Nooit toestaan'
}
});
// ]]>
</script>
<!-- End Cookie Consent plugin -->

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

Dennis Teppema
Wikoop, www.jd-products.nl
Netherlands


 

Posted 28 December 2012 - 05:56 PM #2

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

Attached Files


John Carroll
My Webshop: Alpha Spas

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11392 posts

Posted 29 December 2012 - 05:16 AM #3

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

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • JDP2012
  • Advanced Member
  • Members
  • Join Date: 19-Jul 12
  • 95 posts

Posted 30 December 2012 - 05:02 PM #4

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

Dennis Teppema
Wikoop, www.jd-products.nl
Netherlands


 

Posted 30 December 2012 - 05:21 PM #5

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
John Carroll
My Webshop: Alpha Spas

 
  • JDP2012
  • Advanced Member
  • Members
  • Join Date: 19-Jul 12
  • 95 posts

Posted 02 January 2013 - 06:55 PM #6

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

Dennis Teppema
Wikoop, www.jd-products.nl
Netherlands


 
  • JDP2012
  • Advanced Member
  • Members
  • Join Date: 19-Jul 12
  • 95 posts

Posted 03 January 2013 - 01:07 PM #7

Installed it. But where can I translate the text?

Dennis Teppema
Wikoop, www.jd-products.nl
Netherlands


 

Posted 03 January 2013 - 01:08 PM #8

Installed it. But where can I translate the text?


Which text do you need to translate?

John
John Carroll
My Webshop: Alpha Spas

 
  • JDP2012
  • Advanced Member
  • Members
  • Join Date: 19-Jul 12
  • 95 posts

Posted 03 January 2013 - 01:23 PM #9

Privacy Policy
This site uses cookies to store
information on your computer.

Read more
Happy to accept?

Also, when not agreed. To another website

Dennis Teppema
Wikoop, www.jd-products.nl
Netherlands


 

Posted 03 January 2013 - 01:27 PM #10

Privacy Policy
This site uses cookies to store
information on your computer.

Read more
Happy to accept?

Also, when not agreed. To another website


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

John
John Carroll
My Webshop: Alpha Spas

 
  • JDP2012
  • Advanced Member
  • Members
  • Join Date: 19-Jul 12
  • 95 posts

Posted 03 January 2013 - 01:31 PM #11

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.

Dennis Teppema
Wikoop, www.jd-products.nl
Netherlands


 

Posted 03 January 2013 - 01:33 PM #12

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.


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

John
John Carroll
My Webshop: Alpha Spas

 
  • JDP2012
  • Advanced Member
  • Members
  • Join Date: 19-Jul 12
  • 95 posts

Posted 03 January 2013 - 01:38 PM #13

I've tried but still appear in english.
Check the website: www.babiesnl.com

Dennis Teppema
Wikoop, www.jd-products.nl
Netherlands


 

Posted 03 January 2013 - 01:49 PM #14

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
John Carroll
My Webshop: Alpha Spas

 
  • JDP2012
  • Advanced Member
  • Members
  • Join Date: 19-Jul 12
  • 95 posts

Posted 03 January 2013 - 01:59 PM #15

How do I manually clear the cache?

I checked the file. It's stored correctly.
Very strange.

Dennis Teppema
Wikoop, www.jd-products.nl
Netherlands


 

Posted 03 January 2013 - 02:02 PM #16

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

John
John Carroll
My Webshop: Alpha Spas

 
  • JDP2012
  • Advanced Member
  • Members
  • Join Date: 19-Jul 12
  • 95 posts

Posted 03 January 2013 - 02:04 PM #17

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

Dennis Teppema
Wikoop, www.jd-products.nl
Netherlands


 
  • JDP2012
  • Advanced Member
  • Members
  • Join Date: 19-Jul 12
  • 95 posts

Posted 03 January 2013 - 02:18 PM #18

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

Dennis Teppema
Wikoop, www.jd-products.nl
Netherlands


 

Posted 03 January 2013 - 02:32 PM #19

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


just sent you a pm

John
John Carroll
My Webshop: Alpha Spas

 
  • JDP2012
  • Advanced Member
  • Members
  • Join Date: 19-Jul 12
  • 95 posts

Posted 03 January 2013 - 03:03 PM #20

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.

Dennis Teppema
Wikoop, www.jd-products.nl
Netherlands