Install guide: PrestaShop

Add GetFoxChat to your PrestaShop site

As of November 3, 2026, to add GetFoxChat to PrestaShop, put a short GetFoxChat loader in your active theme's custom.js file (assets/js/custom.js in the theme folder), which PrestaShop loads last on every front-office page (PrestaShop's own guide, September 30, 2026). The video on this page shows GetFoxChat installed, tested and running in 4 minutes (watch it).

Before you start: File access to your shop's theme folder (FTP, hosting file manager, or a developer) plus back office access to Advanced Parameters, Performance; the PrestaShop back office has no field for pasting a site-wide script tag. source

Watch it first

GetFoxChat being installed, tested and run on a real site▶ Watch how
Install, test and run GetFoxChat in 4 minutes

The line to add

Yours has your own site ID in place of YOUR_SITE_ID.

<script src="https://getfoxchat.com/widget.js" data-site-id="YOUR_SITE_ID" defer></script>

On PrestaShop, this is what goes in themes/<your theme>/assets/js/custom.js:

(function () {
  function add() {
    var s = document.createElement('script');
    s.src = 'https://getfoxchat.com/widget.js';
    s.setAttribute('data-site-id', 'YOUR_SITE_ID');
    document.body.appendChild(s);
  }
  if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', add); } else { add(); }
})();

How do you add GetFoxChat to PrestaShop, step by step?

  1. In GetFoxChat, open the install step for your site and copy your snippet. It already has your site ID in it. No account yet? Create one free.
  2. Open your active theme's folder on the server (themes, then your theme name) and find assets/js/custom.js. source
  3. Paste the GetFoxChat loader lines (shown on this page) at the end of custom.js, with your own site ID in place of the placeholder, and save the file. source
  4. In the back office, go to Advanced Parameters, then Performance. source
  5. Click the Clear cache button at the top of the page. source
  6. Open your shop in a new tab and check that the chat bubble shows.
  7. Back in GetFoxChat, press Check my site. The chat switches on once GetFoxChat finds the snippet on your live pages.

PrestaShop's own guide: PrestaShop developer docs: asset management. Checked 2026-09-30; if PrestaShop renames a menu, its guide has the current wording.

PrestaShop gotchas

How do you remove it later?

Delete the GetFoxChat loader lines from the theme's assets/js/custom.js, save, then go to Advanced Parameters, Performance and click Clear cache.

Applies to PrestaShop 8 and 9 with the Classic theme or any theme that ships the standard custom.js. The exact path assets/js/custom.js inside the theme folder is standard for the Classic theme but is not quoted in the docs fetched. theme.yml can also register a remote script on all pages, but its attribute option only accepts async or defer, so it cannot carry data-site-id; that is why the loader is used. This file holds JavaScript, not HTML, so it gets a short loader that adds the same script tag with your site ID once the page has loaded.

Find out what your visitors can't find

See the 5 questions your visitors are likely to ask that your pages don't clearly answer. Free, no account needed.

Your AI Operator starts as Foxy. Rename it and give it your own avatar in Settings. Plans and what each includes: pricing.