magentix / sylius-pickup-plugin
此包已被弃用且不再维护。未建议替代包。
Sylius取货配送插件。
1.3.0
2018-11-13 15:22 UTC
Requires
- php: ^7.2
- sylius/sylius: ~1.3
Requires (Dev)
- phpspec/phpspec: ^4.0
- phpunit/phpunit: ^6.5
- sylius-labs/coding-standard: ^2.0
README
- 此插件是一个通用的插件,允许添加取货配送功能。
- 查看 取货演示插件 以了解实现示例。
安装
$ composer require magentix/sylius-pickup-plugin
将插件添加到 config/bundles.php
文件。
Magentix\SyliusPickupPlugin\MagentixSyliusPickupPlugin::class => ['all' => true],
创建文件 config/packages/magentix_sylius_pickup_plugin.yaml
并添加插件配置,内容如下:
imports: - { resource: "@MagentixSyliusPickupPlugin/Resources/config/config.yml" }
创建文件 config/routes/magentix_sylius_pickup_plugin.yaml
并添加插件的路由,内容如下:
magentix_sylius_pickup_plugin: resource: "@MagentixSyliusPickupPlugin/Resources/config/routing.yml"
通过更新数据库模式和安装资源完成安装。
bin/console doctrine:migrations:diff bin/console doctrine:migrations:migrate bin/console assets:install bin/console sylius:theme:assets:install