logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
IDAutomation  
#1 Posted : Wednesday, April 8, 2020 1:11:15 PM(UTC)
IDAutomation

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.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shari  
#2 Posted : Wednesday, April 8, 2020 1:39:44 PM(UTC)
shaharyar

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
mazhar  
#3 Posted : Wednesday, April 8, 2020 1:54:51 PM(UTC)
mazhar

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
thanks 2 users thanked mazhar for this useful post.
IDAutomation on 4/8/2020(UTC), Joe Payne2 on 4/9/2020(UTC)
IDAutomation  
#4 Posted : Wednesday, April 8, 2020 2:39:07 PM(UTC)
IDAutomation

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 :)
thanks 1 user thanked IDAutomation for this useful post.
mazhar on 4/9/2020(UTC)
Users browsing this topic
Guest (4)
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.