thelia/colissimo-label-module
Composer 安装命令:
composer require thelia/colissimo-label-module
包简介
README 文档
README
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 | The URL from which to delete the label |
| $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.
Other ?
If you have other think to put, feel free to complete your readme as you want.
thelia/colissimo-label-module 适用场景与选型建议
thelia/colissimo-label-module 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.19k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 02 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 thelia/colissimo-label-module 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 thelia/colissimo-label-module 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2019-02-12