Skip to content
Exports shipments to CSV and mark as sent, works with Czech Post and Geis
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
doc
features
src
tests
.editorconfig
.gitignore
.travis.yml
README.md
behat.yml.dist
composer.json
easy-coding-standard.yml
logo.png
node_modules
phpstan.neon
phpunit.xml.dist

README.md

Shipment Export Plugin

Features

  • See list of all unshipped orders
  • Mark more orders at once as shipped
  • Download CSV for submitting batch shipments with Geis
  • Download CSV for submitting batch shipments with Czech Post
  • You can easily extend the module to support custom CSV format for other shipping providers

Installation

  1. Run $ composer require mangoweb-sylius/sylius-shipment-export-plugin.
  2. Register \MangoSylius\ShipmentExportPlugin\MangoSyliusShipmentExportPlugin in your Kernel.
  3. Import @MangoSyliusShipmentExportPlugin/Resources/config/routing.yml in the routing.yml.
mango_sylius_shipment_export_plugin:
    resource: "@MangoSyliusShipmentExportPlugin/Resources/config/routing.yml"
    prefix: /admin

Usage

You can use predefined CSV type for shipment providers Geis and Czech Post) or write your own exporter.

Your custom exporter has to implement MangoSylius\ShipmentExportPlugin\Model\ShipmentExporterInterface and must be defined as service. Check out our sample implementations.

Predefined shipping providers:

  • Czech post
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'

Development

Usage

  • Create symlink from .env.dist to .env or create your own .env file
  • Develop your plugin in /src
  • See bin/ for useful commands

Testing

After your changes you must ensure that the tests are still passing.

  • Easy Coding Standard
    bin/ecs.sh
  • PHPStan
    bin/phpstan.sh

License

This library is under the MIT license.

Credits

Developed by manGoweb.

You can’t perform that action at this time.