magenable/module-top-bar-notification

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

Installs: 1 309

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

Type:magento2-module

1.3.8 2024-12-19 08:40 UTC

This package is auto-updated.

Last update: 2024-12-19 10:24:29 UTC


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

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