Search by

ronangr1 / module-flashmessages

ronangr1

Replace Magento 2 global messages system with flash messages.

Package info

github.com/ronangr1/magento2-flashmessages

Type:magento2-module

pkg:composer/ronangr1/module-flashmessages

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.7 2026-10-19 17:28 UTC

This package is auto-updated.

Last update: 2026-10-19 17:49:35 UTC


README

Latest Stable Version License: MIT Packagist Packagist

This module allows you to replace the Magento 2 global messages system with flash messages.

Setup

Magento 2 Open Source or Commerce edition is required.

This module is compatible with the latest Magento version (2.4.8).

Installation

composer require ronangr1/module-flashmessages

Then

bin/magento setup:upgrade
bin/magento setup:di:compile

Documentation

If enabled, the global messages system is completely removed and replaced by the flash message system.

How to display a flash message

require(['Ronangr1_FlashMessages/js/model/flash'], function (flash) {
    flash.add({
        type: 'error',
        message: 'Something went wrong while processing.'
    });
});

It already works with ajax call.

How to change the position of the flash message?

Go to Store > Configuration > Ronangr1 > Flash Messages > Settings > Position.

How to enable flash messages system ?

Go to Store > Configuration > Ronangr1 > Flash Messages > General > Enable

Support

Raise a new request to the issue tracker.

Authors

  • ronangr1 - Maintainer - GitHub followers
  • Contributors - Contributor - GitHub contributors

License

This project is licensed under the MIT License - see the LICENSE details.

That's all folks!