PrestaShop and Whatsapp

How to add WhatsApp to Prestashop – Free Widget

Download our free Prestashop Module to integrate our WhatsApp Widget.


New website using WhatsApp Widget for Prestashop

https://www.halnatur.com/


Update: June, 2020

How to insert WhatsApp Widget to Prestashop

To insert the widget in Prestashop 1.6, you must edit the file header.tpl located in /httpdocs/themes/<Your-Theme>/header.tpl, understanding “httpdocs” as the root of the domain, and this is the case in the vast majority of cases , and replacing “<Your-Theme>” with the name of the theme being used. Finally put the script just before the </head> tag as shown in the image.

To insert the widget in Prestashop 1.7, edit the file layout-both-columns.tpl located in /httpdocs/themes/<Your-Theme>/templates/layouts/layout-both-columns.tpl, understanding “httpdocs” as the root of the domain, and this is the case in the vast majority of cases, and replacing “<Your-Theme>” with the name of the theme being used. Finally put the script just before the </head> tag as shown in the image.

Important to empty the prestashop cache in the “performance” option inside the backoffice.

script en presta shop 1.7

script en presta shop 1.7


script en presta shop 1.6

script en presta shop 1.6


 

Prestashop is one of the top ecommerce platforms and we can help you adding WhatsApp for free to your platform.

Step by step process:

  1. Create your account
  2. Configure your widget. You need to create your widget and add an agent. In this post you have a step by step process.
  3. Once you have your script ready, go to your Prestashop theme and paste the script in your theme header:
    1. themes/THEME_NAME/header.tpl
  4. Save, clear cache and you will be ready to go.

How to manage multilingual WhatsApp Widget with PrestaShop

If you have a website with PrestaShop and you are using multiple languages, you can use this code to switch your widget base on the language of the user.

This code is for Prestashop 1.7

{if $language.id == 1}

YOUR WIDGET 1

{/if}
{if $language.id == 2}

YOUR WIDGET 2

{/if}

If you are using PrestaShop 1.6 you need to use this code

$this->context->language->id;

instead of $language.id


How to send notifications from Prestashop to your customers using WhatsApp

Prestashop as you know is a great tool for e-commerce. Now you can use WhatsApp to send notifications to your customers.

You can now send notifications base on the status of the order as well as customs notifications you may need base on your workflow.

By César Martín (ToChat.be)

We develop WhatsApp solutions, WhatsApp API and WhatsApp Widgets. Please contact us for more information. We are here to help you.