Download the PHP package cleverage/sylius-dpd-plugin without Composer
On this page you can find all versions of the php package cleverage/sylius-dpd-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cleverage/sylius-dpd-plugin
More information about cleverage/sylius-dpd-plugin
Files in cleverage/sylius-dpd-plugin
Package sylius-dpd-plugin
Short Description Simple DPD REST Plugin for Sylius
License MIT
Informations about the package sylius-dpd-plugin
CleverAge/SyliusDpdPlugin
Introduction
This sylius plugin allows you to manage parcel shipments with DPD.
You can define DPD pickup points
delivery method.
For pickup point deliveries, an interactive map with the list of pickup points is generated according to the delivery address entered the tunnel by the user.
Usage
TODO add screenshots
Installation
Step 1: Install and enable plugin
Open a command console, enter your project directory and execute the following command to download the latest stable version of this plugin:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Add bundle to your config/bundles.php
:
Step 2: Import routing and configs
Import routing
`
Import application config
`
Step 3: Update templates
Admin section
Add the following to the admin template SyliusAdminBundle/Order/Show/_shipment.html.twig
after shipment header:
See an example here.
Shop section
Add the following to the shop template SyliusShopBundle/Checkout/SelectShipping/_choice.html.twig
See an example here.
Next add the following to the shop template SyliusShopBundle/Common/Order/_shipments.html.twig
after shipment method header:
See an example here.
Step 4 : Update styles, scripts and install assets
Add the following to the shop template SyliusShopBundle/_styles.html.twig
See an example here.
Next the following to the shop template SyliusShopBundle/_scripts.html.twig
See an example here.
Install assets
Step 5 : Customize resources
Shipping method resource
If you haven't extended the shipping method resource yet, here is what it should look like :
Order resource
If you haven't extended the order resource yet, here is what it should look like :
You can read about extending resources here.
Update shipping and order resources config
Next you need to tell Sylius that you will use your own extended resources :
Step 6 : Update database schema
Step 7 : Configure plugin
Enjoy now !
All versions of sylius-dpd-plugin with dependencies
sylius/sylius Version ~1.8.0 || ~1.9.0
ext-simplexml Version *
ext-json Version *