artesanik/sylius-employee-plugin
Composer 安装命令:
composer require artesanik/sylius-employee-plugin
包简介
Employee information for Customers plugin for Sylius.
关键字:
README 文档
README
Plugin Employee
Plugin for company internal stores for employees.
Documentation
This plugin is simple add four fields to the customer model: EmployeeId, Position, Office and Company
This informatión can be edited in the Admin shop interface.
The user can see this information but isn't allowed to modify this information.
That is for securing the information.
It has two translations:
- English
- Spanish
More translations are welcome as PR.
It have a top limit control, you can create Limits in money or quantity and apply to the employees.
And you can put an employee excluded from the limit, all this from the admin dashboard.
Installation
- Require plugin with composer
composer require artesanik/sylius-employee-plugin
- Register the Plugin in config/bundles.php:
....
Artesanik\SyliusEmployeePlugin\ArtesanikSyliusEmployeePlugin::class => ['all' => true],
....
- create a file sylius_employee_plugin.yaml in config/packages
cd config/packages
touch sylius_employee_plugin.yaml
nano sylius_employee_plugin.yaml
- and put this lines inside:
imports:
- { resource: "@ArtesanikSyliusEmployeePlugin/Resources/config/config.yml" }
- create a file sylius_employee_plugin.yaml in config/routes
cd config/routes
touch sylius_employee_plugin.yaml
nano sylius_employee_plugin.yaml
- and put this lines inside
artesanik_sylius_employee_plugin:
resource: "@ArtesanikSyliusEmployeePlugin/Resources/config/routes.yml"
- Copy plugin migrations to your migrations directory (e.g. src/Migrations) and apply them to your database:
cp -R vendor/artesanik/sylius-employee-plugin/migrations/* src/Migrations
bin/console doctrine:migrations:migrate
remember to make a
bin/console cache:clear
At the end of the install
COMPLETED
- Add employee purchase budget [v0.3]
TODO
- Add EmployeeId to Order
- Add compatibility with SyliusLdapPlugin
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-09