thelia/predict-module
Composer 安装命令:
composer require thelia/predict-module
包简介
Predict by DPD
README 文档
README
Predict by DPD module ~2.1.0 Works with Thelia >= 2.5.2
If you want to use it with Thelia <= 2.5.2 see Predict ~2.0.0
Installation
composer require thelia/predict-module ^2.1
Usage
Before using this module you first need to configure your DPD account number, and optionally your cellphone number and check if you have the Predict SMS option. Don't forget to assign the shipping zones to the Predict module and to configure your store's address, it's necessary in order to use this module.
The loops
The Predict module brings you three loops:
-
predict.check.rights
-
predict.notsend.loop
-
predict
Check if the Config folder and the prices.json file are readable and writable
{loop name="predict.check.rights.loop" type="predict.check.rights"}
<div class="alert alert-danger">
{$ERRMES} {$ERRFILE}
</div>
{/loop}
{elseloop rel="predict.check.rights.loop"}
<!-- No error, we can continue -->
{/elseloop}
Get every order which are paid and not sent and has Predict as delivery module
{loop name="get.predict.orders" type="predict.notsend.loop"}
...
{/loop}
Get the prices of a given area
{loop name="predict.prices" type="predict" area="1"}
...
{/loop}
Integration
This module uses the Hooks order-delivery.stylesheet and order-delivery.extra, the integration with the default template is already done.
If you want to custom the integration, you can see how to do that in the documentation
thelia/predict-module 适用场景与选型建议
thelia/predict-module 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 375 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 11 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 thelia/predict-module 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 thelia/predict-module 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 375
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2020-11-16