# Prestashop

## How to Add Zigpoll to All Pages in PrestaShop

1. **Copy your Zigpoll embed code**
   * In Zigpoll, go to **Install** and copy the JavaScript snippet.
2. **Add it to your PrestaShop theme**
   * Go to your server/files and open:

     ```
     themes/<your-theme>/templates/_partials/footer.tpl
     ```

     (You can also use `head.tpl` if you prefer loading Zigpoll earlier.)
3. **Paste the embed code**
   * Right before the closing `</body>` tag, paste your Zigpoll snippet:
4. **Clear cache**
   * In your PrestaShop back office:\
     **Advanced Parameters → Performance → Clear Cache**
5. **Done!**
   * Zigpoll will now load on every page of your PrestaShop store.
   * You can manage where and when polls appear from your Zigpoll dashboard (using URL rules, device rules, etc.).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zigpoll.com/integrations/prestashop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
