monsieurbiz / sylius-alert-message-plugin
Adds a simple message on top of your shop.
Installs: 15 609
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 8
Forks: 6
Open Issues: 3
Type:sylius-plugin
Requires
- php: ^8.0
- sylius/sylius: >=1.11 <1.14
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.16
- phpmd/phpmd: ^2.15
- phpspec/phpspec: ^7.0
- phpstan/phpstan: ^1.8.4
- phpstan/phpstan-doctrine: ^1.3.2
- phpstan/phpstan-webmozart-assert: ^1.1
- phpunit/phpunit: ^10.5
README
Sylius Alert Message
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.
Compatibility
Installation
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
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.
Admin form
Testing
See TESTING.md.
Contributing
You can open an issue or a Pull Request if you want! 😘
Thank you!