Kowal Import Orders Module Installation Guide
kowal/module-importorders
Main Functionalities
The kowal/module-importorders module enables importing orders between two Magento 2 instances by copying data directly between databases.
- Order import based on
entity_id. - Option to run an import for a single order (
-t). - Copying related customer, address, payment, and invoice data.
- Admin panel for starting imports and monitoring progress.
- AJAX support and real-time log display.
Installation
Installation via Composer
composer config repositories.kowal_importorders vcs https://gitlab.com/magento2ext/magento-2-import-orderscomposer config --auth gitlab-token.gitlab.com composer require kowal/module-importordersphp bin/magento setup:upgradephp bin/magento cache:flush Configuration
The module is configured through the config.xml file, where you must provide the connection details for the external database.
your_db_host your_db_name your_db_user your_db_password Specifications
The module implements import logic in the KowalImportOrdersModelImportOrders model, supporting the following tables:
sales_ordersales_order_gridsales_order_itemsales_order_paymentsales_order_addresssales_invoicesales_invoice_gridsales_invoice_itemsales_invoice_comment
Usage
Import via CLI
php bin/magento kowal:import-orders [-t] Examples:
- Import all orders from
entity_id= 10000:
php bin/magento kowal:import-orders 10000- Import only one order (
-tindicates single-order mode):
php bin/magento kowal:import-orders 10000 -tImport from the admin panel
The module includes an admin page where you can:
- Enter
entity_id. - Start the import via AJAX.
- Track progress and logs in real time.
Summary
The kowal/module-importorders module is a simple tool for migrating orders between Magento 2 stores. It supports both CLI and the admin interface, providing full control over the import process.
If you have any questions or need support, contact us!























