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.
Sylius Version | PHP Version |
---|---|
1.11 | 8.0 - 8.1 |
1.12 | 8.1 - 8.2 |
1.13 | 8.1 - 8.2 |
Beware!
This installation instruction assumes that you're using Symfony Flex.
If you want to use our recipes, you can configure your composer.json by running:
composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]'
-
Require the plugin using composer
composer require monsieurbiz/sylius-alert-message-plugin
-
Run Doctrine migrations
./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.
See TESTING.md.
You can open an issue or a Pull Request if you want! 😘
Thank you!