magenable / module-top-bar-notification

magenable/module-top-bar-notification

Magento 2 extension to display simple notice at the top of the page

magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass MIT

Magenable_TopBarNotification

Top Bar Notification is a Magento 2 extension to display a banner/notice at the top of Magento store pages, before all other content.

The extension was developed as a quick way to display COVID-19 notice, but can be used for other notices as well

PWA Studio

The extension for Magento PWA Studio can be found here: https://www.npmjs.com/package/@magenable/top-bar-notification

Hyvä themes

The module for compatibility with the Hyvä theme can be found here:
https://gitlab.hyva.io/hyva-themes/hyva-compat/magento2-magenable-top-bar-notification

Breeze themes

This module is compatible with Swissup/breeze themes

Final result

magenable_top_bar_notification_result

Installation

Composer

Run the following command in Magento 2 root folder

composer require magenable/module-top-bar-notification
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

User Guide

Configuration

Go to Stores > Settings > Configuration > Magenable Extensions > Top Bar Notification.

General Settings

magenable_top_bar_notification_general
Set Enabled to 'YES'.

Design Settings

For HTML content
magenable_top_bar_html_content

  1. You have to set Content Type to 'HTML'
  2. Insert the html-content to display to users

For text content
magenable_top_bar_text_content

  1. You have to set Content Type to 'text'
  2. Insert the text to display to users
  3. Insert font size
  4. Insert an exadecimal value to set the color of Background color
  5. Insert an exadecimal value to set the color of Text color

Pages to show/hide (optionally)
magenable_top_bar_text_content
Insert page(s) to show/hide this notification

Compatibility

Tested with Magento Open Source 2.4.4 - 2.4.7, but will probably work with older Magento 2.X versions and Magento Commerce

About developer

The extension is developed by Magenable (https://magenable.com.au), eCommerce consultancy specializing in Magento based in Melbourne, Australia

1.3.11 (2026-06-16)

  • Tested with Magento v2.4.9 and PHP 8.5

1.3.10 (2025-07-04)

  • Tested with Magento v2.4.8-p1

1.3.9 (2025-03-10)

  • Tested with Magento v2.4.8

1.3.8 (2024-12-19)

  • Tested on Magento v2.4.4-p11, v2.4.5-p10, v2.4.6-p8 and v2.4.7-p3

1.3.7 (2024-08-20)

  • Tested with Magento v2.4.6-p7 and v2.4.7-p2

1.3.6 (2024-04-10)

  • Tested with Magento 2.4.7 and PHP 8.3

1.3.5 (2024-03-11)

  • Tested with Magento 2.4.6-p4
  • Added change-log.txt
Versions
Version Stability QA Status Compatibility Released
1.3.11 stable Fail Magento 2.4.7-2.4.9 Details 2026-06-16 05:05:24
1.3.10 stable Fail Magento 2.4.7-2.4.9 Details 2025-07-07 03:14:43
1.3.8 stable Not tested Not yet tested Details 2024-12-19 10:24:26
1.3.7 stable Not tested Not yet tested Details 2024-08-23 06:08:18
1.3.6 stable Not tested Not yet tested Details 2024-04-16 02:30:00
1.3.4 stable Not tested Not yet tested Details 2023-02-24 05:14:06
1.3.3 stable Not tested Not yet tested Details 2023-01-13 08:50:56
1.3.2 stable Not tested Not yet tested Details 2022-09-27 07:35:17
1.3.1 stable Not tested Not yet tested Details 2022-05-20 05:56:51
1.3.0 stable Not tested Not yet tested Details 2022-02-06 04:45:21
1.2.0 stable Not tested Not yet tested Details 2021-11-19 05:01:21
1.0.1 stable Not tested Not yet tested Details 2021-10-21 01:11:29
1.0.0 stable Not tested Not yet tested Details 2020-04-23 03:40:57

Requires 2

Package Constraint
magenable/module-base *
php >=7.1.0

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Pass 0
PHPMD Warning 5 5 rule violations (UnusedFormalParameter:5)
Cpd Pass 0
Composer validate Info 2 valid; 2 advisory notes (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 1 1
2.4.8 1 1
2.4.9 1 1

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
MIT
Authors
  • Magenable

More from magenable

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.