dominicwatts / tracking
通过控制器和shell脚本提交运输跟踪信息
1.0.1
2019-08-22 20:07 UTC
Requires
- php: ~7.0.0||~7.1.0||~7.2.0||~7.3.0
- magento/framework: *
This package is auto-updated.
Last update: 2024-09-12 08:17:50 UTC
README
使用订单增量ID通过控制器和shell脚本提交运输跟踪信息
安装说明
composer require dominicwatts/tracking
php bin/magento setup:upgrade
php bin/magento setup:di:compile
使用说明
通过URL或控制台脚本将跟踪添加到订单中的运输
URL
/xigen_tracking/submit/index?oid=<ORDER_ID>&carrier=<CARRIER_CODE>&title=<CARRIER_TITLE>&number=<TRACKING_NUMBER_OR_URL>
/xigen_tracking/submit/index?oid=000000045&carrier=custom&title=Royal%20Mail&number=http://test.com/12345
控制台脚本
xigen:tracking:addtracking [-o|--orderid ORDERID] [-c|--carrier [CARRIER]] [-t|--title [TITLE]] [-u|--number [NUMBER]]
php bin/magento xigen:tracking:addtracking -o 000000045 -c custom -t "Royal Mail" -u "http://test.com/12345"