Skip to content

Lost orders

Sending lost orders from the Back Office

If sending an order to ERP fails, the order is stored in a database with a special state ordered_failed. You can find lost orders in the Back Office, on the eCommerce -> Order Management tab. Filter by Order transfer failed.

For each lost order you can perform the following actions:

Action Description Result
Transfer to ERP The lost order is re-sent to ERP The user sees an error or success message depending on whether the lost order could be re-sent to ERP or not. If sending the lost order fails, the administrator gets an email. If sending the lost order is successful, the customer who made this order gets a confirmation email.
Remove lost order The lost order is not removed, the state of lost order is changed to confirmed The lost order does not appear in the list anymore.

Email notifications

Every time an order cannot be placed, the shop administrator gets an email. The administrator's email address can be defined in the following configuration:

1
2
3
parameters:
    siso_core.default.ses_swiftmailer:
        lostOrderEmailReceiver: %ses_eshop.lostorder_email%

Templates are located in the following files:

1
2
EshopBundle/Resources/views/Emails/NotificationMail_FailedOrder.html.twig
EshopBundle/Resources/views/Emails/NotificationMail_FailedOrder.txt.twig

Lost order command

You can also re-send lost orders by using a command-line tool:

1
php bin/console ibexa:commerce:process-lost-orders [id]

Caution

To use the CLI, you must set the host. Otherwise the URLs and assets are not correct.

1
2
parameters:
    siso_core.default.host: localhost