mangoweb-sylius/sylius-shipment-export-plugin

此软件包已被废弃,不再维护。作者建议使用3brs/sylius-shipment-export-plugin软件包。

Sylius的货运出口插件


README

38423357?s=200&v=4

货运出口插件
68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d616e676f7765622d73796c6975732f73796c6975732d736869706d656e742d6578706f72742d706c7567696e2e737667 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616e676f7765622d73796c6975732f73796c6975732d736869706d656e742d6578706f72742d706c7567696e2e737667 68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d616e676f7765622d73796c6975732f53796c697573536869706d656e744578706f7274506c7567696e2f6d61737465722e737667

功能

  • 查看所有准备发货的订单列表(离线支付方式或完成非离线方式的支付)
  • 一次性标记更多订单为已发货
  • 下载CSV文件以向Geis提交批量货运
  • 下载CSV文件以向捷克邮政提交批量货运
  • 您可以轻松扩展模块以支持其他货运提供商的定制CSV格式

menu.png

list.png

安装

  1. 运行$ composer require mangoweb-sylius/sylius-shipment-export-plugin
  2. 在您的Kernel中注册\MangoSylius\ShipmentExportPlugin\MangoSyliusShipmentExportPlugin
  3. 在routing.yml中导入@MangoSyliusShipmentExportPlugin/Resources/config/routing.yml
mango_sylius_shipment_export_plugin:
    resource: "@MangoSyliusShipmentExportPlugin/Resources/config/routing.yml"
    prefix: /admin

使用

您可以使用预定义的CSV类型(Geis和捷克邮政)或编写自己的导出器。

您的自定义导出器必须实现MangoSylius\ShipmentExportPlugin\Model\ShipmentExporterInterface并定义为服务。查看我们的示例实现。

预定义的货运提供商

  • 捷克邮政
MangoSylius\ShipmentExportPlugin\Model\CeskaPostaShipmentExporter:
    public: true
    arguments:
        $currencyConverter: '@sylius.currency_converter'    
    tags:
        - name: mango_sylius.shipment_exporter_type
          type: 'ceska_posta'
          label: 'Česká pošta'
  • Geis
MangoSylius\ShipmentExportPlugin\Model\GeisShipmentExporter:
    public: true
    arguments:
        $currencyConverter: '@sylius.currency_converter'
    tags:
        - name: mango_sylius.shipment_exporter_type
          type: 'geis'
          label: 'Geis'

开发

使用

  • /src中开发您的插件
  • 查看bin/以获取有用的命令

测试

在您的更改后,您必须确保测试仍在通过。

$ composer install
$ bin/phpstan.sh
$ bin/ecs.sh

许可证

此库受MIT许可证的约束。

致谢

manGoweb开发。