Skip to main content

New orders importing to Magento from Netsuite.

This feature makes possible creating the Orders in Magento from the SalesOrders in Netsuite.

The scenario for the feature is next:

  1. SalesOrder is Created in NetSuite;
  2. Magento System(MS) pulls it from NetSuite via Cron / Admin pulls it via CLI (see CLI command to import order/order changes from NetSuite to Magento);
  3. MS checks that no order with netsuite_internal_id exists in Magento
    1. if it exists Order Changes Import executed (another feature)
  4. MS adds the order to the Queue
  5. MS works with Queue and starts New Order creation
  6. MS checks that all SalesOrder Items exists in Magento (by their netsuite_internal_id)
    1. if any of the  SalesOrder Items does not exist in Magento - order is not created
  7. MS creates and set Payment to the order using Payment Method mapping and Fallback Payment Method setting (Magento 2 connector Import Orders User Guide)
  8. MS checks that Customer exists in Magento
    1. if no Customer exists in Magento - the customer will be imported from NetSuite
    2. if Customer import was unsuccessful - error is launched
  9. MS set Customers Data to the Order
  10. MS set Store from the configuration setting (Magento 2 connector Import Orders User Guide)
  11. MS set Shipping Method using the same scenario as for the update - Importing order changes from NetSuite to Magento - Shipping Method
  12. MS set Shipping Address using the same scenario as for the update - Importing order changes from NetSuite to Magento - Shipping Address
  13. MS set Billing Address
  14. MS set Order Items using the same scenario as for the update - Importing order changes from NetSuite to Magento - Order Items
  15. MS set Totals using the same scenario as for the update - Importing order changes from NetSuite to Magento - Totals Update
  16. MS set Items Quantities (core feature)
  17. MS finish the Order Creation