Table of content
- Adding chat button integration script to the installation files
- PrestaShop integration to display orders in LiveAgent (separate article)
To integrate your LiveAgent chat button into your PrestaShop website, you need to add the LiveAgent chat button integration script to the installation files.
Adding LiveAgent chat button script into installation files
To add a LiveAgent chat button to your PrestaShop website by editing the installation files, firstly in your LiveAgent panel navigate to Configuration > Chat > Chat buttons, edit your chosen chat button, in its configuration screen navigate to the Integration screen, and copy the script of your button.
Then, in your PrestaShop installation files on your server navigate to themes > classic > assets > js folder, and edit the "theme.js" file. Add the copied script to the very bottom of the file and remove the <script type="text/javascript"> and </script> tags from it.
If you have a custom PrestaShop theme then access its files from the themes folder instead of the classic theme.
Save the theme.js file and that's it. Your PrestaShop store is integrated with your LiveAgent chat button.