phucct / magento2-order-api
Event call API when order successfully
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 2
Open Issues: 0
Type:magento2-module
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
Description
Integrate Magento 2 with a logistics system
-
Orders When order placed, create event on sales_order_place_after
- On this observer get order information
- Create function to generate data to xml
- Send request to Logistic System
- Get response return magento from logistics system
-
Order Status When order shipped, create event on sales_order_shipment_save_after
- On this observer get order and shipment information
- Create function to generate data to xml
- Send request to Logistic System
- Get response return magento from logistics system
Installation
# 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