artesanik/sylius-employee-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Require plugin with composer
composer require artesanik/sylius-employee-plugin
  1. Register the Plugin in config/bundles.php:
....
Artesanik\SyliusEmployeePlugin\ArtesanikSyliusEmployeePlugin::class => ['all' => true],
....
  1. 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" }
  1. 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"
  1. 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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固