How to add live chat to PrestaShop

Add Parlar’s free live chat to your PrestaShop store: copy one line from your panel and paste it into your theme’s layout file.

Before you start: PrestaShop has no box for custom code, so you need access to your theme’s files. Use a child theme, or a theme update will remove the line.

Step by step

  1. Create your free account

    Then open Settings in the Parlar panel. No card is needed.

  2. Copy the line under Install

    It already includes your site key.

  3. Paste it into your theme’s layout

    Paste the line just before </body> in templates/layouts/layout-both-columns.tpl. In the Classic theme, the checkout has its own templates/checkout/checkout.tpl: paste the line there too. Then clear the cache in Advanced Parameters › Performance.

  4. List your website under Allowed websites

    Add every address your store opens on, one per line.

  5. Check that it works

    Open your site in a private window, write a message in the chat and answer it from the panel.

If the chat doesn’t appear

Is the line on the page?

Open your site, view the page source and look for app.parlar.chat/widget.js. If it isn’t there, the line wasn’t saved where the platform uses it.

Is your website on the list?

If you filled in Allowed websites, the chat only works on those addresses. Add the one you’re testing.

The chat shows everywhere except the checkout. Why?

In the Classic theme the checkout uses templates/checkout/checkout.tpl. Paste the line there too and clear the cache.

A theme update removed the chat. How do I stop that?

Put the line in a child theme. An update replaces the parent theme’s files, but not the child theme’s.

Know who’s writing before you reply