Download the PHP package setono-custom/sylius-pickup-point-plugin-local without Composer

On this page you can find all versions of the php package setono-custom/sylius-pickup-point-plugin-local. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sylius-pickup-point-plugin-local

Sylius Pickup Point Plugin

Latest Version Latest Unstable Version Build Status

Add a <select> that contains pickup points to your select shipping checkout step.

Supported providers

Screenshots

Shop

This is the shipping method step in the checkout process where you can choose a pickup point.

On the complete order step in checkout you can see the pickup point you have chosen.

Admin

On the order you can see what pickup point the customer has chosen.

When you edit shipping method you can associate a pickup point provider to that shipping method.

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

`

(Optional) Import fixtures to play in your app

`

Step 3: Update templates

Add the following to the admin template SyliusAdminBundle/ShippingMethod/_form.html.twig

See an example here.

Next add the following to the shop template SyliusShopBundle/Checkout/SelectShipping/_shipment.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.

Next add the following to the admin template SyliusAdminBundle/Order/Show/_shipment.html.twig after shipment header:

See an example here.

Step 4: Customize resources

Shipment resource

If you haven't extended the shipment resource yet, here is what it should look like:

Shipping method resource

If you haven't extended the shipping method resource yet, here is what it should look like:

You can read about extending resources here.

Update shipping resources config

Next you need to tell Sylius that you will use your own extended resources:

Step 5: Configure plugin

Enable desired providers

Note that:

If you want to use cache

Cache disabled by default. To enable it, make next configuration:

Step 6: Update database schema

Step 7: Update validation groups

Add checkout_select_shipping to sylius.form.type.checkout_select_shipping.validation_groups:

Step 8: Install assets

Play

To see pickup points list, use next example address at checkout:

Note, that providers have their pickup points only at given countries:

So, to play with all 3 providers at once - use DK address.

Troubleshooting


All versions of sylius-pickup-point-plugin-local with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3
sylius/sylius Version ^1.3
symfony/config Version ^4.4 || ^5.0
symfony/intl Version ^4.4 || ^5.0
symfony/messenger Version ^4.4 || ^5.0
thecodingmachine/safe Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package setono-custom/sylius-pickup-point-plugin-local contains the following files

Loading the files please wait ....