Giter Club home page Giter Club logo

syliusmondialrelayplugin's Introduction

author [@Magentix] (https://github.com/magentix/SyliusMondialRelayPlugin)

SyliusMondialRelayPlugin

This Plugin allows to add the Mondial Relay delivery method to Sylius.

Features

  • Mondial Relay Pick-up delivery up to 150kg (24R, 24L, DRI)

  • Pick-up location in France, Belgium, Luxembourg, Germany and Spain

  • On-map or on-list pick-up selection

  • Configurable shipping rates based on weight

  • Direct shipping management through Mondial Relay web services (shipments registration, shipping labels downloading)

Overview

With over 40 million parcels delivered through its network of 6500 pick-up points in France (and more than 36000 in Europe) and home delivery services, Mondial Relay is a major actor of delivery to companies and individuals. Thousands of merchants use their services as well as the total control of the logistics process that Mondial Relay offers.

Screenshot

Alt text

Installation

Sylius >= 1.3.0

$ composer require waaz/sylius-mondial-relay-plugin:^1.3.0

Add the plugins to the config/bundles.php file:

BitBag\SyliusShippingExportPlugin\BitBagSyliusShippingExportPlugin::class => ['all' => true],
Magentix\SyliusPickupPlugin\MagentixSyliusPickupPlugin::class => ['all' => true],
Magentix\SyliusMondialRelayPlugin\MagentixSyliusMondialRelayPlugin::class => ['all' => true],

Add the plugin's config by creating the file config/packages/magentix_sylius_mondial_relay_plugin.yaml with the following content:

imports:
    - { resource: "@BitBagSyliusShippingExportPlugin/Resources/config/config.yml" }
    - { resource: "@MagentixSyliusPickupPlugin/Resources/config/config.yml" }
    - { resource: "@MagentixSyliusMondialRelayPlugin/Resources/config/config.yml" }

Add the plugin's routing by creating the file config/routes/magentix_sylius_mondial_relay_plugin.yaml with the following content:

magentix_sylius_pickup_plugin:
    resource: "@MagentixSyliusPickupPlugin/Resources/config/routing.yml"

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

Finish the installation by updating the database schema and installing assets:

bin/console doctrine:migrations:diff
bin/console doctrine:migrations:migrate
bin/console assets:install
bin/console sylius:theme:assets:install

Sylius < 1.3.0

$ composer require magentix/sylius-mondial-relay-plugin:^1.2.0

Add plugin dependencies to your AppKernel.php file:

# app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        ...
        new \BitBag\SyliusShippingExportPlugin\BitBagSyliusShippingExportPlugin(),
        new \Magentix\SyliusPickupPlugin\MagentixSyliusPickupPlugin(),
        new \Magentix\SyliusMondialRelayPlugin\MagentixSyliusMondialRelayPlugin(),
    ];
}

Import required config in your app/config/config.yml file:

# app/config/config.yml

imports:
    ...
    - { resource: "@BitBagSyliusShippingExportPlugin/Resources/config/config.yml" }
    - { resource: "@MagentixSyliusPickupPlugin/Resources/config/config.yml" }
    - { resource: "@MagentixSyliusMondialRelayPlugin/Resources/config/config.yml" }

Import routing in your app/config/routing.yml file:

# app/config/routing.yml
...

magentix_sylius_pickup_plugin:
    resource: "@MagentixSyliusPickupPlugin/Resources/config/routing.yml"

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

Deploy Assets:

php bin/console sylius:theme:assets:install

Configuration

In Shipping Method section from admin, add and configure new Method with Mondial Relay Calculator.

In Shipping Gateway section from admin, add and configure new Gateway with Mondial Relay Shipping Method.

API test

syliusmondialrelayplugin's People

Contributors

magentix avatar ehibes avatar anddezu avatar loic425 avatar

Watchers

florian avatar  avatar Andde Zudaire avatar

Forkers

loic425

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.