Cookie compliance integration for OpenCart

Go to your Cookie-Script.com account click the "use" button and copy your item's src attribute's value (i.e. file URL)

Open catalog/controller/common/header.php and add before

$this->data['scripts'] = $this->document->getScripts();

this code, where your-file-URL is your item's src attribute value. 

$this->document->addScript('<strong>your-file-URL</strong>');

Note
Also there is possible just to place your script inline into catalog/view/theme/{theme name}/template/common/header.tpl using normal HTML markup.

Cookie-Script is installed on OpenCart now and should be ready for use.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.