monsieurbiz/sylius-alert-message-plugin

Adds a simple message on top of your shop.


README

68747470733a2f2f6d6f6e736965757262697a2e636f6d2f6c6f676f2e706e67      68747470733a2f2f64656d6f2e73796c6975732e636f6d2f6173736574732f73686f702f696d672f6c6f676f2e706e67

Alert Message

Alert Message Plugin license Tests Scrutinizer Code Quality

This plugins allows you to add simple messages on your shop.
The messages can be different for logged-in customers.

The message is displayed just after the opening body. You can change the HTML template directly in the admin panel.
By default it'll use the Semantic UI classes.

Installation

  1. Require the plugin using composer

    composer require monsieurbiz/sylius-alert-message-plugin
  2. Copy the configuration and routing files:

    cp -Rv vendor/monsieurbiz/sylius-alert-message-plugin/recipe/dev/config/* config/
  3. Declare the plugin in your config/bundles.php:

    <?php
    return [
        // …
        MonsieurBiz\SyliusAlertMessagePlugin\MonsieurBizSyliusAlertMessagePlugin::class => ['all' => true],
    ];
  4. Generate & Run Doctrine migrations

    ./bin/console doctrine:migration:diff
    ./bin/console doctrine:migration:migrate
    

How it works

You just have to go in the Alert Messages section in your admin panel and add new message(s)!

Examples

You could use this plugin to:

  • Tell your customer how you are dealing with an epidemic outbreak.
  • Make a legal announcement.
  • Give all your logged-in customers a very attractive coupon code.

Being able to add a well seen message on your shop can be useful.

Testing

See TESTING.md.

Contributing

You can open an issue or a Pull Request if you want! 😘
Thank you!