PS PrestaShop Beginner

Login as Customer Pro: Documentation

Open a support session on a customer account from the PrestaShop 1.7.8, 8 and 9 back office: single-use link, banner, read-only mode, log.

Updated Module version 2.0.0

Overview

Login as Customer Pro (module dfconnectas) opens a support session on a customer account from the back office: you see the shop exactly as the customer does, to reproduce an issue or help them order. Each session uses a single-use link valid for a few seconds, shows a permanent banner with the time left, ends by itself and stays in a log nobody can edit.

Compatibility

  • PrestaShop: 1.7.8, 8.x and 9.x (tested on 1.7.8.11, 8.2.1 and 9.1.5).
  • PHP: as supported by your PrestaShop version (tested on PHP 7.4, 8.1 and 8.5).
  • Themes: Classic and Hummingbird.
  • No override, no Composer dependency. 8 languages: English, French, Spanish, German, Italian, Polish, Dutch, Portuguese.

PrestaShop 1.7.0 to 1.7.7 is no longer supported since version 2.0.0: stay on 1.1.0 on those versions.

Installation and upgrade

  1. Install the ZIP from Modules › Module Manager (or php bin/console prestashop:module install dfconnectas).
  2. Two entries appear under Customers: Connect as customer (customer list with button) and Connection log.
  3. Open Modules › Connect As Customer › Configure to check the settings. By default, only SuperAdmin employees can connect as a customer.

Upgrading from 1.0.0 or 1.1.0 keeps the log and the settings. The link lifetime is capped at 60 seconds, open 1.x links are cancelled, the banner can no longer be turned off, and the empty profile list of 1.x (every profile with the module tab) becomes the explicit list of those profiles.

Opening a support session

On the customer page, the Connect as customer panel shows the session length and the last sessions on this account.

Customer page: Connect as customer panel with the session length and the recent sessions
Customer page: Connect as customer panel with the session length and the recent sessions

In Customers › Customers, an icon is added to each row (can be turned off). The order page also offers the button next to the customer.

Customers list: Connect as customer icon on each row
Customers list: Connect as customer icon on each row

The button opens a confirmation dialog: account, reason (optional or required depending on the settings, shown in the log), Read-only session ticked by default, and what will happen. The shop opens in a new tab; the link never goes through the address bar.

Confirmation dialog: reason for the connection, read-only ticked and what will happen
Confirmation dialog: reason for the connection, read-only ticked and what will happen

When connecting is not possible, the dialog says why and what to do: account in an excluded group, disabled account (for example waiting for validation), deleted account, e-mail address used by an employee, profile not allowed, shop not accessible, employee two-step verification pending.

Connection not possible: account in an excluded group, with a message that explains what to do
Connection not possible: account in an excluded group, with a message that explains what to do

During the session

A banner stays on every page: customer, employee, read-only, time left and an Exit button. It can be reduced, not turned off.

Customer account seen by the employee: support session banner, time left and Exit button
Customer account seen by the employee: support session banner, time left and Exit button

In read-only mode, the cart, checkout, addresses, messages and forms are blocked; the banner explains that nothing was changed. In every session, the password, e-mail address, personal data and consents (Identity page, GDPR module) are protected, unless you allow it.

Read-only session: checkout is blocked and the banner explains that nothing was changed
Read-only session: checkout is blocked and the banner explains that nothing was changed

On mobile, the banner folds into two lines and keeps the Exit button visible.

On mobile: compact banner with the customer, read-only, time left and Exit
On mobile: compact banner with the customer, read-only, time left and Exit
  • Separate cart (default): your browser cart is never merged into the account, and a cart created during the session without an order is deleted at the end.
  • The customer is not notified, their last visit date does not change and their own sessions on their devices are not touched.
  • Analytics: the module adds the dfconnectas_impersonation event to the dataLayer and sets Google consent to “denied” before your tags. Exclude this event in your tag manager: other trackers are not stopped.

End of the session

The session ends with the Exit button, at the end of the configured length (30 minutes by default), with the customer’s “Sign out” link, or within a minute if the employee signs out of the back office, is disabled or loses the permission. The browser gets a visitor session back, with its previous cart.

Support session ended: customer name and duration, the customer’s own sessions are not touched
Support session ended: customer name and duration, the customer’s own sessions are not touched

Option (off by default) to help a customer who can no longer sign in: a single-use link valid for 1 to 72 hours that signs them in without a password. It is shown once to the employee and never sent by the module; a new link cancels the previous one. The customer confirms with a button, so mail scanners that open links do not use it up.

Sign-in link for the customer: single use, validity date and Copy button
Sign-in link for the customer: single use, validity date and Copy button

Error pages

Link not valid, already used, expired, opened from another network or another shop, access refused, too many attempts: each case has a clear page with what to do next.

Clear error page: connection link not valid and what to do next
Clear error page: connection link not valid and what to do next

Settings

The overview sums up the activity over 30 days and a security check of your settings.

Overview: sessions over 30 days, average length, security check and latest activity
Overview: sessions over 30 days, average length, security check and latest activity

The Security tab sets the link lifetime (10 to 60 seconds), the session length (5 to 480 minutes), binding to the employee’s network, the number of invalid links tolerated, read-only, the reason, checkout blocking, identity protection, the cart and the analytics mark. Each setting is explained.

Security settings explained: link lifetime, session length, network, read-only, reason and cart
Security settings explained: link lifetime, session length, network, read-only, reason and cart

The Access tab chooses the allowed profiles (SuperAdmin always), the customer groups never opened, protection of staff accounts, guest accounts and customer links. Only a SuperAdmin can change the settings.

Access: allowed profiles, excluded customer groups, protected staff accounts and customer links
Access: allowed profiles, excluded customer groups, protected staff accounts and customer links

Connection log

Every link is recorded: employee, customer, reason, read-only, status, duration, orders and IP (masked by default). The log can be filtered, is read-only (no edit or delete from the back office) and is purged automatically after the retention period. The CSV export neutralises formulas for spreadsheets.

Read-only connection log: filters, status, duration, read-only, orders and reason
Read-only connection log: filters, status, duration, read-only, orders and reason

The session detail lists the key events: cart created, order placed, action blocked.

Session detail: employee, customer, reason, start, end, duration and key events (cart, order)
Session detail: employee, customer, reason, start, end, duration and key events (cart, order)

An order placed during a session is flagged at the top of the order page, with the employee, the reason and a link to the session.

Order page: order flagged as placed during a support session, with the employee and the reason
Order page: order flagged as placed during a support session, with the employee and the reason

Security

  • Random single-use link valid for 10 to 60 seconds, stored only as a signed hash (HMAC-SHA256) and bound to the employee, the customer, the shop and the employee’s network.
  • Sent in a form, never in a URL; refused when it comes from another site; number of attempts limited per IP address.
  • Employee, permissions, shop and back-office session checked again when the session opens and every minute.
  • With the DataFirefly 2FA module, an employee whose two-step verification is pending cannot open a customer session.

Troubleshooting

Start again from the back office: each click creates a new link. On a slow computer, increase the link lifetime (60 seconds at most).

The back office and the shop see a different IP address (some proxies or CDNs). Turn off Bind links to the employee network in the Security tab.

The button does not show

Your profile is not allowed (Access tab) or cannot view the Customers page. A SuperAdmin can add it.

“Too many attempts”

Too many invalid links were opened from your address: wait 15 minutes or raise the limit in the Security tab.

Was this page helpful?

Still stuck? Contact support