Download the PHP package asdoria/sylius-pickup-point-plugin without Composer

On this page you can find all versions of the php package asdoria/sylius-pickup-point-plugin. 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

Asdoria Sylius Pickup Point Plugin

This plugin allows you to retrieve and use pickup points from different providers in your Sylius Shop

![Pickup Point Plugin](doc/presentation.gif)

Installation

Require plugin with composer:

Register bundles in config/bundles.php:

Import configuration:

Import routes:

Paste the following content to the src/Entity/Shipping/Shipment.php file:

If you don't use annotations, add Shipment.orm.xml:

Paste the following content to the src/Entity/Shipping/ShippingMethod.php file:

If you don't use annotations, add ShippingMethod.orm.xml:

Tell Sylius to use your own extended resources in config/packages/_sylius.yaml:

Update schema database

Run following commands:

Front

0/ Admin

Add {{ form_row(form.pickupPointProvider) }} in ShippingMethod form. You can copy the template overrides from the plugin directory :

1/ Steps

1) In templates/bundles/SyliusShopBundle/Checkout/selectShipping.html.twig, put react instance element with class react-pickup-point and locale with data-pkp-locale="{{ app.request.locale }}"

2) In templates/bundles/SyliusShopBundle/Checkout/SelectShipping/_shipment.html.twig, put <input type="hidden"> with class react-pickup-point-input-hidden

3) In your JS context, you must create a new entrypoint in webpack.

4) In templates/bundles/SyliusShopBundle/Checkout/selectShipping.html.twig, call javascripts and stylesheets events, and pickup-point script after other scripts.

5) Create the file assets/shop/js/app/pickup-point.js

6) Map will teleport in current choice of provider. To do it, in templates/bundles/SyliusShopBundle/Checkout/SelectShipping/_choice.html.twig put class react-parent-teleport-pickup-point in choice container, and class react-teleport-pickup-point in a child <div> of this container.

7) Create file config/routes/js_translation.yaml

2/ Options

Data attribute Value Explication Default Value
data-pkp-height px Set height of map 400px
data-pkp-height-mobile px Set height of map on mobile 250px
data-pkp-marker-icon string Set marker icon with path /bundles/asdoriasyliuspickuppointplugin/images/marker-icon.png
data-pkp-zoom int Set zoom of map 13
data-pkp-filter-shop 0 or 1 Enable shops filter 0
data-pkp-zoom-control 0 or 1 Display zoom controls 1
data-pkp-scroll-wheel-zoom 0 or 1 Enable zoom on scroll 0
data-pkp-zoom-control-position bottomleft, topright, etc... Position of zoom controls bottomright

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

PHP Build Version
Package Version
Requires php Version ^8.0
ext-soap Version *
ext-simplexml Version *
setono/sylius-pickup-point-plugin Version ^1.3
friendsofsymfony/jsrouting-bundle Version ^3.3
willdurand/js-translation-bundle Version ^5.1
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 asdoria/sylius-pickup-point-plugin contains the following files

Loading the files please wait ....