Modules and consent
Any module of the shop can ask Kixell Tag for the visitor's choice: it declares its partners, then waits for a yes before setting a cookie or collecting data. One banner for the whole shop.
Example module kixconsentdemo 1.0.0
For PrestaShop 1.6 to 9 and PHP 5.6 or higher. The zip contains the commented code, its technical documentation and a skill for AI assistants, under the MIT licence. Kixell Tag remains proprietary software, not covered by this licence.
This section is for PrestaShop module publishers and for agencies that adapt a shop's modules. It assumes the Kixell Tag banner is already in place: see Consent.
Read What the module consent API is for first, then install the demo to see it at work. The following pages show how to connect your own module.
In this section
Understand and try
- What the module consent API is for Why a PrestaShop module must wait for the visitor's choice, how Kixell Tag passes it on, and the five rules the module follows.
- Install and try the demo Install kixconsentdemo on a test shop, tick its two partners in Kixell Tag, then accept and refuse in the banner to see the module follow the choice.
Integrate into your module
- Declare the module's partners Choose the legal basis and the TCF purposes of each processing operation, then declare them with the actionKixellTagRegisterVendors hook: fields, rules and partner lifecycle.
- React to consent in PHP The actionKixellTagConsent hook tells the module when the visitor's choice changes; hasVendorConsent() answers on demand. Parameters, call times, rules and reliable contexts.
- Browser side and page cache Follow the visitor's choice in the page with kixelltagOnReady, the kixelltag_consent_state event and KixellTag.hasConsent(), or let Kixell Tag run a script after consent, even with a page cache.
Going further
- Integration recipes Cookie set by the server, consent withdrawal, orders and payment notifications, proof, several consent tools, updating an existing module, PrestaShop 1.6.
- Test and troubleshoot The scenarios to run, with and without a page cache, to check that a module follows the visitor's choice, then the common problems and their solutions.
- Use the skill with an AI assistant The skill shipped with kixconsentdemo guides an AI assistant (Claude Code, Cursor, Copilot, Codex, ChatGPT) to connect a PrestaShop module to the Kixell Tag banner, and what to review afterwards.