Adds a simple message on top of your shop.
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.
Require the plugin using composer
composer require monsieurbiz/sylius-alert-message-plugin
Copy the configuration and routing files:
cp -Rv vendor/monsieurbiz/sylius-alert-message-plugin/recipe/dev/config/* config/
Declare the plugin in your
<?php return [ // … MonsieurBiz\SyliusAlertMessagePlugin\MonsieurBizSyliusAlertMessagePlugin::class => ['all' => true], ];
Generate & Run Doctrine migrations
./bin/console doctrine:migration:diff ./bin/console doctrine:migration:migrate
You just have to go in the Alert Messages section in your admin panel and add new message(s)!
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.
You can open an issue or a Pull Request if you want! 😘