Docs menu

PrestaShop

The CookieHug module for PrestaShop 8.x/9.x: installation, connecting your account and updates.

PrestaShop Module

The official CookieHug PrestaShop module (compatible with PrestaShop 8.x and 9.x) is a thin connector: it pairs your shop with a CookieHug account, injects the consent banner script into the storefront <head>, and offers an SSO link to the dashboard. All configuration lives in the CookieHug dashboard.

Installation

Download the latest module ZIP from the Integrations page in your CookieHug dashboard, then:

  • In the back office go to Modules → Module Manager → Upload a module and choose the ZIP.
  • PrestaShop installs and enables the module automatically.

Connecting to CookieHug

  • On the CookieHug module configuration page click Connect with CookieHug.
  • You are redirected to cookiehug.com — pick the shop's domain and confirm.
  • You return to the back office with the connection saved. The banner starts appearing on the storefront.
  • (Optional) Schedule the token-protected CRON URL shown on the configuration page (e.g. once a day) so the dashboard's last-seen status stays fresh even when no one opens the module page.

Cookie declaration

PrestaShop's CMS editor removes <script> tags, so the declaration snippet from the dashboard cannot be pasted into a CMS page. The module places it for you — module configuration → Cookie declaration:

  • CMS pages — tick the pages (e.g. "Privacy policy") that should show the table.
  • Other pages — URL path fragments, one per line; the declaration loads on every storefront URL whose path contains one of them (pages from other modules, landing pages).
  • Position — *automatic* appends the table at the end of the page content; *manual* renders it where you paste <div id="cookiehug-declaration"></div> into the page — plain HTML, which the editor keeps.
  • Theme hook — anywhere in a .tpl template: {hook h='displayCookieHugDeclaration'} or {widget name='cookiehug' hook='displayCookieHugDeclaration'}. The hook is listed under Design → Positions.

Updates

When a newer version is available, the module's configuration page shows a notice with a download link. Download the ZIP and re-upload it via Module Manager — PrestaShop runs any upgrade scripts. Supported versions: PrestaShop 8.0.0+ and the whole 9.x line.