Skip to content

About

Generate the delivery labels for Colissimo

Topics

Resources

Security policy

Stars

2 stars

Watchers

5 watching

Forks

Repository files navigation

ColissimoLabel

Allows you to generate labels for orders passed with ColissimoHomeDelivery and ColissimoPickupPoint.

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is ReadmeTest.
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/colissimo-label-module:~2.0.1

Usage

Activating the module will add a button "ColissimoLabel" tor your left toolbar. Clicking it will redirect you to the module page, which has 3 tabs.

  • Bordereau tab : Allows you to generate a bordereau for every label generated since the last time you made a bordereau
  • Label tab : Shows you the list of not sent orders, allowing you to generate labels for them, or to view ones that already exists
  • Configuration tab : Lets you configure your module

The module also includes a new part to the delivery tab of the order edit page, allowing you to see every label created for this order, as well as create new ones.

Hook

  • order.edit-js : This hook is used to add a label list and label generation interface to the order edit page.

  • main.in-top-menu-items : Adds a button that redirects to the module page, in the left toolbar

Loop

If your module declare one or more loop, describe them here like this :

[colissimolabel.label-info]

Input arguments

Argument Description
order_id An order ID

Output arguments

Variable Description
$ORDER_ID The order ID
$HAS_ERROR (bool) Whether an error occured during the label generation or not
$ERROR_MESSAGE The error message
$WEIGHT The weight indicated on the label
$SIGNED (bool) Whether the label is a signed one or not
$TRACKING_NUMBER The order tracking number
$HAS_LABEL (bool) Whether the order has a label or not
$LABEL_TYPE The file extension of the label
$HAS_CUSTOMS_INVOICE (bool) Whether a customs invoice was created or not
$LABEL_URL The URL from which to download the URL
$CUSTOMS_INVOICE_URL The URL from which to download the customs invoice
$CLEAR_LABEL_URL URL to POST to delete the label, with _token, number (tracking number) and optionally edit-order and order_id
$CAN_BE_NOT_SIGNED (bool) Whether the order HAS to be signed or not
$ORDER_DATE The order date

[colissimolabel.orders-not-sent]

Input arguments

Argument Description
with_prev_next_info See Thelia documentation

Output arguments

Same as an order loop, but only order that weren't sent or cancelled and that are paid for will be searched for.

Changes in 3.1.1

  • The contract password is no longer shown in the configuration form. Leave the field empty to keep the saved password.

Changes in 3.1.0

  • Deleting a label is a POST with a token (_token, number), no longer a GET link.
  • Generating and deleting a bordereau are POST requests with a token.
  • $CLEAR_LABEL_URL is now the URL to POST to, not a link to follow.
  • The back-office lists are rendered with the theme data table.

Other ?

If you have other think to put, feel free to complete your readme as you want.

About

Generate the delivery labels for Colissimo

Topics

Resources

Security policy

Stars

2 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages