Download the PHP package thelia/dpd-classic-module without Composer

On this page you can find all versions of the php package thelia/dpd-classic-module. 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 dpd-classic-module

Dpd Classic

Installation

Manually

Composer

Add it in your main thelia composer.json file:

Usage

Once activated, you have to configure the module.

In the "Configure sender address", set the address from where orders will be sent (mainly your enterprise address).

In the "Price slices" tab, configure shipping fees depending on the cart's weight. You can also activate free shipping here.

Don't forget to assign the module to your shipping zones.

When customers order with this delivery method and when their orders are paid, orders appear in the "Export" tab. Here you can export them and select a new status for them.

Once you have exported orders and set them a delivery reference, you can import them in the "Import" tab.

When consulting an order done with DPD Classic, you can export it from the module tab of the order details.

Hook

Apart from module configuration, another hook is used to allow you to export one order. You can find it in the order detail page, in the "Modules" tab.

Loop

[dpdclassic.delivery]

Can be used to replace the "delivery" to check if the delivery module is DPD Classic for a specific integration.

Extends the delivery loop and has the same inputs and outputs, plus a MODULE_ID output representing DpdClassic module ID.

[dpdclassic.check.rights]

Used to check rights on the module.

Output arguments

Variable Description
$ERRMES Error message
$ERRFILE File on which user don't have rights

Example

{loop name="checkrights" type="dpdclassic.check.rights"}

{$ERRMES} {$ERRFILE} | {intl l="Please change the access rights"}.

{/loop}

{elseloop rel="checkrights"} Do something {/elseloop}

[dpdclassic.orders]

Extends the order loop and has the same inputs and outputs, but only returns orders done with DpdClassic module and with paid or processing status.

[dpdclassic]

Returns slices of weight and corresponding prices of DpdClassic.

Input arguments

Variable Description
area ID of the area from which you want prices

Output arguments

Variable Description
$MAX_WEIGHT Limit of the weight slice
$PRICE Price of the weight slice

[dpdclassic.urltracking]

Used for order tracking

Input arguments

Variable Description
ref Reference of the order you want to track

Output arguments

Variable Description
$URL URL for order tracking

Example

{loop name="tracking" type="dpdclassic.urltracking" ref=$REF} {intl l="Track parcel"} {intl l="here"} {/loop}


All versions of dpd-classic-module with dependencies

PHP Build Version
Package Version
Requires thelia/installer Version ~1.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 thelia/dpd-classic-module contains the following files

Loading the files please wait ....