3brs/sylius-order-comments-plugin
Composer 安装命令:
composer require 3brs/sylius-order-comments-plugin
包简介
Order comments plugin for Sylius
关键字:
README 文档
README
Create notes and send emails from the Sylius admin order detail page.
Features
- Create notes on order details
- Send personalized email to the addressee of the order
Requirements
| Package | Version |
|---|---|
| PHP | >=8.2 |
| Sylius | ^2.0 |
This branch (
2.2) supports Sylius 2.0, 2.1, and 2.2 on PHP 8.2/8.3. For Sylius 1.12–1.14, use branch1.14. For Sylius 1.10–1.11, use branch1.11. For Sylius 1.7–1.9, use branch1.9.
Installation
-
Run
composer require 3brs/sylius-order-comments-plugin. -
Add plugin class to your
config/bundles.php:return [ // ... ThreeBRS\OrderCommentsPlugin\ThreeBRSOrderCommentsPlugin::class => ['all' => true], ];
-
Import plugin config in
config/packages/_sylius.yaml:imports: # ... - { resource: "@ThreeBRSOrderCommentsPlugin/config/config.yml" }
-
Add routing to
config/routes/sylius_admin.yaml:threebrs_order_comments_plugin: resource: "@ThreeBRSOrderCommentsPlugin/config/routing.yml" prefix: /admin
-
Create and run doctrine database migrations. If you are upgrading from the
mangoweb-sylius/sylius-order-comments-pluginpackage, generate a migration that renames the tablemangoweb_order_messagetothreebrs_order_message.
The order comments form and message list are automatically added to the admin order show page via Twig Hooks. No template overrides needed.
Usage
- Comment can be written from the order detail page.
- If "Send to customer" is checked, an email is sent to the customer's email address.
Development
make run # Start Docker, install deps, build assets, set up DB make tests # Run PHPStan, PHPUnit, Behat make fixtures # Reset DB and load sample data make bash # Enter PHP container
License
This library is under the MIT license.
Credits
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-23