> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kleep.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Prestashop

## **Phase 1: Backend Configuration (Webservice API)**

*This step allows Kleep to retrieve your product catalog and order history to calibrate the algorithm.*

**1. Enable the Webservice**

1. Log in to your Prestashop Admin panel.
2. Go to **Advanced Parameters > Webservice**.
3. Enable the “Enable Prestashop’s webservice” setting > **Save**.

**2. Create the API Key**

1. Click on **“Add new webservice key”**.
2. Click on **“Generate”** to create a key (copy it, we will need it later).
3. **Permissions:** In the resource list, check the **View (GET)** boxes for the following resources:
   * `products`
   * `product_options`
   * `product_features`
   * `product_feature_values`
   * `product_options_values`
   * `categories`
   * `combinations`
   * `images` / `image_types`
   * `orders`
   * `order_states`
   * `stocks`
   * `stock_availables`
   * `shop_urls`
   * `shops`
4. Save.

**3. Share the Key**
Send the generated API Key to your Kleep contact via email.

***

## **Phase 2: Frontend Integration (Widget)**

*This step involves adding the Kleep script to your product pages (PDP). Compatible with all Prestashop versions.*

Follow our [**JS Library Widget guide**](/cms/js-library) to install and configure the front-end CTA on your product pages.

***

## **Phase 3: Handling Missing Data (SFTP)**

*If your Prestashop API does not allow retrieving Returns or certain specific data, we use CSV file exchange.*

Please visit the documentation below. It will guide you step by step to send us the missing data.

***

## **Phase 4: Validation & Go-Live**

1. **Test Environment** — first deploy on your **Preprod/Staging** environment.

2. **Visual Validation** — before going live, verify:
   * Does the button appear correctly?
   * Does clicking open the pop-up (Drawer)?
   * No “CORS” errors in the browser console?

3. **Go-Live** — once validated by you and the Kleep team, deploy the changes to your **Production** theme.---

## Cookies & data privacy

Kleep is fully gated by visitor consent: the script only loads **after** consent is collected through your CMP, and you must condition its loading accordingly. For the complete list of trackers, the data processed, the purposes and legal bases, hosting, subprocessors and security, see [Cookies, CMP & Data Privacy](/cookie-consent).
