phucct / magento2-order-api
该软件包的最新版本(dev-master)没有可用的许可证信息。
订单成功时调用API
dev-master
2018-05-29 12:20 UTC
Requires
- php: ~5.5.0|~5.6.0|~7.0.0|~7.1.0
This package is not auto-updated.
Last update: 2024-09-20 02:42:33 UTC
README
描述
整合 Magento 2 与物流系统
-
订单 当订单创建时,在 sales_order_place_after 上创建事件
- 在此观察者中获取订单信息
- 创建生成 XML 数据的函数
- 向物流系统发送请求
- 从物流系统获取响应并返回 Magento
-
订单状态 当订单发货时,在 sales_order_shipment_save_after 上创建事件
- 在此观察者中获取订单和发货信息
- 创建生成 XML 数据的函数
- 向物流系统发送请求
- 从物流系统获取响应并返回 Magento
安装
# You must be in Magento root directory composer require phucct/magento2-order-api:dev-master php bin/magento cache:clean php bin/magento setup:upgrade # Execute setup:di:compile only if the store is in production mode php bin/magento setup:di:compile