Starting from version 2.2 of the AutoInvoice plugin, orders imported from third-party systems into Shopware can also be processed. This particularly affects plugins such as Magnalister, which write order data directly to the database. Due to this direct database access, plugins have no way of being notified of incoming orders. Therefore, the plugin must itself search for new orders at certain intervals.
1. Introduction
Asynchronous order data processing is already enabled by default in the plugin and automatically searches for new orders every 10 minutes that meet the configured conditions for invoice generation.
The date field "Process orders from" in the plugin settings controls from which date new orders should be considered. By default, this date is set to the installation date of the AutoInvoice plugin. Therefore, no old orders are processed. If you would also like to retroactively generate and send invoices for old orders, you can change the date to an earlier date. Please use the specified date format.
However, invoices will under no circumstances be sent / generated multiple times.
2. Setting up the Cronjob
To use asynchronous order data processing, you must install and enable the Shopware "Cronjob" plugin in the Plugin Manager.
Then you must configure a corresponding cronjob for your Shopware instance in your web hosting control panel or on your server. You can find detailed instructions here.
3. How it works
With each cronjob run, orders are automatically searched for and processed. Please note that invoices are only sent here if the orders meet the configured conditions (payment status, order status, customer group, etc.).
Similar Articles
| Related issues |
|---|