Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 1.55 KB

README.md

File metadata and controls

54 lines (43 loc) · 1.55 KB

Overview

This simple Sylius plugin is based on top of the BitBag ShippingExportPlugin and provides connection to Balikonos.cz external API. For more information about BitBag ShippingExportPlugin read this blog post.

Prerequisites

For proper Balikonos.cz exports you have to know:

  • collection_place_code
  • client_id
  • client_secret (client password)
  • refresh_token

I recommend you to read official documentation

Installation

$ composer require bitbag/shipping-export-plugin:dev-master
$ composer require czende/balikonos-shipping-export-plugin

Add plugin dependencies to your AppKernel.php file:

public function registerBundles()
{
    return array_merge(parent::registerBundles(), [
        ...

        new \BitBag\ShippingExportPlugin\ShippingExportPlugin(),
        new \Czende\BalikonosShippingExportPlugin\BalikonosShippingExportPlugin(),
    ]);
}

Add to app/config/config.yml:

imports:
    ...

    - { resource: "@ShippingExportPlugin/Resources/config/config.yml" }

Add to app/config/routing.yml:

bitbag_shipping_export_plugin:
    resource: "@ShippingExportPlugin/Resources/config/routing.yml"
    prefix: /admin

Update database:

$ bin/console doctrine:schema:update --force

Contribution

Learn more about our contribution workflow on http://docs.sylius.org/en/latest/contributing/