phucct/magento2-order-api

There is no license information available for the latest version (dev-master) of this package.

Event call API when order successfully

dev-master 2018-05-29 12:20 UTC

This package is not auto-updated.

Last update: 2024-09-20 02:42:33 UTC


README

Description

Integrate Magento 2 with a logistics system

  1. 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
  2. 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