Docs menu
Integration guide

PrestaShop

Add the widget to your shop's theme so it shows on every page.

Steps

  1. Copy the embed code from your chatbot's page in the console (what it looks like).
  2. Open your theme's footer template. In the default Classic theme it's themes/classic/templates/_partials/footer.tpl.
  3. Paste the code at the end of the file, between {literal} and {/literal} as below, and save.
  4. Clear the cache in Advanced Parameters → Performance.
Embed code
{literal}
<!-- DeepFountain Widget -->
<script>
  (function() {
    const script = document.createElement('script');
    script.src = 'https://saas.deep-fountain.com/widget-v3/YOUR_CHATBOT_IDENTIFIER/loader.js?api_key=YOUR_API_KEY';
    script.setAttribute('data-api-key', 'YOUR_API_KEY');
    script.async = true;
    script.defer = true;
    document.head.appendChild(script);
  })();
</script>
<!-- End DeepFountain Widget -->
{/literal}

Good to know

  • {literal} keeps Smarty, PrestaShop's template engine, from reading the script's braces as template tags.
  • Edit a child theme so a theme update doesn't remove the code.
  • The widget doesn't show up? See troubleshooting.