# magenable/module-top-bar-notification

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

`composer require magenable/module-top-bar-notification`

Canonical URL: https://packagento.com/magenable/module-top-bar-notification

## At a glance

- **Vendor**: magenable (https://packagento.com/magenable.md)
- **Latest version**: 1.3.11 — released 2026-06-16
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/magenable/module-top-bar-notification and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require magenable/module-top-bar-notification:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

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

## README

**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](https://user-images.githubusercontent.com/22763909/79934790-613f9200-848e-11ea-8eb8-4e2a9d85cc6e.png)

### 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](https://user-images.githubusercontent.com/22763909/79934990-c4c9bf80-848e-11ea-8500-5918bf001cb7.png)
Set *Enabled* to 'YES'.

*Design Settings*

For HTML content
![magenable_top_bar_html_content](https://user-images.githubusercontent.com/22763909/79935583-3d7d4b80-8490-11ea-9c29-78177c002c01.png)
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](https://user-images.githubusercontent.com/22763909/79935614-5c7bdd80-8490-11ea-9329-023c41caa0c0.png)
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](https://user-images.githubusercontent.com/22763909/79935677-75848e80-8490-11ea-9260-913a6d3cfd91.png)
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

## Changelog

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

## Recent Versions

| Version | Released |
|---|---|
| 1.3.11 | 2026-06-16 |
| 1.3.10 | 2025-07-07 |
| 1.3.8 | 2024-12-19 |
| 1.3.7 | 2024-08-23 |
| 1.3.6 | 2024-04-16 |
| 1.3.4 | 2023-02-24 |
| 1.3.3 | 2023-01-13 |
| 1.3.2 | 2022-09-27 |
| 1.3.1 | 2022-05-20 |
| 1.3.0 | 2022-02-06 |

Showing 10 of 13 versions. Full release history on https://packagento.com/magenable/module-top-bar-notification.

## Dependencies

### Require

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

## Quality

Latest release (1.3.11) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| 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. Never affect the Compatibility verdict — 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.

| 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 against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| 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 per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| 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

| 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

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["magenable/module-top-bar-notification"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

magenable is a Magento 2 vendor on Packagento. See https://packagento.com/magenable.md for their full catalogue.

