Chat on WhatsApp

Notification Bar for Magento 2

Turn every page into a conversion surface. Panth Notification Bar is a production-grade announcement bar for Magento 2 with unlimited stackable bars, live countdown timers, CTA buttons, full scheduling, granular targeting (page, customer group, country, device), and dismissibl...

Magento 2.4.6–2.4.8 PHP 8.1–8.4 Hyva + Luma Ready Free

Key Features:

  • Create unlimited bars
  • Automatic stacking
  • Max visible cap
  • Bar types

Additional Services

$0.00
In stock
SKU
panth-notification-bar
Links
Pay with Wise
Lifetime Updates Every Magento release
1-Year Free Support Email + WhatsApp
Adobe-Certified Magento 2 Developer
Free Forever No subscription, no upsell
What you get

Everything in the box

Built-in from day one. No add-ons, no upsell, no licence keys to renew.

Create unlimited bars

each with its own content, position, style, and audience

Automatic stacking

multiple bars stack vertically in priority order

Max visible cap

global setting limits how many bars show at once per page

Bar types

`info`, `warning`, `success`, `promo`, `urgent`, `custom` with preset theme colors

Overview

Panth Notification Bar is a Magento 2 promo bar extension that runs unlimited stackable announcement bars with countdown timers, CTAs, scheduling, and granular audience targeting.

The Panth Notification Bar extension turns every Magento 2 and Adobe Commerce page into a conversion surface with a complete announcement system: top fixed, top static, bottom fixed, or bottom floating positions, solid color or gradient backgrounds, icons, CTA buttons, live countdown timers, and dismissible cookie memory.

It is built for Magento 2 merchants who run flash sales, shipping cut-off countdowns, multi-store promos, and B2B segment announcements and who need targeting that lands. Every bar can be scoped to specific store views, customer groups, page types, URL patterns, URL parameters, countries, and devices, and dismissed bars stay hidden for a configurable cookie window.

Native Hyvä (Alpine.js + Tailwind) and Luma (Knockout + LESS) templates render automatically with zero manual switching, and bar types (info, warning, success, promo, urgent, custom) ship preset theme colors. Stacking is automatic in priority order with a global cap on the maximum visible at once.

Best for:

  • Magento 2 merchants running flash sales, free-shipping thresholds, and BFCM campaigns.
  • Multi-store and multi-country brands needing per-store-view and per-country messaging.
  • B2B merchants targeting specific customer groups with segmented announcements.

Why Panth Notification Bar

Most Magento 2 notification / announcement bar modules ship a single bar with hard-coded colors, no scheduling, and no targeting — which is fine for one static "Free Shipping" strip, but useless for real marketing operations. Panth Notification Bar is built for merchants who actually run campaigns:

  • Flash sales with live countdown timers and auto-expiry
  • Segmented promos — VIP group gets one bar, guests get another
  • Geo-targeted messaging — EU-only cookie notice, US-only free shipping threshold
  • UTM-driven offers — show a matching bar only to visitors coming from a specific ad
  • Progressive announcements — stack a top-fixed flash sale + a bottom-floating social proof
  • Mobile-optimized copy — short headline on phones, full pitch on desktop

No third-party JS, no banner iframes, no layout shift — just a fast, targeted, schedulable bar that works on both Hyva and Luma out of the box.


What you get

Panth Notification Bar delivers a complete announcement, promo, and countdown bar toolkit for Magento 2.

  • Unlimited bars with automatic stacking and a global max-visible cap.
  • Four positions: top fixed, top static, bottom fixed, and bottom floating.
  • Live countdown timers, CTA buttons, icons, and gradient or solid backgrounds.
  • Targeting by store view, customer group, country, device, page, and URL.
  • Schedule windows and dismissible cookie memory per bar.
  • Native Hyvä and Luma rendering with zero manual configuration.

Key Features

Unlimited Bars with Stacking

  • Create unlimited bars — each with its own content, position, style, and audience
  • Automatic stacking — multiple bars stack vertically in priority order
  • Max visible cap — global setting limits how many bars show at once per page
  • Bar typesinfo, warning, success, promo, urgent, custom with preset theme colors

Positioning

  • Top fixed — sticks to the top of the viewport as the user scrolls
  • Top static — sits at the top of the page but scrolls away with content
  • Bottom fixed — sticks to the bottom of the viewport
  • Bottom floating — floating pill at the bottom for subtle announcements

Rich Content & Styling

  • HTML content — full HTML / rich text per bar with mobile-specific override
  • Solid color, gradient, or image background — every bar can be styled independently
  • Text color, font size, height, padding — fine-tune every visual
  • Icon support — drop in an icon name for an at-a-glance indicator
  • Custom CSS — inject per-bar CSS for total design control
  • Theme color presets — the module ships with 5 preset palettes (info, success, warning, promo, urgent)

CTA Buttons

  • Optional CTA button per bar with label, URL, and background / text colors
  • Open in new tab toggle
  • Button styling inherits bar colors or can be fully overridden

Live Countdown Timers

  • End-date countdown — renders a live days : hours : minutes : seconds counter
  • Custom label — prefix the counter with any text (e.g. "Sale ends in")
  • Expired text — a fallback message shown after the countdown hits zero
  • Runs entirely client-side — no server polling, no extra requests

Targeting (Who Sees What)

  • Store views — scope bars to specific stores or all stores
  • Customer groups — target logged-in groups, guests, or any subset
  • Country targeting — geo-target by ISO country codes
  • Page targeting — show on all pages, include specific URLs, or exclude specific URLs
  • Page types — cms, category, product, cart, checkout, customer account, etc.
  • URL patterns — wildcards supported (e.g. /sale/*, /brand/nike*)
  • URL parameters — show only when ?utm_campaign=xyz or any key=value is present
  • Device targeting — show/hide on mobile or desktop independently
  • Separate mobile content — shorter copy for small screens when needed

Scheduling

  • Active-from / active-to dates — bars automatically appear and expire
  • Auto-close seconds — dismiss the bar automatically after N seconds
  • Animation inslide_down, fade_in, or none

Dismissal & Cookie Memory

  • Dismissible toggle per bar
  • Cookie duration — remember a dismissal for N days (0 = session)
  • Dismissed bars stay hidden for the configured window even across pages

Hyva + Luma Dual Support

  • Hyva template — Alpine.js only, zero jQuery, Tailwind-friendly classes
  • Luma template — vanilla JS, no heavy libraries
  • Automatic theme detection via Panth\Core\Helper\Theme
  • Rendered in after.body.start so the bar is painted before the header flicker

Performance & Quality

  • MEQP compliant — passes Adobe's Extension Quality Program
  • Ifconfig-gated — the block is not built at all when the module is disabled
  • Single database table with indexed is_active, position, date_from/to, bar_type, sort_order
  • Composer-installable — clean dependency resolution via Panth Core
  • Multi-store & multi-language ready

Creating Notification Bars

1. Add a Bar

  1. Go to Panth Infotech → Notification Bar → Manage Bars
  2. Click Add New Bar
  3. Enter an admin Name (internal reference) and toggle Is Active
  4. Pick Bar Type (preset palette) and Position
  5. Write the Content (HTML allowed) — add a Mobile Content override if desired
  6. Style the bar — background type (color / gradient / image), text color, font size, height, padding, icon, optional custom CSS
  7. (Optional) Enable CTA Button and set its label, URL, new-tab flag, and colors
  8. (Optional) Enable Countdown and set the end datetime, prefix label, and expired-text fallback
  9. (Optional) Set Active From / Active To dates for automatic scheduling
  10. Set Targeting — store views, customer groups, page targeting mode (all / specific / exclude), target URLs, page types, countries, URL params
  11. Set Device visibility — show on mobile, show on desktop
  12. Set Dismissal — dismissible, cookie duration
  13. Set Animation, optional Auto Close Seconds, and Sort Order
  14. Click Save Bar

2. Preview

  • Flush cache: bin/magento cache:flush
  • Load any storefront page — bars matching the current visitor's audience, schedule, device, URL, and country will render in after.body.start before the header paints.

Positions, Stacking & Priority

The four positions determine where a bar renders:

Position Behavior Best For
top_fixed Sticky bar pinned to the top of the viewport Flash sales, urgent announcements
top_static Top of the page, scrolls away with content Seasonal greetings, generic info
bottom_fixed Sticky bar pinned to the bottom of the viewport Free shipping threshold, live offers
bottom_floating Floating pill at the bottom, rounded corners Social proof, newsletter nudge

Stacking — when Stack Multiple Bars is enabled, all qualifying bars render together in Sort Order ascending (lowest first). The global Max Visible Bars caps the total rendered. When stacking is disabled, only the single highest-priority qualifying bar is shown.


Countdown Timers

Any bar can show a live countdown timer:

  1. Enable Countdown
  2. Set the Countdown End Date (datetime, store timezone)
  3. Optionally set a Countdown Label (e.g. "Flash sale ends in")
  4. Optionally set Countdown Expired Text to display once the timer hits zero (e.g. "Sale has ended.")

The counter runs 100% client-side in Alpine (Hyva) or vanilla JS (Luma) — no server polling, no ticker AJAX. When the countdown expires, either the expired text is shown or the bar auto-removes itself if Auto Close Seconds is configured.


Targeting & Scheduling

Schedule

  • Active From / Active To — bars are server-filtered by date range, so they do not render at all outside the window (no layout shift, no JS flash).

Audience

Field Accepted Value Example
Store IDs Comma-separated store IDs, 0 = all 1,2
Customer Groups Comma-separated customer group IDs 0,1,3 (guest + general + retailer)
Target Countries Comma-separated ISO country codes US,CA,GB

Page Rules

  • Page Targetingall, specific, or exclude
  • Target URL Patterns — comma-separated paths, wildcards with * (e.g. /sale/*, /brand/nike*)
  • Target Page Typescms, catalog_category, catalog_product, checkout_cart, checkout_onepage, customer_account, etc.
  • Target URL Paramskey=value pairs (e.g. utm_campaign=spring2026)

Device

  • Show on Mobile — toggle
  • Show on Desktop — toggle
  • Mobile Content — optional separate content for small screens

Dismissal & Cookie Memory

When Is Dismissible is enabled, the bar shows a close (×) button. Once dismissed:

  • Dismissal is written to a cookie
  • Cookie Duration (days) controls how long the dismissal persists — 0 means session-only (cleared when the browser closes)
  • Dismissed bars are not re-rendered on subsequent pages until the cookie expires or the bar's content changes

For transient bars (flash sale countdown), pair a short cookie duration (e.g. 1 day) with Auto Close Seconds so even undismissed bars hide after a moment.


CSS Theming

Preset theme colors for each bar_type live in etc/theme-config.json:

{
 "notification-bar-info-bg": "#1E40AF",
 "notification-bar-info-text": "#FFFFFF",
 "notification-bar-success-bg": "#065F46",
 "notification-bar-success-text": "#FFFFFF",
 "notification-bar-warning-bg": "#92400E",
 "notification-bar-warning-text": "#FFFFFF",
 "notification-bar-promo-bg": "#0D9488",
 "notification-bar-promo-text": "#FFFFFF",
 "notification-bar-urgent-bg": "#DC2626",
 "notification-bar-urgent-text": "#FFFFFF"
}

Override from your theme's CSS using the standard CSS custom properties:

:root {
 --notification-bar-z-index: 9999;
 --notification-bar-font-size: 14px;
 --notification-bar-padding: 10px 20px;
 --notification-bar-transition: 300ms ease-out;
 --notification-bar-cta-radius: 4px;
}

Per-bar Custom CSS (injected inline) is the quickest escape hatch for one-off designs without touching the theme.


Troubleshooting

Issue Cause Resolution
Bar not rendering Module disabled or global switch off Verify Stores → Configuration → Panth Extensions → Notification Bar → Enabled = Yes
Bar not visible but in admin Failed audience / schedule / page filter Re-check store, customer group, country, page targeting, and from/to dates
Bar flashes then disappears Conflicting bar on same position without stacking Enable Stack Multiple Bars or lower Sort Order of the priority bar
Countdown stuck End date in the past Update the end datetime and flush cache
Dismissed bar never returns Cookie still active Lower Cookie Duration or clear cookies
Wrong layer order with fixed header Theme's fixed header has a higher z-index Increase Z-Index global setting (or per-bar custom CSS)
Old template after theme switch Cached layout/view files Run bin/magento cache:flush and redeploy static content
Bar appears on checkout when not wanted Page targeting set to all Switch to exclude and add /checkout/*, /onestepcheckout/*, etc.

Enable Debug Mode in Panth Core Settings to get verbose logs in var/log/panth_notification_bar.log.


Compatibility

Requirement Versions Supported
Magento Open Source 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce Cloud 2.4.4 — 2.4.8
PHP 8.1.x, 8.2.x, 8.3.x, 8.4.x
MySQL 8.0+
MariaDB 10.4+
Hyva Theme 1.3+ (Alpine.js template)
Luma Theme Native support
Required Dependency mage2kishan/module-core

Tested on:

  • Magento 2.4.8-p4 with PHP 8.4 (Hyva 1.3.x)
  • Magento 2.4.7 with PHP 8.3 (Luma)
  • Magento 2.4.6 with PHP 8.2 (Hyva)

Installation

Composer Installation (Recommended)

composer require mage2kishan/module-notification-bar
bin/magento module:enable Panth_Core Panth_NotificationBar
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

Manual Installation via ZIP

  1. Download the latest release ZIP from Packagist or the Adobe Commerce Marketplace
  2. Extract the contents to app/code/Panth/NotificationBar/ in your Magento installation
  3. Ensure Panth_Core is also installed (required dependency)
  4. Run the same commands as above starting from bin/magento module:enable

Verify Installation

bin/magento module:status Panth_NotificationBar
# Expected output: Module is enabled

After installation, navigate to:

Admin → Panth Infotech → Notification Bar → Manage Bars

Configuration

Global settings live at Stores → Configuration → Panth Extensions → Notification Bar. Per-bar behavior is configured on each bar edit page.

Global Settings

Section Option Default Description
General Enable Notification Bar Yes Master switch for the module
General Max Visible Bars 3 Maximum bars rendered simultaneously per page
Display Default Position top_fixed Fallback position for new bars
Display Stack Multiple Bars Yes Stack bars vertically — if off, only the highest-priority bar is shown
Display Default Animation slide_down slide_down, fade_in, or none
Display Z-Index 9999 CSS stacking for the bar container

Per-Bar Options (Summary)

  • Content — HTML bar message (with optional separate mobile content)
  • Positiontop_fixed, top_static, bottom_fixed, bottom_floating
  • Bar Typeinfo, warning, success, promo, urgent, custom
  • Background — solid color, gradient CSS, or uploaded image
  • Text color, font size, height, padding, icon, custom CSS
  • CTA — enable/disable, label, URL, open-in-new-tab, button colors
  • Countdown — enable, end datetime, label prefix, expired fallback text
  • Schedule — active-from and active-to dates
  • Targeting — stores, customer groups, page-targeting mode, target URLs / page types / countries / URL params
  • Device — show on mobile, show on desktop, mobile-specific content
  • Dismissal — dismissible toggle, cookie duration (days; 0 = session)
  • Animationslide_down, fade_in, or none, plus optional auto-close seconds
  • Sort Order — priority for stacking / single-bar selection

License

Panth Notification Bar is distributed under a proprietary license — see LICENSE.txt. One license covers a single Magento installation (production + staging + dev). Contact us for multi-store licensing.


More Information
Module Category Marketing
Best For All Sizes

Need this customised?

Talk to Kishan directly — written quote, scope and timeline within 24 hours. No sales call.

WhatsApp

Notification Bar for Magento 2

$0.00
Step up

Customers usually upgrade to