Olark Chat Integration: setup and help

Quick start

  1. Upload the mprolark ZIP in Modules > Module Manager > Upload a module and install it.
  2. Click Configure to open Olark Configuration.
  3. Paste only your Olark Site ID into Site ID; keep Enable Olark Chat set to Yes.
  4. Choose Show on Pages and Show on Mobile for your test page and device.
  5. Review Pass Customer Data; leave Fallback Delay (seconds) at 0 for the 10-second fallback, then click Save.
  6. Open an allowed storefront page and scroll, click, touch the page or press a key to start the Olark loader.
  7. Confirm the widget opens and submit a test conversation in Olark; also test a page or device you excluded.

Requires PrestaShop 1.6 or later and PHP 7.1 or later.

Setup manual

Install and connect

You need an existing service account and its Site ID. Configure conversations and the visible widget in the service account.

The module's Configure action opens Olark Configuration. Its configuration controller also shows a required-configuration notice and an integrity banner. Use the module's Configuration, Integrity, License, Support and Update pages for the corresponding maintenance work.

Find the connection value

Copy the Site ID from your Olark installation code. The module points you to Settings > Installation. Paste the identifier only. Do not paste an entire URL or script.

The default is empty. For new or changed identifiers, the module expects four digits, three digits, two digits and four digits, separated by hyphens. A rejected identifier keeps the previous saved configuration. Correct the value and save again.

Configure display and customer data

Set these fields in Olark Configuration, then click Save.

Setting Installation default What to do
Enable Olark Chat Yes Set No to stop this module from outputting the widget. Keep the connection value filled in when you save, including when disabling chat.
Site ID Empty Enter your service identifier before testing. An empty value prevents storefront rendering.
Pass Customer Data Yes Set No to omit the customer fields prepared by this module. See the service-specific behavior below.
Show on Mobile Yes Set No to exclude mobile visitors detected by the server. Test with your actual phone.
Fallback Delay (seconds) 0 This is the maximum wait before loading without interaction. Zero uses a 10-second fallback. A positive value changes that timeout; interaction can start loading sooner.
Show on Pages All Pages Limit the loader to one of the page groups below.

Page groups

Back Office choice Stored value Allowed controllers
All Pages all All storefront pages
Product Pages Only product product
Category Pages Only category category
Checkout Pages Only checkout cart, order, order-opc, orderopc, checkout

Targeting uses controller names. A custom checkout controller outside this list is not included by Checkout Pages Only. There is no custom URL-rule field. Show on Mobile uses PrestaShop mobile detection rather than browser width alone.

Customer fields

The module connects to your configured Olark Site ID. For a logged-in customer, it sends their email address and full name to Olark.

Guests do not receive PrestaShop customer identity fields from this module. The service can still collect information through its own widget. This module does not synchronize order history or cart contents.

Example configuration

For checkout pages on desktop, choose Checkout Pages Only, set Show on Mobile to No, and set Fallback Delay (seconds) to 2. The loader starts on the first interaction or after two seconds without interaction.

Check storefront loading

The module registers displayBeforeBodyClosingTag. It first checks the enable switch, connection value, device rule and page rule. It then places a deferred loader near the end of the page.

Scroll, click, touch or press a key to trigger the loader. Without interaction, wait for the configured fallback. The shared loader removes the inner template delay, so the two waits are not added together. With the installation default 0, allow 10 seconds before treating an idle page as a loading failure.

In browser developer tools, check for a request matching:

//static.olark.com/jsclient/loader.js

Open the widget and send a test message. Check that it reaches the service inbox. Test a logged-in account if you enabled Pass Customer Data, and verify which identity fields the service receives. Finally, test the excluded pages and mobile devices.

Manage widget appearance, greetings, offline behavior, operators and automation in Olark. The module has no fields for cart contents, cart value, addresses, phone numbers, order history or custom customer fields.

Troubleshoot

  • If no loader is output, check Enable Olark Chat, Site ID, Show on Pages and Show on Mobile.
  • If the page is idle, wait for the fallback or interact with it. Fallback Delay (seconds) set to 0 does not mean immediate loading.
  • If saving fails, keep the identifier filled in, check its format, reload the configuration page and retry. Do not use placeholder credentials for a live test.
  • If the external request fails, check browser console errors, script blocking, Content Security Policy and any consent tooling on your shop.
  • If the script loads but the launcher is absent, check your service-side widget publication, account availability and display rules.
  • If a customer field is missing, log in and confirm Pass Customer Data is Yes. Compare with the exact fields listed above.
  • If another integration also inserts the service script, check the rendered page for duplicate or conflicting installation code.

Check a custom theme

Your theme must execute the closing-body hook. A developer can restore this call before </body> where the theme lacks it:

{hook h='displayBeforeBodyClosingTag'}

For a theme template adjustment, copy:

modules/mprolark/views/templates/hook/displayBeforeBodyClosingTag.tpl

to:

themes/your-theme/modules/mprolark/views/templates/hook/displayBeforeBodyClosingTag.tpl

Keep the module's Smarty variables and identifier escaping. The shared interaction wrapper still applies to this hook template.

Configuration reference

The form uses the MPROLARK_ prefix for submitted field names. Current storage uses module mprolark in the shared mpr_config table, with short keys:

ENABLED
SITE_ID
SHOW_MOBILE
PAGES
DELAY
PASS_USER_DATA

The database table uses your shop's table prefix, so ps_mpr_config is only an example name. Use the configuration form for normal changes. Do not treat form-field names as the current database keys.

Disable or uninstall

Set Enable Olark Chat to No and save with the identifier still present to pause this module's output. You can also disable the module in Module Manager.

To remove it, use Uninstall in Module Manager and confirm. The uninstall removes its module configuration and admin menu entries. It does not close the external service account or remove code inserted by another module or theme.

Questions

No questions about this module yet

Ask anything about installation, compatibility or setup. Answers appear here.

Known Issues

3

Administration labels stayed in English

ResolvedUpdated:
Fixed in: 1.1.19
Some administration labels could ignore their available translations.

Setup status stayed out of date

ResolvedUpdated:
Fixed in: 1.1.19
The setup banner could continue showing the previous settings after a save.

Administration could fail to open

ResolvedUpdated:
Fixed in: 1.1.14
The module administration could stop with an error when a required compatibility component was missing.

Feature Requests

3

Implemented

Olark storefront chat

Implemented
Display Olark chat using the configured site identifier.

One-click updates

Implemented
Update the module from its administration page.

Chat text by language

Implemented
Configure visitor-facing chat text separately for each shop language.

Changelog

v1.1.132026-09-28

  • Addedcomplete FR/DE/ES/IT/PL translations
Older releases

v1.3.02026-04-20

  • Addedadmin menu management via MenuInstaller for streamlined module setup

v1.2.02026-01-22

  • AddedPS 9 / Hummingbird theme compatibility
  • Addedcanned-response manager in module back office for quick reply templates
  • Improvedvisitor insights panel with real-time page-view tracking
  • Fixedwidget z-index conflict with sticky header on mobile viewports
  • Optimized script loading to defer Olark SDK until after page interactive

v1.1.02025-06-14

  • Addedconfigurable widget position (bottom-left / bottom-right)
  • Addedfree-tier badge display with upgrade prompt suppression option
  • Improvedoperator availability schedule — module now reads Olark API status
  • Fixedduplicate widget injection on AJAX cart updates

v1.0.02025-05-15

  • Initialrelease: Olark live chat integration for PrestaShop
  • InitialAutomatic site ID injection into all front-office pages
  • InitialBack-office configuration for site ID and widget activation toggle
  • InitialCompatible with PS 1.7.x and PS 8.x

Demo

Test the full module

  • Ready demo shop Explore a ready demo shop in your browser.
  • No registration No account, email or store domain needed.

By opening this demo you accept the demo terms and the privacy policy.

Loading...
Back to top