codingdaniel / magento2-order-tracking-notification
当订单中添加跟踪信息时通知客户
0.0.1
2022-08-24 21:47 UTC
Requires
- php: >=7.4.0
- codingdaniel/magento2-core: *
- magento/magento-composer-installer: *
This package is auto-updated.
Last update: 2024-09-07 18:59:51 UTC
README
这是一个简单的Magento 2模块,当通过REST API添加跟踪信息时,会触发向客户发送订单发货通知。
在shipment/track端点的有效载荷的extension_attributes
参数中添加了一个新的布尔字段notify
。
示例
{
"entity": {
"order_id": 1,
"parent_id": 1,
"weight": 0,
"qty": 0,
"description": "string",
"extension_attributes": {
"notify": true
},
"track_number": "string",
"title": "string",
"carrier_code": "string"
}
}
要求
- PHP 7.4
- Magento 2.4.2 或 Magento 2.4.4
安装
可以通过运行 composer require codingdaniel/magento2-order-tracking-notification
通过composer安装