Documentation
Module 4.6.0 What’s new
Modules and consent · Going further

Test and troubleshoot

Run these scenarios before releasing your module, once without a page cache and once with one. Each row says what you should see.

For: developer, agency Access: PrestaShop back office Checked with module 4.6.0 · updated Nov 29, 2026

Preparing the test #

  1. Install both modules

    Kixell Tag with its banner turned on, then your module, or the demo.

  2. Check the partner

    In Kixell Tag, open Vendor Configuration from the Consent popup configuration tile: your module's partner is listed there, of type Personnel. Click the arrow at the start of its row and check its name, its link and its purposes.

  3. Tick the partner

    Tick it. The box is saved at once.

  4. Open a fresh window

    Use a private browsing window, with no previous choice, with the developer tools open.

The scenarios #

Run each scenario twice: with the Do you use a caching system? setting of the Google Tag Manager tile turned off, then turned on.

No. Scenario What you should see
1 First page, no choice kixelltag_consent_state with chosen: false. No module cookie, waiting scripts not run, consent hook not called
2 Accept all chosen: true and hasConsent() true. Hook called with origin set to choice, first_choice true and modules[key] true. Waiting scripts run, module cookie set
3 Next page Hook not called again. State received at once with chosen: true. No new call to the module controller in the same session
4 Reopen the banner, refuse all Hook with modules[key] false and the partner's identifier in previous_vendors_consent. Module cookie deleted, page cleaned up
5 New window: refuse all, then accept on the same page The waiting scripts run after consent, without reloading
6 Custom choice: only your partner enabled hasConsent(key) true, false for the other partners
7 Partner not ticked by the merchant Always no, nothing is collected
8 Kixell Tag disabled No call in the page, hasVendorConsent() false, nothing is collected, no PHP warning
9 Order validated by a payment notification, scheduled task The consent recorded earlier is used, never a live reading
10 Module installed before Kixell Tag, then Kixell Tag installed The module installs on its own and collects nothing. Once Kixell Tag is installed, its partner appears in Vendor Configuration

For a partner based on legitimate interest, scenarios 2 and 4 give the same results: yes after "accept all", no after "refuse all".

Where to look #

Where What you check there
Console Your module's messages
Network The call to the module controller and its Set-Cookie header. The Kixell Tag request that records the choice: its response carries the Set-Cookie sent by your hook
Application or Storage The module's cookies and storage, before and after each choice
Server log The hook calls and their parameters, with no personal data

Common problems #

The partner does not appear in Vendor Configuration

The hook is not registered, the module is disabled, or a field of the declaration is invalid: the partner is then ignored entirely. Check isRegisteredInHook('actionKixellTagRegisterVendors'), then each field: key in lowercase letters, digits and _, name not empty, policy_url starting with http or https, arrays of integers.

I changed the declaration and nothing changes

Kixell Tag creates a partner only once and never updates it. Fix its purposes in Vendor Configuration, with the arrow at the start of its row. Do not change its key to force a new creation: it would be a new partner, which every merchant would have to tick again.

hasConsent() always answers no

The partner is not ticked, the visitor chose before it was ticked, the key is mistyped, the banner is turned off, or the call happens before the first state. Tick the partner, make a new choice, use the exact key and call the method in the kixelltag_consent_state function.

The consent hook is not called on a page

This is normal: it only runs when the choice has changed since the last state passed on in this browser. If it is never called, check that a choice was actually made, that your IP address is not excluded and that the hook is registered.

The server and the page do not give the same answer

The server's answer comes from a cached page. Decide in the page or in a front controller: see Browser side and page cache.

The waiting script never runs

No choice is recorded, the data-kt-vendor partner is not accepted, or the type is mistyped. Write exactly type="kixelltag/javascript" and check KixellTag.hasConsent() for this key.

The script keeps running after a refusal

Once run, a script cannot be taken back. Make it listen to kixelltag_consent_state so that it stops by itself.

PHP warning "setcookie() expects parameter 3 to be int, array given"

The server runs PHP 7.2 or older. Use the seven-argument form, with '/; SameSite=Lax' as the path: see Integration recipes.

The module collects on a shop without Kixell Tag

A fallback collects when no tool answers. Remove it: no answer, no consent. See Without Kixell Tag.

Some pages keep the old version of your script

The PrestaShop JavaScript cache serves a combined file built before your change. Clear the cache in Advanced ParametersPerformance after each change to your JavaScript.

Missing or wrong information? Tell the support team