Download the PHP package cleverage/sylius-colissimo-plugin without Composer
On this page you can find all versions of the php package cleverage/sylius-colissimo-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cleverage/sylius-colissimo-plugin
More information about cleverage/sylius-colissimo-plugin
Files in cleverage/sylius-colissimo-plugin
Package sylius-colissimo-plugin
Short Description Colissimo plugin for Sylius.
License MIT
Informations about the package sylius-colissimo-plugin
CleverAge/SyliusColissimoPlugin
Introduction
This sylius plugin allows you to manage parcel shipments with colissimo.
You can define delivery methods such as colissimo pickup points
or colissimo home delivery
.
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/ShippingMethod/_form.html.twig
See an example here.
Next 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 !