PS PrestaShop Beginner

Front Office Admin Bar – Documentation

Install and use the front office admin bar: contextual edit links, cache clearing and SuperAdmin restriction.

Updated Module version 1.0.0

Overview

Front Office Admin Bar adds a black, WordPress-style admin bar at the top of your PrestaShop 8 or 9 storefront. It only appears for employees logged into the back office and gives direct access to the edit page of the product, category or CMS page currently displayed, plus a cache clear button.

The bar is invisible to your visitors: no module CSS or JavaScript file is loaded for them.

Installation

  1. In the back office, open Modules then Module Manager.
  2. Click Upload a module and select the dfadminbar.zip file.
  3. The module installs and automatically records the name of your admin folder.

The bar is active immediately: open your storefront in the same browser as your back office session and it appears at the top of the page.

Configuration

Three settings are available under Modules, Module Manager, Front Office Admin Bar, Configure:

  • Enable admin bar: the module’s main switch.
  • Show the clear cache button: shows or hides the Clear cache button in the bar.
  • Restrict to SuperAdmin profile: when enabled, only employees with the SuperAdmin profile see the bar. When disabled, any logged in employee sees it.

Usage

The bar

The bar permanently shows three back office links: Dashboard, Catalog and Orders. The first name of the logged in employee appears on the right. Links carry a valid back office token: you land directly on the target page, with no intermediate login page.

Depending on the page you are viewing, an edit link is added to the bar:

  • Product page: Edit this product opens the product edit page.
  • Category page: Edit this category opens the category edit page.
  • CMS page: Edit this page opens the CMS page edit screen.

On PrestaShop 8 and 9, the generated URL is automatically converted to the modern back office edit page.

Cache clearing

The Clear cache button triggers an AJAX call that clears the Smarty and XML caches, the Media cache (CCC) and regenerates the class index. The button label confirms the operation (Cache cleared). The Symfony cache is left untouched: clearing it from the front office would cause overly long response times.

Technical details

Employee detection

The module reads the PrestaShop psAdmin employee cookie, validates the password hash with Employee::checkPassword() and checks that the account is active. No extra session is created and no credentials are stored by the module.

Each link is built with a legacy token computed for the logged in employee (Tools::getAdminToken). PrestaShop then converts the legacy URL to the matching modern route. The cache clearing AJAX call is protected by a dedicated token bound to the employee ID.

Admin folder

The admin folder name is recorded at install time and refreshed every time the configuration page is opened. If you rename the admin folder, simply reopen the module configuration.

Troubleshooting

  • The bar does not show: check that you are logged into the back office in the same browser, that the module is enabled in its configuration and that the SuperAdmin option does not exclude you.
  • The bar disappeared after renaming the admin folder: open the module configuration page to record the new name.
  • Back office on another domain: the employee cookie must be shared between the storefront and the back office, which matches the standard PrestaShop setup. A back office hosted on a different domain is not supported.
  • Custom theme without the displayAfterBodyOpeningTag hook: the bar is injected through this hook. If your theme lacks it, add the hook call to the main template.

Changelog

  • 1.0.0 (2026-08-12): first public release. Front office admin bar, contextual edit links for products, categories and CMS pages, AJAX cache clearing, SuperAdmin restriction, FR, EN, ES, DE, IT, PL translations.
Was this page helpful?

Still stuck? Contact support