Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
Is there a cookie consent plugin? I've been trying to implement the cookieconsent.min.js we were using previously but I can't get the pop up to work. I have the file in the /scripts/ folder and the cookieconsent.min.css updated in the CSS file (also tried it independently in the scripts folder) but I'm not getting any results.
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Currently, there is no cookie consent plugin for AC9.
Thanks
|
|
|
|
Rank: Administration
Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered Joined: 10/5/2018(UTC) Posts: 175
Thanks: 8 times Was thanked: 17 time(s) in 15 post(s)
|
Hi, using this script should be very easy. Here is how I got it working. * I went into HTML snippets and created a new HTML Snippet and called it Cookie Consent. * Opened the source view of the newly added snippet and directly placed all Javascript into it. Code:
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
<script>
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#237afc"
},
"button": {
"background": "#fff",
"text": "#237afc"
}
}
});
</script>
* switched the source view of HTML editor back to design view and saved. * Went to home page and put the page in edit mode. * edit the Header Board and then from sidebar HTML tab dragged it into the header above menu. * saved my updates and that's it. Closed the design view and popup appeard in bottom. I was using their configurator to create the embeddable code. https://www.osano.com/cookieconsent/download/ code
|
2 users thanked mazhar for this useful post.
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
Mazhar, Thank you, I was on the right track and I got it working :)
|
1 user thanked IDAutomation for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close